This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [commit] Fix crash of gdb save-index on a STABS file
- From: Tom Tromey <tromey at redhat dot com>
- To: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Thu, 14 Apr 2011 14:44:28 -0600
- Subject: Re: [commit] Fix crash of gdb save-index on a STABS file
- References: <20110409152300.GA13143@host1.jankratochvil.net>
>>>>> "Jan" == Jan Kratochvil <jan.kratochvil@redhat.com> writes:
Jan> There are some concerns what is a file uses both DWARF and STABS,
Jan> it may possibly currently have a regression with .gdb_index. But
Jan> that is unrelated to this patch.
I think it should all work. At least, I designed it to.
The index itself is written by looking at the CUs in the objfile's
dwarf2_per_objfile. So, I think the index should not reference any
psymtabs coming from STABS.
On the reader side, the code in elfread.c is written to read STABS
first -- and skip using the index if any are found. This handles the
problem that an objfile can only have one set of quick functions.
This is expensive, but people mixing in this way deserve it ;-)
Tom