From: Albert Chin <gdb@thewrittenword.com>
To: gdb@sources.redhat.com
Cc: peter.torngaard@nokia.com
Subject: Re: Source files as symlinks for 5.2.1
Date: Tue, 12 Nov 2002 15:59:00 -0000 [thread overview]
Message-ID: <20021112175929.A64206@oolong.il.thewrittenword.com> (raw)
In-Reply-To: <20021112172303.A63062@oolong.il.thewrittenword.com>; from gdb@thewrittenword.com on Tue, Nov 12, 2002 at 05:23:03PM -0600
On Tue, Nov 12, 2002 at 05:23:03PM -0600, Albert Chin wrote:
> On Redhat Linux 7.1 with GDB 5.2.1:
> $ mkdir /tmp/a /tmp/b
> $ cd /tmp/a
> $ ln -s ../b/sample.c link.c
> $ ls -ld link.c
> ... link.c -> ../b/sample.c
> $ gcc -g link.c
> $ gdb a.out
> (gdb) list
> (gdb) info source
> Current source file is link.c
> Compilation directory is /tmp/a/
> Located in /tmp/b/sample.c
> Contains 6 lines.
> Source language is c.
> Compiled with stabs debugging format.
>
> Why isn't the source file '/tmp/a/link.c'?
And:
(gdb) set annotate 1
(gdb) info line
...
Line ...
and ends at ...
/tmp/b/sample.c:...
DDD is reading the output of 'info line' at annotation level 1 and
using sample.c as the filename to set the breakpoint for. As 'link.c'
is loaded instead, 'set breakpoint sample.c:[line #]' this fails.
Oddly enough the HP wdb debugger doesn't read the link.
--
albert chin (china@thewrittenword.com)
prev parent reply other threads:[~2002-11-12 23:59 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-11-12 15:23 Albert Chin
2002-11-12 15:59 ` Albert Chin [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=20021112175929.A64206@oolong.il.thewrittenword.com \
--to=gdb@thewrittenword.com \
--cc=gdb@sources.redhat.com \
--cc=peter.torngaard@nokia.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