binutils-gdb/gdb/python
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
..
lib/gdb Fix DAP stackTrace through frames without debuginfo 2023-03-06 08:15:04 -07:00
py-all-events.def Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
py-arch.c Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
py-auto-load.c Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
py-block.c Remove ALL_BLOCK_SYMBOLS_WITH_NAME 2023-02-19 12:51:06 -07:00
py-bpevent.c Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
py-breakpoint.c gdb: fix mi breakpoint-deleted notifications for thread-specific b/p 2023-02-28 10:56:28 +00:00
py-cmd.c gdb, gdbserver, gdbsupport: fix whitespace issues 2023-03-09 16:32:00 -05:00
py-connection.c Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
py-continueevent.c Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
py-dap.c Simplify interp::exec / interp_exec - let exceptions propagate 2023-02-08 17:28:42 +00:00
py-disasm.c gdb/python: replace strlen call with std::string::size call 2023-03-03 09:56:21 +00:00
py-event-types.def Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
py-event.c Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
py-event.h Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
py-events.h Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
py-evtregistry.c Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
py-evts.c Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
py-exitedevent.c Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
py-finishbreakpoint.c gdb: fix mi breakpoint-deleted notifications for thread-specific b/p 2023-02-28 10:56:28 +00:00
py-frame.c Fix value chain use-after-free 2023-02-27 15:46:31 -07:00
py-framefilter.c Turn value_type into method 2023-02-13 15:21:06 -07:00
py-function.c Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
py-gdb-readline.c Python QUIT processing updates 2023-02-27 16:20:39 -07:00
py-inferior.c Turn remaining value_contents functions into methods 2023-02-13 15:22:16 -07:00
py-infevents.c Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
py-infthread.c Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
py-instruction.c Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
py-instruction.h Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
py-lazy-string.c Fix value chain use-after-free 2023-02-27 15:46:31 -07:00
py-linetable.c Change linetables to be objfile-independent 2023-03-11 08:47:40 -07:00
py-membuf.c Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
py-micmd.c gdb, gdbserver, gdbsupport: fix whitespace issues 2023-03-09 16:32:00 -05:00
py-newobjfileevent.c Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
py-objfile.c Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
py-param.c GDB: Allow arbitrary keywords in integer set commands 2023-01-19 21:15:56 +00:00
py-prettyprint.c Fix value chain use-after-free 2023-02-27 15:46:31 -07:00
py-progspace.c Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
py-record-btrace.c Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
py-record-btrace.h Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
py-record-full.c Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
py-record-full.h Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
py-record.c Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
py-record.h Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
py-ref.h Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
py-registers.c Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
py-signalevent.c Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
py-stopevent.c Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
py-stopevent.h Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
py-symbol.c Python QUIT processing updates 2023-02-27 16:20:39 -07:00
py-symtab.c Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
py-threadevent.c Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
py-tui.c gdb/python: Fix --disable-tui build 2023-03-06 17:31:57 +01:00
py-type.c Fix value chain use-after-free 2023-02-27 15:46:31 -07:00
py-unwind.c Fix value chain use-after-free 2023-02-27 15:46:31 -07:00
py-utils.c Python QUIT processing updates 2023-02-27 16:20:39 -07:00
py-value.c Python QUIT processing updates 2023-02-27 16:20:39 -07:00
py-varobj.c Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
py-xmethods.c Fix value chain use-after-free 2023-02-27 15:46:31 -07:00
python-config.py gdb/python-config: replace deprecated distutils.sysconfig 2022-09-01 04:51:33 -04:00
python-internal.h gdb: fix mi breakpoint-deleted notifications for thread-specific b/p 2023-02-28 10:56:28 +00:00
python.c gdb, gdbserver, gdbsupport: fix whitespace issues 2023-03-09 16:32:00 -05:00
python.h Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00