public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [RFA 0/6] Make psymbols independent of the progspace
@ 2018-05-03 22:36 Tom Tromey
  2018-05-03 22:36 ` [RFA 2/6] Change representation of psymbol to flush out accessors Tom Tromey
                   ` (6 more replies)
  0 siblings, 7 replies; 25+ messages in thread
From: Tom Tromey @ 2018-05-03 22:36 UTC (permalink / raw)
  To: gdb-patches

This is another old patch series that I never checked in, which I've
now rebased.

Like some earlier series -- most recently for line tables -- This
series changes partial symbols to be independent of the progspace.
This means that the data is now stored unrelocated, and could in
theory be shared across multiple objfiles.

In practice psymtabs cannot be shared yet, because they have a
backlink to the full symtab.

Patches #1-#3 are just infrastructure changes in preparation for the
main patch; and most of the real work is in patch #6.

In patch #6 I chose to adjust addresses like this:

      lo = gdbarch_adjust_dwarf2_addr (gdbarch, lo + baseaddr) - baseaddr;

I'm not sure if this is the best way.  Maybe in the line table (I
can't look at this moment and I don't recall offhand) patch I chose to
pass unrelocated addresses to gdbarch_adjust_dwarf2_addr.  It would be
good to nail down the intended meaning of this hook and adjust
accordingly.

Tested by the buildbot -- but careful review is still required,
because some of the changes are not tested there.

Tom

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

end of thread, other threads:[~2018-06-05 23:31 UTC | newest]

Thread overview: 25+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-05-03 22:36 [RFA 0/6] Make psymbols independent of the progspace Tom Tromey
2018-05-03 22:36 ` [RFA 2/6] Change representation of psymbol to flush out accessors Tom Tromey
2018-06-01 19:19   ` Keith Seitz
2018-06-04 18:11     ` Tom Tromey
2018-06-05 19:49       ` Simon Marchi
2018-06-05 22:56         ` Tom Tromey
2018-06-05 23:31           ` Simon Marchi
2018-05-03 22:36 ` [RFA 6/6] Make psymbols and psymtabs independent of the program space Tom Tromey
2018-06-05 20:34   ` Keith Seitz
2018-05-03 22:36 ` [RFA 5/6] Add validity bits for psymtab high and low fields Tom Tromey
2018-06-01 21:23   ` Keith Seitz
2018-06-05 17:25     ` Tom Tromey
2018-06-05 17:38       ` Keith Seitz
2018-05-03 22:36 ` [RFA 1/6] Remove dead code in end_psymtab Tom Tromey
2018-06-01 18:55   ` Keith Seitz
2018-06-05 19:41     ` Simon Marchi
2018-05-03 22:36 ` [RFA 4/6] Introduce accessors for psymtab high and low fields Tom Tromey
2018-06-01 20:48   ` Keith Seitz
2018-06-04 18:14     ` Tom Tromey
2018-06-05 21:03   ` Simon Marchi
2018-05-03 22:36 ` [RFA 3/6] Make PSYMBOL_VALUE_ADDRESS take objfile argument Tom Tromey
2018-06-01 20:06   ` Keith Seitz
2018-06-01 21:03     ` Tom Tromey
2018-06-05 20:50       ` Simon Marchi
2018-05-25 17:58 ` [RFA 0/6] Make psymbols independent of the progspace Tom Tromey

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).