[PATCH 0/4] Move dyn prop functions to be methods of struct type

Simon Marchi simon.marchi@efficios.com
Thu Apr 30 18:17:49 GMT 2020


I'd like to start cleaning up gdbtypes.h.  In particular, move some functions
and some of the TYPE_* macros to be methods of `struct type`.  To test the
waters, I started with the dynamic property stuff, which is quite isolated.

Simon Marchi (4):
  gdb: make get_dyn_prop a method of struct type
  gdb: make add_dyn_prop a method of struct type
  gdb: make remove_dyn_prop a method of struct type
  gdb: remove TYPE_DYN_PROP_LIST macro

 gdb/ada-lang.c      |  4 ++--
 gdb/ada-typeprint.c |  4 ++--
 gdb/dwarf2/read.c   | 12 +++++-----
 gdb/gdbtypes.c      | 56 ++++++++++++++++++++++-----------------------
 gdb/gdbtypes.h      | 45 ++++++++++++++++--------------------
 gdb/rust-lang.c     |  3 +--
 gdb/value.c         |  2 +-
 7 files changed, 59 insertions(+), 67 deletions(-)

-- 
2.26.2



More information about the Gdb-patches mailing list