Questions tagged [debug-symbols]

A debug symbol is information that expresses which programming-language constructs generated a specific piece of machine code in a given executable module.

A debug symbol is information that expresses which programming-language constructs generated a specific piece of machine code in a given executable module. Sometimes the symbolic information is compiled together with the module's binary file, or distributed in a separate file, or simply discarded during the compilation and/or linking. This information enables a person using a symbolic debugger to gain additional information about the binary, such as the names of variables and routines from the original source code. This information can be extremely helpful while trying to investigate and fix a crashing application or any other fault.

865 questions
10
votes
2 answers

Resolve address of AccessViolation in the map file

One of my users has reported a few rare AccessViolations which I want to analyze. I have the source code of exactly that Build, so I could create a MAP file. But I don't know how to find the address provided by the AccessViolation in the MAP…
Daniel Marschall
  • 3,739
  • 2
  • 28
  • 67
10
votes
2 answers

Can I make cmake always generate debugging symbols?

I want cmake to generate symbols in my Release builds. I know I can generate RelWithDebInfo builds, and get symbols in those, but I want symbols in the Release builds as well. I never want a build that doesn't have symbols. Can I do this?
Tom Seddon
  • 2,648
  • 1
  • 19
  • 28
10
votes
1 answer

Debugging symbols for OS X Chrome

How can I get dSYM symbol files for release builds of Chrome on OS X? E.g. Google kindly publish the debug symbols for their Windows builds on a MS symbol server (http://chromium-browser-symsrv.commondatastorage.googleapis.com) but I can't find a…
snowcrash09
  • 4,694
  • 27
  • 45
10
votes
3 answers

Stepping over method without symbols - How to step into?

Using Visual Studio 2008 SP1 and a VB.NET project; I have some code which i cannot step into. The Immediate Window shows the message "Stepping over method without symbols 'Some.Namespace.Here'" How can i make sure the method always has symbols?! I…
joedotnot
  • 4,810
  • 8
  • 59
  • 91
9
votes
1 answer

Using perlbrew to build a perl with debugging symbols

I'm trying to track down a segmentation fault that I've been able to isolate to just a few lines of code on different versions of Perl. I use perlbrew to manage my various versions for development and testing, but it doesn't build perl with…
mpeters
  • 4,737
  • 3
  • 27
  • 41
9
votes
0 answers

art_sigsegv_fault crash in Android Studio while debugging native code

The problem I'm trying to debug native (c++) code that is called from Java code (MainActivity.OnCreate) in simple android application. I'm using lldb for debugging and build the native code using cmake. The debug works as expected until I try to…
9
votes
1 answer

Read debugging information at runtime from an application

I have some questions regarding debugging symbols and what can be done with them, besides, well, debugging. I'm mostly interested in answers regarding GCC, but I'd also be happy to know how it looks like under other compilers, including MSVC. First…
Kos
  • 70,399
  • 25
  • 169
  • 233
9
votes
1 answer

Why doesn't my Go debugger load all symbols, causing local variables to be missing from the debugger?

I've built my binary with: go build -gcflags "$gc_flags" -o ./bin/grafana-server ./pkg/cmd/grafana-server, where $gc_flags is '-N -l'. When I run this file, ./bin/grafana-server, and attach to it in my debugger (Goland), not all of my symbols are…
MrDuk
  • 16,578
  • 18
  • 74
  • 133
9
votes
1 answer

What is difference between objcopy and dsymutil?

Are these two commands on linux: objcopy --only-keep-debug foo foo.dbg objcopy --add-gnu-debuglink=foo.dbg foo equivalent to below on mac dsymutil -o .dSYM Equivalent in the sense that, It creates a standalone debug info…
Abhishek Jain
  • 9,614
  • 5
  • 26
  • 40
9
votes
2 answers

How to convert a function address to a symbol

Let's say I have a program like this // print-addresses.cpp #include void foo() { } void bar() { } void moo() { } int main(int argc, const char** argv) { printf("%p\n", foo); printf("%p\n", bar); printf("%p\n", moo); return…
gman
  • 100,619
  • 31
  • 269
  • 393
8
votes
0 answers

XCode Adding dSYM file for a framework with debug information in it

I am using a third party framework with XCode, ( say thirdparty.framework ) which has been built with debug information. Also, they provided a .dSYM file along with it. However, this third party framework ends up crashing in a particular instance,…
Anonymous
  • 273
  • 5
  • 14
8
votes
1 answer

How to debug a Flutter app's crash from the provided stack trace in Google Play Console?

I have published a Flutter app on Play Store that reports crashes from time to time. To build it for release, I used obfuscation as described here with the command: flutter build apk --obfuscate --split-debug-info=build/app/outputs/symbols Now in…
whidev
  • 161
  • 1
  • 3
8
votes
1 answer

Does Oracle provide public Symbol Files (PDB) for OCCI/OCI?

OTN Thread: Does Oracle provide public Symbol Files (PDB) for OCCI/OCI ? When debugging an application under Windows (with Visual Studio or WinDBG) that makes use of OC[C]I it would often be convenient if there be symbol files (PDB files) for the…
Martin Ba
  • 37,187
  • 33
  • 183
  • 337
8
votes
3 answers

How to generate PDB's for .net managed projects in release mode?

I know PDBs are generated for managed projects in .NET by giving the compiler the /debug argument. Is there a way to specify this in the VS (2005) GUI? The only way I could get it to generate PDBs in release mode so far is to manually modify the…
Cristian Diaconescu
  • 34,633
  • 32
  • 143
  • 233
8
votes
1 answer

"Cannot find or open the PDB file" in VS Code

I see lots of questions and answers for this issue in Visual Studio, but no answers for VS Code. It's really annoying to see about a hundred of these messages in between my WriteLines. Is there a way to fix this issue for VS Code? Full console…
icebird76
  • 742
  • 3
  • 14
  • 36