This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: "No registers" or "No inferior to debug"?
> 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.