From: Tom Tromey <tom@tromey.com>
To: gdb-patches@sourceware.org
Subject: [PATCH 0/5] Make line tables independent of objfile
Date: Wed, 08 Mar 2023 08:42:44 -0700 [thread overview]
Message-ID: <20230308-submit-constify-linetable-v1-0-ca4057478141@tromey.com> (raw)
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>
next reply other threads:[~2023-03-08 15:43 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-03-08 15:42 Tom Tromey [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230308-submit-constify-linetable-v1-0-ca4057478141@tromey.com \
--to=tom@tromey.com \
--cc=gdb-patches@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).