This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug c++/11227] New: The 'disassemble' command doesn't demangle C++ function names
- From: "k04jg02 at gmail dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: 27 Jan 2010 19:46:29 -0000
- Subject: [Bug c++/11227] New: The 'disassemble' command doesn't demangle C++ function names
- Reply-to: sourceware-bugzilla at sourceware dot org
The summary pretty much says it all. Not in general when printing what function
the instructions are inside or next to call instructions. Here's an example of
the output I see using gdb 7.0 on Solaris 10 with GCC 4.2:
(gdb) disassemble 0x830fff9
Dump of assembler code for function
_ZZN5boost9function1IbSt6bitsetILj5EEE9assign_toINS_3_bi6bind_tIbNS_4_mfi3mf1IbN9tradelink5event13AsyncNotifier4ImplES2_EENS5_5list2INS5_5valueIPSC_EENS_3argILi1EEEEEEEEEvT_E13stored_vtable:
0x0830fff8
<_ZZN5boost9function1IbSt6bitsetILj5EEE9assign_toINS_3_bi6bind_tIbNS_4_mfi3mf1IbN9tradelink5event13AsyncNotifier4ImplES2_EENS5_5list2INS5_5valueIPSC_EENS_3argILi1EEEEEEEEEvT_E13stored_vtable+0>:
aad $0xe
0x0830fffa
<_ZZN5boost9function1IbSt6bitsetILj5EEE9assign_toINS_3_bi6bind_tIbNS_4_mfi3mf1IbN9tradelink5event13AsyncNotifier4ImplES2_EENS5_5list2INS5_5valueIPSC_EENS_3argILi1EEEEEEEEEvT_E13stored_vtable+2>:
and $0x8,%al
0x0830fffc
<_ZZN5boost9function1IbSt6bitsetILj5EEE9assign_toINS_3_bi6bind_tIbNS_4_mfi3mf1IbN9tradelink5event13AsyncNotifier4ImplES2_EENS5_5list2INS5_5valueIPSC_EENS_3argILi1EEEEEEEEEvT_E13stored_vtable+4>:
sbb $0xf,%al
0x0830fffe
<_ZZN5boost9function1IbSt6bitsetILj5EEE9assign_toINS_3_bi6bind_tIbNS_4_mfi3mf1IbN9tradelink5event13AsyncNotifier4ImplES2_EENS5_5list2INS5_5valueIPSC_EENS_3argILi1EEEEEEEEEvT_E13stored_vtable+6>:
and $0x8,%al
End of assembler dump.
--
Summary: The 'disassemble' command doesn't demangle C++ function
names
Product: gdb
Version: 7.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at sourceware dot org
ReportedBy: k04jg02 at gmail dot com
CC: gdb-prs at sourceware dot org
http://sourceware.org/bugzilla/show_bug.cgi?id=11227
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.