From: Nick Roberts <nickrob@snap.net.nz>
To: gdb@sources.redhat.com
Subject: $_ and info breakpoint
Date: Sat, 07 Jul 2007 23:17:00 -0000 [thread overview]
Message-ID: <18064.7905.924535.720690@kahikatea.snap.net.nz> (raw)
Andreas Schwab has pointed out that when running GDB from Emacs 22.1:
gdb-ui clobbers the value of $_ and $__ after every command, which makes
it impossible to continue a x command, for example.
This is because after every user command the breakpoints buffer is updated
by sending "info breakpoint" to GDB behind the users back and, as the manual
says:
The convenience variable `$_' and the default
examining-address for the `x' command are set to the address of
the last breakpoint listed
It seems to me that the main use for resetting $_ is so that by repeating the
`x' command you can scan through memory.
Presumably, this problem isn't specific to Emacs, so I suggest the following
possible solutions:
1) That "info breakpoint" doesn't set $_. At least -break-list shouldn't do
this.
or
2) An option is added to the command, "info breakpoint noaddress", say, but
seems like overkill. So that the user doesn't see the commands that Emacs
issues, it always uses the server command. Maybe it would be easy to make
"server info breakpoint" not set $_ and this would seem a more natural step
too.
--
Nick http://www.inet.net.nz/~nickrob
next reply other threads:[~2007-07-07 23:17 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-07-07 23:17 Nick Roberts [this message]
2007-07-09 11:56 ` Daniel Jacobowitz
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=18064.7905.924535.720690@kahikatea.snap.net.nz \
--to=nickrob@snap.net.nz \
--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