binutils-gdb/gdb/cli
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
..
cli-cmds.c Remove explanatory comments from includes 2023-09-20 11:45:16 -06:00
cli-cmds.h Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
cli-decode.c [gdb] Fix more typos 2023-06-05 12:53:15 +02:00
cli-decode.h gdb: remove unused parameters in print_doc_of_command, apropos_cmd 2023-04-02 14:11:33 -04:00
cli-dump.c gdb: remove target_gdbarch 2023-10-10 10:44:35 -04:00
cli-interp.c Remove explanatory comments from includes 2023-09-20 11:45:16 -06:00
cli-interp.h gdb: add interp::on_user_selected_context_changed method 2023-05-30 15:07:26 -04:00
cli-logging.c Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
cli-option.c GDB: Allow arbitrary keywords in integer set commands 2023-01-19 21:15:56 +00:00
cli-option.h GDB: Allow arbitrary keywords in integer set commands 2023-01-19 21:15:56 +00:00
cli-script.c gdb: move struct ui and related things to ui.{c,h} 2023-05-01 15:40:54 -04:00
cli-script.h Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
cli-setshow.c Use std::string in do_set_command 2023-06-20 07:52:28 -06:00
cli-setshow.h GDB: Allow arbitrary keywords in integer set commands 2023-01-19 21:15:56 +00:00
cli-style.c Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
cli-style.h Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
cli-utils.c Turn value_type into method 2023-02-13 15:21:06 -07:00
cli-utils.h Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00