public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [PATCH 0/4] Remove some symtab accessors
@ 2022-04-06 14:42 Simon Marchi
  2022-04-06 14:42 ` [PATCH 1/4] gdb: remove symtab::dirname Simon Marchi
                   ` (4 more replies)
  0 siblings, 5 replies; 7+ messages in thread
From: Simon Marchi @ 2022-04-06 14:42 UTC (permalink / raw)
  To: gdb-patches

I am playing with symtabs currently and was a bit confused with some
accessors that make some things appear as if they are symtab-specific,
when they are not.  These accessors forward to the symtab's parent
objects.  I don't think they are very useful and just hide the real
object structure of GDB, so I suggest removing them.

Simon Marchi (4):
  gdb: remove symtab::dirname
  gdb: remove symtab::blockvector
  gdb: remove symtab::objfile
  gdb: remove symtab::pspace

 gdb/ada-exp.y                     |  3 +-
 gdb/ada-lang.c                    |  8 ++--
 gdb/annotate.c                    |  4 +-
 gdb/breakpoint.c                  |  9 +++--
 gdb/c-exp.y                       |  5 ++-
 gdb/cli/cli-cmds.c                |  8 ++--
 gdb/coffread.c                    |  2 +-
 gdb/compile/compile-object-load.c |  2 +-
 gdb/compile/compile.c             |  2 +-
 gdb/guile/scm-symtab.c            | 12 +++---
 gdb/linespec.c                    | 63 ++++++++++++++++++-------------
 gdb/mdebugread.c                  | 16 ++++----
 gdb/mi/mi-symbol-cmds.c           |  2 +-
 gdb/objfiles.c                    |  2 +-
 gdb/p-exp.y                       |  5 ++-
 gdb/parse.c                       |  2 +-
 gdb/python/py-symtab.c            | 24 ++++++------
 gdb/source-cache.c                |  5 ++-
 gdb/source.c                      | 19 +++++-----
 gdb/symmisc.c                     | 10 ++---
 gdb/symtab.c                      | 14 ++-----
 gdb/symtab.h                      | 26 -------------
 gdb/tui/tui-source.c              |  2 +-
 gdb/tui/tui-winsource.c           |  2 +-
 24 files changed, 116 insertions(+), 131 deletions(-)


base-commit: 7fb56b98937a2feef5a3e12d8b00506ff4d132be
-- 
2.35.1


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2022-04-07 17:08 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-06 14:42 [PATCH 0/4] Remove some symtab accessors Simon Marchi
2022-04-06 14:42 ` [PATCH 1/4] gdb: remove symtab::dirname Simon Marchi
2022-04-06 14:42 ` [PATCH 2/4] gdb: remove symtab::blockvector Simon Marchi
2022-04-06 14:42 ` [PATCH 3/4] gdb: remove symtab::objfile Simon Marchi
2022-04-06 14:42 ` [PATCH 4/4] gdb: remove symtab::pspace Simon Marchi
2022-04-07 14:08 ` [PATCH 0/4] Remove some symtab accessors Tom Tromey
2022-04-07 17:08   ` Simon Marchi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).