Prevent crashes using $arg0

Daniel Jacobowitz drow@false.org
Thu Mar 30 17:20:00 GMT 2006


On Mon, Feb 20, 2006 at 10:38:07PM +0200, Eli Zaretskii wrote:
> > Date: Mon, 20 Feb 2006 11:04:28 -0500
> > From: Daniel Jacobowitz <drow@false.org>
> > Cc: gdb-patches@sourceware.org
> > 
> > Good idea.
> > 
> > > [Time passes...] Actually, I'm quite sure we should behave like I
> > > suggested, since we already do that without the if clause:
> > > 
> > >     (gdb) print $arg0
> > >     $1 = void
> > >     (gdb)
> > 
> > And let's test that too.
> > 
> > Does this look better?
> 
> Yes, thanks.

Thanks, I've checked this in.

-- 
Daniel Jacobowitz
CodeSourcery



More information about the Gdb-patches mailing list