Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* Re: "No registers" or "No inferior to debug"?
@ 2003-10-20 21:56 Michael Elizabeth Chastain
  2003-10-20 22:39 ` Andrew Cagney
  0 siblings, 1 reply; 8+ messages in thread
From: Michael Elizabeth Chastain @ 2003-10-20 21:56 UTC (permalink / raw)
  To: ac131313, gdb

Look at your use case:

  (gdb) info registers
  No registers
  User: "Huh?  How come there aren't any registers?  Wha?"

  (gdb) info registers
  The program is not being run
  User: "Oh, okay, I guess I can't see the registers right now."

So I like "The program is not being run."
"The inferior program is not being run." would be okay too.

Michael C


^ permalink raw reply	[flat|nested] 8+ messages in thread
* "No registers" or "No inferior to debug"?
@ 2003-10-20 21:28 Andrew Cagney
  2003-10-20 21:43 ` Kevin Buettner
  0 siblings, 1 reply; 8+ messages in thread
From: Andrew Cagney @ 2003-10-20 21:28 UTC (permalink / raw)
  To: gdb

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?).


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2003-10-21 19:56 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-10-20 21:56 "No registers" or "No inferior to debug"? 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
  -- strict thread matches above, loose matches on Subject: below --
2003-10-20 21:28 Andrew Cagney
2003-10-20 21:43 ` Kevin Buettner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox