diff options
author | Tom Tromey <tom@tromey.com> | 2020-09-28 19:38:25 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2020-09-28 19:52:21 -0600 |
commit | 9dccd06e8a4e55adb58d8ebe7f2ed7d9d7dc17de (patch) | |
tree | 398972fcd9481ed0934281293dd8699101cb0f9b /gdb/infcmd.c | |
parent | 841de12014d03189a7e0d8195bb77eba26648966 (diff) | |
download | binutils-9dccd06e8a4e55adb58d8ebe7f2ed7d9d7dc17de.zip binutils-9dccd06e8a4e55adb58d8ebe7f2ed7d9d7dc17de.tar.gz binutils-9dccd06e8a4e55adb58d8ebe7f2ed7d9d7dc17de.tar.bz2 |
Remove target_has_registers macro
This removes the target_has_registers object-like macro, replacing it
with the underlying function.
gdb/ChangeLog
2020-09-28 Tom Tromey <tom@tromey.com>
* tui/tui-regs.c (tui_get_register)
(tui_data_window::show_registers): Update.
* thread.c (scoped_restore_current_thread::restore)
(scoped_restore_current_thread::scoped_restore_current_thread):
Update.
* regcache-dump.c (regcache_print): Update.
* python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
Update.
* mi/mi-main.c (mi_cmd_data_write_register_values): Update.
* mep-tdep.c (current_me_module, current_options): Update.
* linux-thread-db.c (thread_db_load): Update.
* infcmd.c (registers_info, info_vector_command)
(info_float_command): Update.
* ia64-tdep.c (ia64_frame_prev_register)
(ia64_sigtramp_frame_prev_register): Update.
* ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
* gcore.c (derive_stack_segment): Update.
* frame.c (get_current_frame, has_stack_frames): Update.
* findvar.c (language_defn::read_var_value): Update.
* arm-tdep.c (arm_pc_is_thumb): Update.
* target.c (target_has_registers): Rename from
target_has_registers_1.
* target.h (target_has_registers): Remove macro.
(target_has_registers): Rename from target_has_registers_1.
Diffstat (limited to 'gdb/infcmd.c')
-rw-r--r-- | gdb/infcmd.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/infcmd.c b/gdb/infcmd.c index 6f20b7d..88fca1b 100644 --- a/gdb/infcmd.c +++ b/gdb/infcmd.c @@ -2208,7 +2208,7 @@ registers_info (const char *addr_exp, int fpregs) struct frame_info *frame; struct gdbarch *gdbarch; - if (!target_has_registers) + if (!target_has_registers ()) error (_("The program has no registers now.")); frame = get_selected_frame (NULL); gdbarch = get_frame_arch (frame); @@ -2349,7 +2349,7 @@ print_vector_info (struct ui_file *file, static void info_vector_command (const char *args, int from_tty) { - if (!target_has_registers) + if (!target_has_registers ()) error (_("The program has no registers now.")); print_vector_info (gdb_stdout, get_selected_frame (NULL), args); @@ -2887,7 +2887,7 @@ info_float_command (const char *args, int from_tty) { struct frame_info *frame; - if (!target_has_registers) + if (!target_has_registers ()) error (_("The program has no registers now.")); frame = get_selected_frame (NULL); |