From: Nick Roberts <nick@nick.uklinux.net>
To: bob_rossi@cox.net, ac131313@redhat.com
Cc: gdb@sources.redhat.com
Subject: Re: Add fullname to breakpoint output
Date: Fri, 04 Apr 2003 19:38:00 -0000 [thread overview]
Message-ID: <16013.56871.250844.888037@nick.uklinux.net> (raw)
> > Hi,
> > I wrote a patch that adds the fullname to breakpoint output.
> > (gdb) -break-insert main
> > ^done,bkpt={number="1",type="breakpoint",disp="keep",enabled="y",
> > addr="0x080483c3",func="main",fullname="/home/bob/cvs/src/gdb/test.c",
> > file="test.c",line="8",times="0"}
> > (gdb)
> > I would like confirmation on this before I go through the effort to
> > fix the testsuite.
The CLI output doesn't give the absolute pathname:
(gdb) break main
Breakpoint 1 at 0x804856c: file mytest.c, line 36.
so doesn't this add to the inconsistency? Since, as has been said before, on
stopping CLI gives the absolute pathname:
(gdb) run
Starting program: /home/nick/mytest
Breakpoint 1, main (argc=1, argv=0xbffff7d4) at mytest.c:36
^Z^Z/home/nick/mytest.c:36:466:beg:0x804856c
(gdb)
while MI gives the relative pathname:
-exec-run
^running
(gdb)
*stopped,reason="breakpoint-hit",bkptno="1",thread-id="0",frame={addr="0x0804856c",func="main",args=[{name="argc",value="1"},{name="argv",value="0xbffff7d4"}],file="mytest.c",line="36"}
I don't think any of this would matter much if the search path for source
files could be accessed by the front-end. Currently, however, unlike `path',
`dir' resets rather than lists the current setting and the front-end can't
(easily) access $cdir.
Would it be a good idea to make the source path, $cdir, $cwd read-only
convenience variables?
Nick
next reply other threads:[~2003-04-04 19:38 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-04-04 19:38 Nick Roberts [this message]
2003-04-05 17:24 ` Andrew Cagney
[not found] <1049485092.22026.ezmlm@sources.redhat.com>
2003-04-04 22:19 ` Jim Ingham
2003-04-05 17:28 ` Andrew Cagney
2003-04-05 17:59 ` Jim Ingham
2003-04-14 4:14 ` Andrew Cagney
2003-04-14 17:04 ` Jim Ingham
-- strict thread matches above, loose matches on Subject: below --
2003-04-04 1:03 Bob Rossi
2003-04-03 1:26 Bob Rossi
2003-04-04 16:59 ` Andrew Cagney
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=16013.56871.250844.888037@nick.uklinux.net \
--to=nick@nick.uklinux.net \
--cc=ac131313@redhat.com \
--cc=bob_rossi@cox.net \
--cc=gdb@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