public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [PATCH 0/5] Make line tables independent of objfile
@ 2023-03-08 15:42 Tom Tromey
  2023-03-08 15:42 ` [PATCH 1/5] Add operator< and operator== to linetable_entry Tom Tromey
                   ` (5 more replies)
  0 siblings, 6 replies; 20+ messages in thread
From: Tom Tromey @ 2023-03-08 15:42 UTC (permalink / raw)
  To: gdb-patches

This is a tiny step toward the long-term goal of "objfile splitting"
-- that is, making symbol tables independent of the objfile.  This
goal, if ever achieved, would allow for sharing of symbols and symbol
tables across inferiors.

The main issue in this splitting is to ensure that runtime offsets
aren't part of symbols.  This series applies this change to line
tables.

Regression tested on x86-64 Fedora 36.

Tom

---
Tom Tromey (5):
      Add operator< and operator== to linetable_entry
      Change linetables to be objfile-independent
      Constify linetables
      Remove extra scopes from objfile_relocate1
      Change linetable_entry::is_stmt to bool

 gdb/buildsym.c            |  30 +++++--------
 gdb/coffread.c            |   1 -
 gdb/dbxread.c             |   9 ++--
 gdb/disasm.c              |  31 +++++++++-----
 gdb/dwarf2/read.c         |   5 +--
 gdb/jit.c                 |  12 +++---
 gdb/linespec.c            |   6 +--
 gdb/mdebugread.c          |  14 ++++---
 gdb/mi/mi-symbol-cmds.c   |   6 ++-
 gdb/objfiles.c            |  92 +++++++++++++++-------------------------
 gdb/python/py-linetable.c |  14 +++----
 gdb/record-btrace.c       |  12 ++++--
 gdb/symmisc.c             |  10 ++---
 gdb/symtab.c              | 104 ++++++++++++++++++++++++++++------------------
 gdb/symtab.h              |  36 +++++++++++++---
 gdb/xcoffread.c           |  19 ++++-----
 16 files changed, 215 insertions(+), 186 deletions(-)
---
base-commit: 447d06696999be437b0e3c1a1f26e050ad91b952
change-id: 20230308-submit-constify-linetable-fb1ad2a5b673

Best regards,
-- 
Tom Tromey <tom@tromey.com>


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

end of thread, other threads:[~2023-03-20 14:57 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-08 15:42 [PATCH 0/5] Make line tables independent of objfile Tom Tromey
2023-03-08 15:42 ` [PATCH 1/5] Add operator< and operator== to linetable_entry Tom Tromey
2023-03-11  3:21   ` Simon Marchi
2023-03-08 15:42 ` [PATCH 2/5] Change linetables to be objfile-independent Tom Tromey
2023-03-11  3:48   ` Simon Marchi
2023-03-11 15:36     ` Tom Tromey
2023-03-11 19:13       ` Simon Marchi
2023-03-12  3:24         ` Tom Tromey
2023-03-12 13:40           ` Simon Marchi
2023-03-16 14:02             ` Tom Tromey
2023-03-16 14:45               ` Simon Marchi
2023-03-16 23:43                 ` Tom Tromey
2023-03-17  2:45                   ` Simon Marchi
2023-03-17 13:09                     ` Tom Tromey
2023-03-17 22:21                       ` Tom Tromey
2023-03-20 14:57                         ` Simon Marchi
2023-03-08 15:42 ` [PATCH 3/5] Constify linetables Tom Tromey
2023-03-08 15:42 ` [PATCH 4/5] Remove extra scopes from objfile_relocate1 Tom Tromey
2023-03-08 15:42 ` [PATCH 5/5] Change linetable_entry::is_stmt to bool Tom Tromey
2023-03-11  3:51 ` [PATCH 0/5] Make line tables independent of objfile 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).