User forums > General (but related to Code::Blocks)

GDB can not show the type info of wxCommandEvent

<< < (2/3) > >>

ollydbg:

--- Quote from: oBFusCATed on May 28, 2013, 09:28:49 am ---So, I'm not sure I've got who is to blame? GDB or GCC? Where would you report a bug?

--- End quote ---
No body to blame, if you add "-femit-class-debug-always" option, you get everything expect.

About the performance issue, it is an gdb issue.

oBFusCATed:

--- Quote from: ollydbg on May 28, 2013, 09:55:44 am ---No body to blame, if you add "-femit-class-debug-always" option, you get everything expect.

--- End quote ---
And this is not on by default for a reason I suppose.


--- Quote from: ollydbg on May 28, 2013, 09:55:44 am ---About the performance issue, it is an gdb issue.

--- End quote ---
Yes, but this is because there is too much data.
Can you try to contact the gdb devs to see what is their opinion?

p2rkw:
@ollydbg: is value of 'event' correctly displayed in watches window? If not try to cast it to 'wxCommandEvent' (without reference).

ollydbg:

--- Quote from: p2rkw on May 28, 2013, 02:36:31 pm ---@ollydbg: is value of 'event' correctly displayed in watches window?

--- End quote ---
If the app link to a wx-release-library, and you does NOT use the "-femit-class-debug-always", then nothing will shown in the watch window.
See log:

--- Code: ---[debug]> whatis event
[debug]type = wxCommandEvent &
[debug]>>>>>>cb_gdb:
[debug]> output event
[debug](wxCommandEvent &) @0x22fb34: <incomplete type>>>>>>>cb_gdb:
--- End code ---


--- Quote ---If not try to cast it to 'wxCommandEvent' (without reference).

--- End quote ---
It is already wxCommandEvent, right? See the log previous and also my first post.


--- Quote from: oBFusCATed on May 28, 2013, 12:11:57 pm ---Yes, but this is because there is too much data.
Can you try to contact the gdb devs to see what is their opinion?

--- End quote ---
The GDB devs already noticed this regression, so they have a bugzilla report: Bug 15412 – Performance regression in "info {func,var,types} foo" (mostly info types).

oBFusCATed:
Then why -femit-class-debug-always is not on by default for C++ code?

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version