I am debugging wireshark using gdb. How can i add debug symbols to wireshark? asked 08 Nov '12, 04:14 Akhil |
One Answer:
As you would do with any other program, by adding option '-g' to the gcc compiler.
However, you don't have to care about that, as the standard build process will add '-g' to the CFLAGS variable and thus your compiled binary will have debug symbols, unless you change the build process. You can check if there are debug symbols with the following command:
Regards answered 10 Nov '12, 03:09 Kurt Knochner ♦ edited 10 Nov '12, 03:56 |
The
nm
command will work only if thenm
on the system is the GNU binutils version ofnm
or a compatible version; not all versions ofnm
support the--debug-syms
option.The output of the command nm --debug-syms wireshark/.libs/wireshark is as follows:
What does that mean: debug symbols present or not?
debug symbols present
Thanks Kurt