binutils-gdb/gdb/python
Simon Marchi 99d9c3b92c gdb: remove target_gdbarch
This function is just a wrapper around the current inferior's gdbarch.
I find that having that wrapper just obscures where the arch is coming
from, and that it's often used as "I don't know which arch to use so
I'll use this magical target_gdbarch function that gets me an arch" when
the arch should in fact come from something in the context (a thread,
objfile, symbol, etc).  I think that removing it and inlining
`current_inferior ()->arch ()` everywhere will make it a bit clearer
where that arch comes from and will trigger people into reflecting
whether this is the right place to get the arch or not.

Change-Id: I79f14b4e4934c88f91ca3a3155f5fc3ea2fadf6b
Reviewed-By: John Baldwin <jhb@FreeBSD.org>
Approved-By: Andrew Burgess <aburgess@redhat.com>
2023-10-10 10:44:35 -04:00
..
lib/gdb Remove some unnecessary qualification from printing.py 2023-09-26 09:51:56 -06:00
py-all-events.def gdb: add Python events for program space addition and removal 2023-10-02 17:06:40 +01:00
py-arch.c gdb: add __repr__() implementation to a few Python types 2023-07-04 12:07:16 +01:00
py-auto-load.c gdb: add program_space parameters to some auto-load functions 2023-10-05 13:20:50 -04:00
py-block.c gdb: add __repr__() implementation to a few Python types 2023-07-04 12:07:16 +01:00
py-bpevent.c
py-breakpoint.c Use gdb::checked_static_cast for watchpoints 2023-09-19 08:14:00 -06:00
py-cmd.c gdb/python: add mechanism to manage Python initialization functions 2023-05-05 18:24:42 +01:00
py-connection.c gdb/python: add mechanism to manage Python initialization functions 2023-05-05 18:24:42 +01:00
py-continueevent.c
py-dap.c [gdb/dap] Disable DAP for python <= 3.5 2023-08-02 23:14:58 +02:00
py-disasm.c Fix two Python calls that don't check for errors 2023-07-03 11:35:18 -06:00
py-event-types.def gdb: add Python events for program space addition and removal 2023-10-02 17:06:40 +01:00
py-event.c gdb/python: add mechanism to manage Python initialization functions 2023-05-05 18:24:42 +01:00
py-event.h gdb: add program_space parameter to emit_clear_objfiles_event 2023-10-05 13:20:50 -04:00
py-events.h
py-evtregistry.c gdb/python: add mechanism to manage Python initialization functions 2023-05-05 18:24:42 +01:00
py-evts.c
py-exitedevent.c
py-finishbreakpoint.c gdb: remove target_gdbarch 2023-10-10 10:44:35 -04:00
py-frame.c gdb/python: add mechanism to manage Python initialization functions 2023-05-05 18:24:42 +01:00
py-framefilter.c Don't treat references to compound values as "simple". 2023-05-04 08:58:18 -06:00
py-function.c gdb/python: add mechanism to manage Python initialization functions 2023-05-05 18:24:42 +01:00
py-gdb-readline.c gdb/python: add mechanism to manage Python initialization functions 2023-05-05 18:24:42 +01:00
py-inferior.c gdb: remove target_gdbarch 2023-10-10 10:44:35 -04:00
py-infevents.c
py-infthread.c [gdb/build] Return gdb::array_view in thread_info_to_thread_handle 2023-08-24 13:40:38 +02:00
py-instruction.c gdb/python: add mechanism to manage Python initialization functions 2023-05-05 18:24:42 +01:00
py-instruction.h
py-lazy-string.c gdb/python: add mechanism to manage Python initialization functions 2023-05-05 18:24:42 +01:00
py-linetable.c gdb/python: add mechanism to manage Python initialization functions 2023-05-05 18:24:42 +01:00
py-membuf.c gdb/python: add mechanism to manage Python initialization functions 2023-05-05 18:24:42 +01:00
py-mi.c gdb/python: implement support for sending custom MI async notifications 2023-10-10 11:22:56 +01:00
py-micmd.c gdb/python: generalize serialize_mi_result() 2023-10-10 11:22:56 +01:00
py-newobjfileevent.c gdb: add program_space parameter to emit_clear_objfiles_event 2023-10-05 13:20:50 -04:00
py-objfile.c gdb: remove target_gdbarch 2023-10-10 10:44:35 -04:00
py-param.c [gdb/build] Fix enum param_types odr violation 2023-08-14 18:32:29 +02:00
py-prettyprint.c Introduce gdb.ValuePrinter 2023-09-26 09:29:14 -06:00
py-progspace.c gdb: remove target_gdbarch 2023-10-10 10:44:35 -04:00
py-record-btrace.c gdb: remove target_gdbarch 2023-10-10 10:44:35 -04:00
py-record-btrace.h
py-record-full.c
py-record-full.h
py-record.c python, btrace: Fix some small formatting issues. 2023-05-31 09:27:17 +02:00
py-record.h
py-ref.h
py-registers.c gdb/python: add mechanism to manage Python initialization functions 2023-05-05 18:24:42 +01:00
py-signalevent.c
py-stopevent.c
py-stopevent.h
py-symbol.c Remove explanatory comments from includes 2023-09-20 11:45:16 -06:00
py-symtab.c gdb/python: add mechanism to manage Python initialization functions 2023-05-05 18:24:42 +01:00
py-threadevent.c gdb/Python: Added ThreadExitedEvent 2023-06-19 16:17:21 +02:00
py-tui.c [gdb/tui] Fix assert in ~gdbpy_tui_window_maker 2023-07-26 12:29:28 +02:00
py-type.c Give a language to a type 2023-09-19 13:28:42 -06:00
py-unwind.c gdb: add inferior parameter to architecture_changed observable 2023-10-10 10:44:35 -04:00
py-utils.c Remove explanatory comments from includes 2023-09-20 11:45:16 -06:00
py-value.c Remove explanatory comments from includes 2023-09-20 11:45:16 -06:00
py-varobj.c gdb: add gdb::make_unique function 2023-08-23 09:50:30 +01:00
py-xmethods.c gdb/python: add mechanism to manage Python initialization functions 2023-05-05 18:24:42 +01:00
python-config.py
python-internal.h gdb/python: implement support for sending custom MI async notifications 2023-10-10 11:22:56 +01:00
python.c gdb: remove target_gdbarch 2023-10-10 10:44:35 -04:00
python.h