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
3
votes
1 answer

Fortran use gdb to print function name from address

Let's assume I have the following code: module eval_mod implicit none(type, external) private public :: eval abstract interface real pure function real_function_t(x) real, intent(in) :: x end function …
mcocdawc
  • 1,748
  • 1
  • 12
  • 21
3
votes
1 answer

Eclipse RCP program with debug info

I have written an RCP program. Somewhere in my underlying plug-in there is a NullPointerException. I get the stack trace and everything, but the code doesn't seem to be generated with debug info in it because I don't get the line info: at…
kaidentity
  • 609
  • 4
  • 10
  • 26
3
votes
0 answers

Source file not found / Source file is different - how to avoid unloading and reloading the project?

I am trying to debug a quite simple application in Visual Studio, but breakpoints are not working. When an exception occurs and I click on some methods I'll get error messages like Source not found and Source file is different and The…
Thomas Weller
  • 55,411
  • 20
  • 125
  • 222
3
votes
1 answer

how to use strip in conjunction with split-dwarf?

I am currently trying to use the --gsplit-dwarf gcc flag in order to automatically create and separate debug symbols from build libraries/executables. More info on DWARF Obj files. However, what I have observed is that split-dwarf still leaves a lot…
ryeager
  • 873
  • 1
  • 10
  • 24
3
votes
1 answer

print callstack of a thread (c++), StackWalker or not?

Needing to print callstacks of C++ application thread by thread handle, I turned to StackWalker which is mentioned in previous stackoverflow answers. However, the StakWalker code is dated 2005. I suspect something changed since then. When I compile…
Andrei
  • 8,606
  • 10
  • 35
  • 43
3
votes
0 answers

Find symbols in disassembly of exe file using llvm-objdump

I'm compiling a program on windows using cmake and clang-cl with flags /Zi and /DEBUG:FULL. I can step through the program using VS code and it shows function names in the call stack. However, when I try to disassemble with llvm-objdump, I get the…
Mohammed
  • 313
  • 2
  • 9
3
votes
1 answer

Remove symbolic information from C language executable on z/OS

Having built my application, initially using debug, I now move to make it production ready. I have changed my compile options from -c -W"c,debug,LP64,sscomm,dll" to -c -s -W"c,LP64,sscomm,dll" which reduces the size of the resultant executable to…
Morag Hughson
  • 7,255
  • 15
  • 44
3
votes
1 answer

Unable to debug MVC source code in Visual Studio 2010

I'm trying to debug MVC source code in Visual Studio 2010 using the Microsoft Symbols Server. I've configured Debugging options as seen below: and my project is targeting .NET Framework 4.0. (as said in Debug .NET Framework's source code only…
peflorencio
  • 2,284
  • 2
  • 32
  • 40
3
votes
2 answers

WinDbg: APPLICATION_HANG_WRONG_SYMBOLS

I'm pretty new to WinDbg and I'm trying to find a bug which has my application hanging for no appearent reason. I'm not sure I'm doing things right, but I understand that I need both symbols for the system dlls aswell as the .exe I'm debugging.…
Matthias
  • 506
  • 5
  • 16
3
votes
1 answer

Building GCC's libstdc++ with debug symbols on Windows

I am developing an app with GCC, mostly on Windows, until I got a crash that couldn't be debugged with the MinGW toolchain build I have. I installed a Linux VM, and debugged it there, which was possible, because the libstdc++ had the symbols I…
rubenvb
  • 74,642
  • 33
  • 187
  • 332
3
votes
0 answers

What is the difference between .symbol file (in symbols folder) and .dsym file in ipa?

I found out that .dsym file is used to symbolise crash report for iOS but What is the use of .symbol file in symbols folder? What are the differences?
신한슬
  • 189
  • 12
3
votes
0 answers

Reading DWARF debug information from PE file on Windows with libdwarf

mingw writes debug information to output executable file in DWARF format. I need to parse this debug information. I've tried to adopt libdwarf but it seems to be able to read files in ELF format only. At the same time mingw places debug information…
Artem Razin
  • 1,234
  • 8
  • 22
3
votes
1 answer

Line numbers in GCC output object file not preserved when linking to ELF

I am trying to build a basic project for ARM with symbols and associated line numbers, so that I can easily debug the project from GDB Multiarch while it is running in QEMU. I have two files, a C source file and some assembly. In this example, they…
Aaron Christiansen
  • 11,584
  • 5
  • 52
  • 78
3
votes
1 answer

Why this static function has no debug symbol?

(gdb) l main ... 4614 if (do_daemonize) 4615 save_pid(getpid(), pid_file); (gdb) l save_pid Function "save_pid" not defined. and there's its definition in source file: static void save_pid(const pid_t pid, const char *pid_file)…
gdb
  • 7,189
  • 12
  • 38
  • 36
3
votes
1 answer

How would I duplicate and rename symbols in object file?

I have an object file (for which I don't have access to the source). For good reasons, I need to duplicate a call path. For example, this object file might have the following symbols: _FuncA _FuncB _FuncC _FuncA calls _FuncB, which in turns calls…
Ajay
  • 2,078
  • 1
  • 15
  • 13