This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [commit] Use full paths for "info sources"
- From: Daniel Jacobowitz <dan at debian dot org>
- To: David Lecomber <david at streamline-computing dot com>
- Cc: patches <gdb-patches at sources dot redhat dot com>,Joel Brobecker <brobecker at gnat dot com>
- Date: Tue, 21 Sep 2004 11:30:13 -0400
- Subject: Re: [commit] Use full paths for "info sources"
- References: <1095776238.14044.8.camel@elmo.priv.wark.uk.streamline-computing.com>
On Tue, Sep 21, 2004 at 03:17:18PM +0100, David Lecomber wrote:
> Alas this fix doesn't seem to fix it for me..
Thanks for checking.
> [david@delmo FOO]$ ls
> a.out foo
> [david@delmo FOO]$ ~/bin/gdb a.out
> GNU gdb 20040920
> Copyright 2004 Free Software Foundation, Inc.
> GDB is free software, covered by the GNU General Public License, and you
> are
> welcome to change it and/or distribute copies of it under certain
> conditions.
> Type "show copying" to see the conditions.
> There is absolutely no warranty for GDB. Type "show warranty" for
> details.
> This GDB was configured as "i686-pc-linux-gnu"...Using host libthread_db
> library "/lib/tls/libthread_db.so.1".
>
> (gdb) info sources
> Source files for which symbols have been read
> in:
> Source files for which symbols will be read in on
> demand: main.c, /home/david/FOO/foo/main.c
> (gdb)
This appears to be a problem in the pseudo-symtab code. It needs to
take into account (A) the parent psymtab's dirname field and (B) the
directory table. This is the decode_for_pst_p block in
dwarf_decode_lines.
I want to continue working on intercu support for now, but if Joel
doesn't have a chance to look at this, I will later.
--
Daniel Jacobowitz