aboutsummaryrefslogtreecommitdiff
path: root/gdb/target.c
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2013-12-18 11:11:25 -0700
committerTom Tromey <tromey@redhat.com>2014-02-19 07:47:34 -0700
commit9bb9d61d2fbf706a34b8ddf0d87b9d1fc642d728 (patch)
treeda32b868426896963eec2c288932c6381d0fb380 /gdb/target.c
parent3dbafbbb27843724f56f9016e6781a501c0b2af0 (diff)
downloadgdb-9bb9d61d2fbf706a34b8ddf0d87b9d1fc642d728.zip
gdb-9bb9d61d2fbf706a34b8ddf0d87b9d1fc642d728.tar.gz
gdb-9bb9d61d2fbf706a34b8ddf0d87b9d1fc642d728.tar.bz2
convert to_goto_bookmark
2014-02-19 Tom Tromey <tromey@redhat.com> * target-delegates.c: Rebuild. * target.c (update_current_target): Don't inherit or default to_goto_bookmark. (dummy_goto_bookmark): Remove. (init_dummy_target): Don't inherit or default to_goto_bookmark. * target.h (struct target_ops) <to_goto_bookmark>: Use TARGET_DEFAULT_NORETURN.
Diffstat (limited to 'gdb/target.c')
-rw-r--r--gdb/target.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/gdb/target.c b/gdb/target.c
index 1218e4f..5aefda9 100644
--- a/gdb/target.c
+++ b/gdb/target.c
@@ -671,7 +671,7 @@ update_current_target (void)
/* Do not inherit to_find_memory_regions. */
/* Do not inherit to_make_corefile_notes. */
/* Do not inherit to_get_bookmark. */
- INHERIT (to_goto_bookmark, t);
+ /* Do not inherit to_goto_bookmark. */
/* Do not inherit to_get_thread_local_address. */
INHERIT (to_can_execute_reverse, t);
INHERIT (to_execution_direction, t);
@@ -3680,13 +3680,6 @@ dummy_make_corefile_notes (struct target_ops *self,
return NULL;
}
-/* Error-catcher for target_goto_bookmark. */
-static void
-dummy_goto_bookmark (struct target_ops *self, gdb_byte *ignore, int from_tty)
-{
- tcomplain ();
-}
-
/* Set up the handful of non-empty slots needed by the dummy target
vector. */
@@ -3702,7 +3695,6 @@ init_dummy_target (void)
= find_default_supports_disable_randomization;
dummy_target.to_pid_to_str = dummy_pid_to_str;
dummy_target.to_stratum = dummy_stratum;
- dummy_target.to_goto_bookmark = dummy_goto_bookmark;
dummy_target.to_has_all_memory = (int (*) (struct target_ops *)) return_zero;
dummy_target.to_has_memory = (int (*) (struct target_ops *)) return_zero;
dummy_target.to_has_stack = (int (*) (struct target_ops *)) return_zero;