[PATCH] Restore info_command and breakpoint

Philippe Waroquiers philippe.waroquiers@skynet.be
Tue May 5 18:51:22 GMT 2020


On Tue, 2020-05-05 at 13:26 -0500, Christian Biesinger via Gdb-patches wrote:

> > diff --git a/gdb/gdb-gdb.gdb.in b/gdb/gdb-gdb.gdb.in
> > index b647445e8c9..05a38b2670b 100644
> > --- a/gdb/gdb-gdb.gdb.in
> > +++ b/gdb/gdb-gdb.gdb.in
> > @@ -7,6 +7,12 @@ if !$gdb_init_done
> > 
> >    b internal_error
> > 
> > +  b info_command
> 
> It would probably be good to add a comment here?
> # This provides an easy way to break into the top-level GDB by typing "info"
Yes, good idea.
Even    ... by typing "info" or "i".
Also, a comment to explain the return, something like:
# return to avoid the long output of "info" command list.
as the objective of this was not crystal clear to everybody.
 
> 
> > +  commands
> > +    silent
> > +    return
> > +  end
> > +
> >    dir @srcdir@/../libiberty
> >    dir @srcdir@/../bfd
> >    dir @srcdir@
> > --
> > 2.21.1
> > 



More information about the Gdb-patches mailing list