From: Andrew Cagney <ac131313@redhat.com>
To: Eli Zaretskii <eliz@elta.co.il>
Cc: Andrew Cagney <ac131313@redhat.com>,
mec@shout.net, gdb@sources.redhat.com
Subject: Re: "No registers" or "No inferior to debug"?
Date: Tue, 21 Oct 2003 19:56:00 -0000 [thread overview]
Message-ID: <3F958F77.5020906@redhat.com> (raw)
In-Reply-To: <2914-Tue21Oct2003205035+0200-eliz@elta.co.il>
> Date: Tue, 21 Oct 2003 11:26:32 -0400
>> From: Andrew Cagney <ac131313@redhat.com>
>
>> >
>> > (gdb) info registers
>> > No program or core file to debug, so no registers.
>
>>
>> The point at which the error is detected and thrown is a long way from
>> "info registers" so customizing it to mention ", so no registers" will
>> be painful.
>
>
> Is it possible to add "No registers." on a separate line after the
> thread of execution comes back to "info registers"? That would
> produce
> (gdb) info registers
> No program or core file to debug.
> No registers.
The error throws gdb out of the info registers function, so no, not
without other changes.
Having seen michael's comments, I also suspect that "No registers" isn't
that helpful. I'd expect a user to fix this problem by looking for a
program or core file, and not by looking for registers :-)
Anyway, for the immediate problem at hand ("return" and return_command),
I tweaked toe code so that it directly checked that there was a target
before doing anything and then issued the existing response.
Andrew
next prev parent reply other threads:[~2003-10-21 19:56 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
-- strict thread matches above, loose matches on Subject: below --
2003-10-20 21:28 Andrew Cagney
2003-10-20 21:43 ` Kevin Buettner
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=3F958F77.5020906@redhat.com \
--to=ac131313@redhat.com \
--cc=eliz@elta.co.il \
--cc=gdb@sources.redhat.com \
--cc=mec@shout.net \
/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