diff options
author | Simon Marchi <simon.marchi@efficios.com> | 2024-02-05 16:13:58 -0500 |
---|---|---|
committer | Simon Marchi <simon.marchi@efficios.com> | 2024-02-06 10:57:55 -0500 |
commit | 6fdf95ae532c61263e19e2036cfe3057bb928385 (patch) | |
tree | 9b043bfe97a012c33e3a9e0661e6c184ffedccf8 /gdb/solib-frv.c | |
parent | 0afc614c9938fbf5eda10a26c77d574c3c2f945a (diff) | |
download | gdb-6fdf95ae532c61263e19e2036cfe3057bb928385.zip gdb-6fdf95ae532c61263e19e2036cfe3057bb928385.tar.gz gdb-6fdf95ae532c61263e19e2036cfe3057bb928385.tar.bz2 |
gdb: remove core_bfd macro
The core_bfd macro hides a use of current_program_space. Remove it, so
that we have the opportunity to get the program space from the context,
if possible. I guess that the macro was introduced at some point to
replace a global variable of the same name without changing all the
uses.
Change-Id: I971a65b29b5e5a5941f3cb7ea234547daa787268
Approved-By: Tom Tromey <tom@tromey.com>
Diffstat (limited to 'gdb/solib-frv.c')
-rw-r--r-- | gdb/solib-frv.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/solib-frv.c b/gdb/solib-frv.c index c425b33..f90a0a2 100644 --- a/gdb/solib-frv.c +++ b/gdb/solib-frv.c @@ -325,7 +325,8 @@ frv_current_sos () frv_current_sos, and also precedes the call to solib_create_inferior_hook(). (See post_create_inferior() in infcmd.c.) */ - if (main_executable_lm_info == 0 && core_bfd != NULL) + if (main_executable_lm_info == 0 + && current_program_space->core_bfd () != nullptr) frv_relocate_main_executable (); /* Fetch the GOT corresponding to the main executable. */ |