binutils-gdb/gdb/compile
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
..
compile-c-support.c gdb: add gdb::make_unique function 2023-08-23 09:50:30 +01:00
compile-c-symbols.c gdb: remove target_gdbarch 2023-10-10 10:44:35 -04:00
compile-c-types.c gdb: remove TYPE_FIELD_BITSIZE 2023-08-31 13:16:14 -04:00
compile-c.h gdb: move compile_instance to compile/compile.h 2023-01-20 14:48:56 -05:00
compile-cplus-symbols.c gdb: remove target_gdbarch 2023-10-10 10:44:35 -04:00
compile-cplus-types.c gdb: remove TYPE_FIELD_BITSIZE 2023-08-31 13:16:14 -04:00
compile-cplus.h gdb: move compile_instance to compile/compile.h 2023-01-20 14:48:56 -05:00
compile-internal.h gdb: move compile_instance to compile/compile.h 2023-01-20 14:48:56 -05:00
compile-loc2c.c Convert block_linkage_function to method 2023-02-19 12:51:05 -07:00
compile-object-load.c gdb: remove target_gdbarch 2023-10-10 10:44:35 -04:00
compile-object-load.h Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
compile-object-run.c Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
compile-object-run.h Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
compile.c gdb: move struct ui and related things to ui.{c,h} 2023-05-01 15:40:54 -04:00
compile.h gdb: move compile_instance to compile/compile.h 2023-01-20 14:48:56 -05:00
gcc-c-plugin.h Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
gcc-cp-plugin.h Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00