This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug symtab/16116] New: C++ print is too slow
- From: "jan.kratochvil at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Sat, 02 Nov 2013 10:13:23 +0000
- Subject: [Bug symtab/16116] New: C++ print is too slow
- Auto-submitted: auto-generated
https://sourceware.org/bugzilla/show_bug.cgi?id=16116
Bug ID: 16116
Summary: C++ print is too slow
Product: gdb
Version: 7.6
Status: NEW
Severity: normal
Priority: P2
Component: symtab
Assignee: unassigned at sourceware dot org
Reporter: jan.kratochvil at redhat dot com
Target: x86_64-unknown-linux-gnu
One print command takes about 1 second. Each time.
(gdb) p objp->recordvector._M_impl._M_start
$1 = (std::_Vector_base<Record, std::allocator<Record> >::pointer)
0x60040000bb70
Maybe the solution will be .gdb_index produced even for local builds by gcc.
Inferior has 19MB of DWARF in this case.
Tested only with: gdb-7.6.1-42.fc19.x86_64
27.87% gdb gdb [.] lookup_symbol_aux_psymtabs
23.74% gdb gdb [.] lookup_partial_symbol.isra.3
10.98% gdb gdb [.] strcmp_iw
3.28% gdb libc-2.17.so [.] _int_malloc
2.78% gdb gdb [.] symbol_natural_name
2.72% gdb gdb [.] cpname_lex
2.44% gdb gdb [.] lookup_symbol_aux_objfile
2.13% gdb libc-2.17.so [.] _int_free
2.10% gdb gdb [.] cpname_parse
2.03% gdb gdb [.] strcmp_iw_ordered
2.03% gdb gdb [.] lbasename
1.70% gdb libc-2.17.so [.] malloc_consolidate
1.54% gdb libc-2.17.so [.] malloc
1.30% gdb gdb [.] symbol_search_name
1.18% gdb libc-2.17.so [.] __strcmp_sse42
0.93% gdb libc-2.17.so [.] __strlen_sse2_pminub
0.80% gdb gdb [.] symbol_matches_domain
0.52% gdb libc-2.17.so [.] free
0.52% gdb libc-2.17.so [.] __strchr_sse42
0.51% gdb gdb [.] lookup_objfile_from_block
--
You are receiving this mail because:
You are on the CC list for the bug.