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/linux-thread-db.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/linux-thread-db.c')
-rw-r--r-- | gdb/linux-thread-db.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/linux-thread-db.c b/gdb/linux-thread-db.c index 9c756fe..34a3989 100644 --- a/gdb/linux-thread-db.c +++ b/gdb/linux-thread-db.c @@ -1220,7 +1220,7 @@ thread_db_load (void) return false; /* Don't attempt to use thread_db for remote targets. */ - if (!(target_can_run () || core_bfd)) + if (!(target_can_run () || current_program_space->core_bfd () != nullptr)) return false; if (thread_db_load_search ()) |