User forums > General (but related to Code::Blocks)
GDB can not show the type info of wxCommandEvent
Wyrm:
--- Quote from: oBFusCATed on May 28, 2013, 05:47:07 pm ---Then why -femit-class-debug-always is not on by default for C++ code?
--- End quote ---
If I understand gcc man page correctly, the compiler does not want to include the debug info into each translation unit that included that class header. This makes sense since you don't want replicas of the debug info littered over all object files. The flag you quoted overrides this default behavior and you'll end up with debug info in each object file.
Ollydbg,
I don't know wxWidgets well enough but I observed a similar problem with a generic library when I have my code compiled against the _release_ version of that library. Is it possible that the wxWidgets library you are linking to is compiled without -g flag? Can you try linking to the debug version of that wxWidgets? Just a guess.
ollydbg:
--- Quote from: Wyrm on May 29, 2013, 06:18:03 am ---
--- Quote from: oBFusCATed on May 28, 2013, 05:47:07 pm ---Then why -femit-class-debug-always is not on by default for C++ code?
--- End quote ---
If I understand gcc man page correctly, the compiler does not want to include the debug info into each translation unit that included that class header. This makes sense since you don't want replicas of the debug info littered over all object files. The flag you quoted overrides this default behavior and you'll end up with debug info in each object file.
--- End quote ---
Hi, Wyrm I think this is a reasonable answer. Thanks.
--- Quote ---Ollydbg,
I don't know wxWidgets well enough but I observed a similar problem with a generic library when I have my code compiled against the _release_ version of that library. Is it possible that the wxWidgets library you are linking to is compiled without -g flag? Can you try linking to the debug version of that wxWidgets? Just a guess.
--- End quote ---
You are right, as you said, if I link to the debug version of wxWidgets library, then I don't have such issue. Thanks.
Navigation
[0] Message Index
[*] Previous page
Go to full version