This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: Symbol tables for separately linked pieces
- From: Daniel Jacobowitz <drow at false dot org>
- To: Andrew STUBBS <andrew dot stubbs at st dot com>
- Cc: Paul Koning <Paul_Koning at dell dot com>, gdb at sourceware dot org
- Date: Thu, 10 Jul 2008 11:07:28 -0400
- Subject: Re: Symbol tables for separately linked pieces
- References: <18550.7195.371436.629820@gargle.gargle.HOWL> <487622FE.8050209@st.com>
On Thu, Jul 10, 2008 at 03:55:58PM +0100, Andrew STUBBS wrote:
> This solution is less satisfactory when the context change occurs
> frequently, so I've been wondering if there would be a better way to do
> it myself. Some sort of context sensitive thing maybe (select symbols
> from the same source as the current function symbol), or perhaps
> explicitly by name ("break a.elf:main").
I don't have a suggestion, but I do have a hopeful sign: the same sort
of juggling is necessary for a multiple-process-image GDB, which
CodeSourcery's going to be working on once we're finished with
non-stop debugging and multi-process-single-image. Whatever we come
up with will hopefully be useful for this two image scenario too.
I suspect we'll tell GDB to keep both symbol tables loaded, but have
one current. But I haven't really thought about it (I'm working on
other things).
--
Daniel Jacobowitz
CodeSourcery