binutils-gdb/gdb/dwarf2
Tom Tromey 1acc9dca42 Change linetables to be objfile-independent
This changes linetables to not add the text offset to the addresses
they contain.  I did this in a few steps, necessarily combined
together in one patch: I renamed the 'pc' member to 'm_pc', added the
appropriate accessors, and then recompiled.  Then I fixed all the
errors.  Where possible I generally chose to use the raw_pc accessor,
as it is less expensive.

Note that this patch discounts the possibility that the text section
offset might cause wraparound in the addresses in the line table.
However, this was already discounted -- in particular,
objfile_relocate1 did not re-sort the table in this scenario.  (There
was a bug open about this, but as far as I can tell this has never
happened, it's not even clear what inspired that bug.)

Approved-By: Simon Marchi <simon.marchi@efficios.com>
2023-03-11 08:47:40 -07:00
..
abbrev-cache.c Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
abbrev-cache.h gdb: move call site types to call-site.h 2023-01-20 14:48:57 -05:00
abbrev.c Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
abbrev.h Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
attribute.c Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
attribute.h gdb: move call site types to call-site.h 2023-01-20 14:48:57 -05:00
call-site.h gdb: update some copyright years (2022 -> 2023) 2023-03-01 20:54:56 -05:00
comp-unit-head.c Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
comp-unit-head.h gdb: move call site types to call-site.h 2023-01-20 14:48:57 -05:00
cooked-index.c Fix selfcheck regression due to new maint command 2023-03-07 11:30:20 -07:00
cooked-index.h Write the DWARF index in the background 2023-02-24 11:46:53 -07:00
cu.c Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
cu.h Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
die.c Move some code from dwarf2/read.c to die.c 2023-02-12 13:03:58 -07:00
die.h Move some code from dwarf2/read.c to die.c 2023-02-12 13:03:58 -07:00
dwz.c Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
dwz.h Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
expr.c Convert block_linkage_function to method 2023-02-19 12:51:05 -07:00
expr.h Change value::m_initialized to bool 2023-02-15 15:07:07 -07:00
file-and-dir.h Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
frame-tailcall.c Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
frame-tailcall.h Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
frame.c Remove deprecated_lval_hack 2023-02-13 15:22:20 -07:00
frame.h gdb: dwarf2 generic implementation for caching function data 2023-01-25 21:04:40 +01:00
index-cache.c Only use the per-BFD object to write a DWARF index 2023-02-24 11:46:53 -07:00
index-cache.h Only use the per-BFD object to write a DWARF index 2023-02-24 11:46:53 -07:00
index-common.c Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
index-common.h Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
index-write.c Only use the per-BFD object to write a DWARF index 2023-02-24 11:46:53 -07:00
index-write.h Only use the per-BFD object to write a DWARF index 2023-02-24 11:46:53 -07:00
leb.c Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
leb.h Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
line-header.c Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
line-header.h gdb: move call site types to call-site.h 2023-01-20 14:48:57 -05:00
loc.c Use const for dwarf2_property_baton 2023-03-01 15:33:03 -07:00
loc.h Use const for dwarf2_property_baton 2023-03-01 15:33:03 -07:00
macro.c Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
macro.h Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
mapped-index.h Write the DWARF index in the background 2023-02-24 11:46:53 -07:00
public.h Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
read-debug-names.c gdb/dwarf2: split .debug_names reading code to own file 2023-02-15 15:12:06 -05:00
read-debug-names.h gdb/dwarf2: split .debug_names reading code to own file 2023-02-15 15:12:06 -05:00
read-gdb-index.c gdb/dwarf2: split .gdb_index reading code to own file 2023-02-15 15:12:01 -05:00
read-gdb-index.h gdb/dwarf2: split .gdb_index reading code to own file 2023-02-15 15:12:01 -05:00
read.c Change linetables to be objfile-independent 2023-03-11 08:47:40 -07:00
read.h gdb, gdbserver, gdbsupport: fix whitespace issues 2023-03-09 16:32:00 -05:00
sect-names.h Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
section.c Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
section.h Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
stringify.c Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
stringify.h Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
tag.h Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
types.h gdb: update some copyright years (2022 -> 2023) 2023-03-01 20:54:56 -05:00