From: Nick Roberts <nickrob@snap.net.nz>
To: Andrew Cagney <cagney@gnu.org>
Cc: Bob Rossi <bob@brasko.net>, gdb@sources.redhat.com
Subject: Re: fullname descriptor with -break-list
Date: Fri, 04 Mar 2005 07:24:00 -0000 [thread overview]
Message-ID: <16936.3238.730574.794373@farnswood.snap.net.nz> (raw)
In-Reply-To: <420787A3.2070605@gnu.org>
> >>-exec-run
> >>^running
> >>(gdb)
> >>*stopped,reason="breakpoint-hit",bkptno="1",thread-id="0",frame={addr="0x080486e2",func="myprint",args=[{name="i",value="0"},{name="j",value="0"}],file="myprint.c",line="5"}
...
> The way that message is generated is a massive kludge - so the
> underlying code could do with a cleanup - separate the code determining
> why the process stopped from the code printing the stop reason.
Just a short note for the future:
As *stopped is asynchronous output and not that of a specific MI command, I
also think this output should appear even if a CLI command has been invoked.
Currently a GDB session might look like:
&"b main\n"
~"Breakpoint 1 at 0x80484cf: file myprog.c, line 48.\n"
^done
(gdb)
run
&"run\n"
~"Starting program: /home/nick/myprog \n"
~"\n"
~"Breakpoint 1, main (argc=1, argv=0xbffff794) at myprog.c:48\n"
~"48\t int i, n, m[10]={0,1,4,9,16,25,36,49,64,81};\n"
^done
(gdb)
but I think it should look something like:
&"b main\n"
~"Breakpoint 1 at 0x80484cf: file myprog.c, line 48.\n"
^done
(gdb)
run
&"run\n"
~"Starting program: /home/nick/myprog \n"
~"\n"
~"Breakpoint 1, main (argc=1, argv=0xbffff794) at myprog.c:48\n"
~"48\t int i, n, m[10]={0,1,4,9,16,25,36,49,64,81};\n"
^done
(gdb)
*stopped,reason="breakpoint-hit",bkptno="1",thread-id="0",frame={addr="0x080484cf",func="main",args=[{name="argc",value="1"},{name="argv",value="0xbffff794"}],file="myprog.c",line="48"}
(gdb)
or with "-interpreter-exec console run" if direct CLI is going to be removed.
From Emacs point of view, this would mean the CLI commands could be entered in
the GUD buffer.
Nick
next prev parent reply other threads:[~2005-03-04 7:24 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-02-06 23:18 Nick Roberts
2005-02-07 0:17 ` Bob Rossi
2005-02-07 2:49 ` Nick Roberts
2005-02-07 14:54 ` Bob Rossi
2005-02-07 20:14 ` Andrew Cagney
2005-02-08 1:54 ` Event notification in MI (was Re: fullname descriptor with -break-list) Nick Roberts
2005-03-04 7:24 ` Nick Roberts [this message]
2005-03-04 11:23 ` fullname descriptor with -break-list Bob Rossi
2005-02-07 15:22 ` 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=16936.3238.730574.794373@farnswood.snap.net.nz \
--to=nickrob@snap.net.nz \
--cc=bob@brasko.net \
--cc=cagney@gnu.org \
--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