diff options
author | Yao Qi <yao.qi@linaro.org> | 2016-11-03 14:35:14 +0000 |
---|---|---|
committer | Yao Qi <yao.qi@linaro.org> | 2016-11-03 14:35:14 +0000 |
commit | c0f4a997c26760d2584946196ee5c411d1a632a6 (patch) | |
tree | 2456865030d3dd3d8bcaffa24d4e30dfd9279e2d /gdb/gdbarch.c | |
parent | 579c6ad9830058ccebf9c592d692c25fac6285c7 (diff) | |
download | gdb-c0f4a997c26760d2584946196ee5c411d1a632a6.zip gdb-c0f4a997c26760d2584946196ee5c411d1a632a6.tar.gz gdb-c0f4a997c26760d2584946196ee5c411d1a632a6.tar.bz2 |
Remove gdbarch_remote_breakpoint_from_pc
This patch removes gdbarch method remote_breakpoint_from_pc, as it
is no longer used.
gdb:
2016-11-03 Yao Qi <yao.qi@linaro.org>
* arch-utils.c (default_remote_breakpoint_from_pc): Remove.
* arch-utils.h (default_remote_breakpoint_from_pc): Remove.
* arm-tdep.c (arm_remote_breakpoint_from_pc): Remove.
(arm_gdbarch_init): Don't call
set_gdbarch_remote_breakpoint_from_pc.
* gdbarch.sh (remote_breakpoint_from_pc): Remove.
* gdbarch.c, gdbarch.h: Regenerate.
* mips-tdep.c (mips_remote_breakpoint_from_pc): Remove.
(mips_gdbarch_init): Don't call
set_gdbarch_remote_breakpoint_from_pc.
Diffstat (limited to 'gdb/gdbarch.c')
-rw-r--r-- | gdb/gdbarch.c | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/gdb/gdbarch.c b/gdb/gdbarch.c index 0377b4d..a1e311b 100644 --- a/gdb/gdbarch.c +++ b/gdb/gdbarch.c @@ -232,7 +232,6 @@ struct gdbarch gdbarch_breakpoint_from_pc_ftype *breakpoint_from_pc; gdbarch_breakpoint_kind_from_pc_ftype *breakpoint_kind_from_pc; gdbarch_sw_breakpoint_from_kind_ftype *sw_breakpoint_from_kind; - gdbarch_remote_breakpoint_from_pc_ftype *remote_breakpoint_from_pc; gdbarch_adjust_breakpoint_address_ftype *adjust_breakpoint_address; gdbarch_memory_insert_breakpoint_ftype *memory_insert_breakpoint; gdbarch_memory_remove_breakpoint_ftype *memory_remove_breakpoint; @@ -406,7 +405,6 @@ gdbarch_alloc (const struct gdbarch_info *info, gdbarch->address_to_pointer = unsigned_address_to_pointer; gdbarch->return_in_first_hidden_param_p = default_return_in_first_hidden_param_p; gdbarch->sw_breakpoint_from_kind = NULL; - gdbarch->remote_breakpoint_from_pc = default_remote_breakpoint_from_pc; gdbarch->memory_insert_breakpoint = default_memory_insert_breakpoint; gdbarch->memory_remove_breakpoint = default_memory_remove_breakpoint; gdbarch->remote_register_number = default_remote_register_number; @@ -589,7 +587,6 @@ verify_gdbarch (struct gdbarch *gdbarch) if (gdbarch->breakpoint_kind_from_pc == 0) fprintf_unfiltered (log, "\n\tbreakpoint_kind_from_pc"); /* Skip verify of sw_breakpoint_from_kind, invalid_p == 0 */ - /* Skip verify of remote_breakpoint_from_pc, invalid_p == 0 */ /* Skip verify of adjust_breakpoint_address, has predicate. */ /* Skip verify of memory_insert_breakpoint, invalid_p == 0 */ /* Skip verify of memory_remove_breakpoint, invalid_p == 0 */ @@ -1291,9 +1288,6 @@ gdbarch_dump (struct gdbarch *gdbarch, struct ui_file *file) "gdbarch_dump: relocate_instruction = <%s>\n", host_address_to_string (gdbarch->relocate_instruction)); fprintf_unfiltered (file, - "gdbarch_dump: remote_breakpoint_from_pc = <%s>\n", - host_address_to_string (gdbarch->remote_breakpoint_from_pc)); - fprintf_unfiltered (file, "gdbarch_dump: remote_register_number = <%s>\n", host_address_to_string (gdbarch->remote_register_number)); fprintf_unfiltered (file, @@ -2828,23 +2822,6 @@ set_gdbarch_sw_breakpoint_from_kind (struct gdbarch *gdbarch, gdbarch->sw_breakpoint_from_kind = sw_breakpoint_from_kind; } -void -gdbarch_remote_breakpoint_from_pc (struct gdbarch *gdbarch, CORE_ADDR *pcptr, int *kindptr) -{ - gdb_assert (gdbarch != NULL); - gdb_assert (gdbarch->remote_breakpoint_from_pc != NULL); - if (gdbarch_debug >= 2) - fprintf_unfiltered (gdb_stdlog, "gdbarch_remote_breakpoint_from_pc called\n"); - gdbarch->remote_breakpoint_from_pc (gdbarch, pcptr, kindptr); -} - -void -set_gdbarch_remote_breakpoint_from_pc (struct gdbarch *gdbarch, - gdbarch_remote_breakpoint_from_pc_ftype remote_breakpoint_from_pc) -{ - gdbarch->remote_breakpoint_from_pc = remote_breakpoint_from_pc; -} - int gdbarch_adjust_breakpoint_address_p (struct gdbarch *gdbarch) { |