From: Andrew Cagney <ac131313@redhat.com>
To: gdb@sources.redhat.com
Subject: "No registers" or "No inferior to debug"?
Date: Mon, 20 Oct 2003 21:28:00 -0000 [thread overview]
Message-ID: <3F945382.8030203@redhat.com> (raw)
Hello,
Ref: default.exp
At present get_selected_frame(), when there is no inferior(1), throws
the error:
No registers
Except for the case where the user types:
(gdb) info registers
No registers
this message won't be very enlightening. For instance, a user trying to
do a return when there is no process to debug would (theoretically)
encounter the error:
(gdb) return
No registers
I'm wondering if the error message should be standardized vis:
(gdb) info registers
No inferior to debug
(gdb) return
No inferior to debug
Looking through default.exp I see plenty of alternatives vis:
The program is not being run.
No stack
No frame selected
No registers
No frame selected
Thoughts? Suggestions?
Andrew
(1) I'm treating a core file as an inferior here (reasonable?).
next reply other threads:[~2003-10-20 21:28 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-10-20 21:28 Andrew Cagney [this message]
2003-10-20 21:43 ` Kevin Buettner
2003-10-20 21:56 Michael Elizabeth Chastain
2003-10-20 22:39 ` Andrew Cagney
2003-10-21 5:50 ` Eli Zaretskii
2003-10-21 15:26 ` Andrew Cagney
2003-10-21 18:55 ` Eli Zaretskii
2003-10-21 19:56 ` 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=3F945382.8030203@redhat.com \
--to=ac131313@redhat.com \
--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