From: Tom Tromey <tromey@redhat.com>
To: Joel Brobecker <brobecker@ACT-Europe.FR>
Cc: gdb-patches@sources.redhat.com
Subject: Re: [RFC] gdb_realpath causes problems with GVD
Date: Sat, 23 Mar 2002 21:13:00 -0000 [thread overview]
Message-ID: <878z8io6us.fsf@creche.redhat.com> (raw)
In-Reply-To: Joel Brobecker's message of "Thu, 21 Mar 2002 09:11:45 +0100"
>>>>> "Joel" == Joel Brobecker <brobecker@ACT-Europe.FR> writes:
Joel> There is something in the break command that I haven't
Joel> understood, because:
Joel> (gdb) b toto.C:5
Joel> No source file named toto.C.
Joel> (gdb) b /bonn.a/brobecke/toplevel/symlinks/toto.C:4
Joel> Note: breakpoint 1 also set at pc 0x8048583.
Joel> Breakpoint 2 at 0x8048583: file /bonn.a/brobecke/toplevel_link/symlinks/toto.c, line 4.
Joel> This seems odd to me that GDB refuses a breakpoint on toto.C,
Joel> but accepts a breakpoint on /bonn.a/.../toto.C?
If you give an absolute path to the break command, then gdb will try
to find and use the real path.
If you give a relative path to the break command, gdb won't do this.
It will just compare what you gave it to what is in the symtab. It
might compare the base name if you didn't give an exact match.
See symtab.c:lookup_symtab() for the code.
Joel> I also noticed an inconsistency in the filename used in the
Joel> "Breakpoint 2 at ..." line, should this be also normalized?
I don't know.
Joel> Supposing that this problem can be corrected entirely in GVD,
Joel> should I withdraw my change request?
My opinion is that the primary bug here is in GVD. However there are
subsidiary bugs as well.
Joel> I would still prefer GDB to display toto.c rather than toto.C as
Joel> the basename part, but I don't have a strong opinion so the
Joel> advice of all GDB developers would be welcome.
I agree it would be best if gdb could somehow tell GVD about the file
name as it appears in the symtab. Then GVD could display this file
name if it so chose.
My reasoning here is that the file name in the symtab is most likely
the one the user will recognize, since it is the one that he (or the
Makefile or whatever) passed to the compiler.
Tom
prev parent reply other threads:[~2002-03-24 5:13 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-03-19 8:12 Joel Brobecker
2002-03-19 9:17 ` Eli Zaretskii
2002-03-19 9:34 ` Daniel Jacobowitz
2002-03-19 9:56 ` Joel Brobecker
2002-03-19 11:18 ` Eli Zaretskii
2002-03-19 12:14 ` Joel Brobecker
2002-03-19 22:04 ` Eli Zaretskii
2002-03-20 1:15 ` Joel Brobecker
2002-03-20 3:12 ` Eli Zaretskii
2002-03-20 4:05 ` Joel Brobecker
2002-03-20 10:25 ` Eli Zaretskii
2002-03-20 8:10 ` Andrew Cagney
2002-03-20 9:41 ` Joel Brobecker
2002-03-19 10:29 ` Andrew Cagney
2002-03-19 14:28 ` Joel Brobecker
2002-03-20 14:16 ` Tom Tromey
2002-03-21 0:11 ` Joel Brobecker
2002-03-21 3:44 ` Joel Brobecker
2002-03-23 21:35 ` Tom Tromey
2002-03-25 1:22 ` Joel Brobecker
2002-03-25 9:23 ` Tom Tromey
2002-03-25 10:01 ` Joel Brobecker
2002-03-27 19:36 ` Andrew Cagney
2002-03-27 19:42 ` Daniel Jacobowitz
2002-03-23 21:13 ` Tom Tromey [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=878z8io6us.fsf@creche.redhat.com \
--to=tromey@redhat.com \
--cc=brobecker@ACT-Europe.FR \
--cc=gdb-patches@sources.redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox