This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH 0/2] Make more use of add_info to create info commands.


There's a functino add_info specifically for creating info commands.
This is not used as often as it could be.

There's also an oddity that add_info creates the commands as
'no_class' rather than 'class_info'.

The following two patches address these two issues.  There should be
no user visible changes after this series (OK, so the change from
'no_class' to 'class_info' might be user visible, I have no idea if
the class is actually visibile to the user anywhere, but if it is,
this change is probably for the better).

Thanks,
Andrew

---

Andrew Burgess (2):
  gdb: Use class_info when creating info commands.
  gdb: Make use of 'add_info' to create info sub-commands.

 gdb/ChangeLog        | 11 +++++++++++
 gdb/avr-tdep.c       |  5 ++---
 gdb/cli/cli-decode.c |  2 +-
 gdb/gnu-nat.c        | 25 ++++++++++---------------
 gdb/macrocmd.c       | 15 ++++++---------
 5 files changed, 30 insertions(+), 28 deletions(-)

-- 
2.5.1


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]