aboutsummaryrefslogtreecommitdiff
path: root/gdb/target.c
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2013-12-18 11:10:32 -0700
committerTom Tromey <tromey@redhat.com>2014-02-19 07:47:33 -0700
commit3dbafbbb27843724f56f9016e6781a501c0b2af0 (patch)
treedaa2d196f513f9f8c9de74647a6a6cfb35c33120 /gdb/target.c
parent16f796b16a0a7c16c8c11800136b99e53984f4c2 (diff)
downloadgdb-3dbafbbb27843724f56f9016e6781a501c0b2af0.zip
gdb-3dbafbbb27843724f56f9016e6781a501c0b2af0.tar.gz
gdb-3dbafbbb27843724f56f9016e6781a501c0b2af0.tar.bz2
convert to_get_bookmark
2014-02-19 Tom Tromey <tromey@redhat.com> * target-delegates.c: Rebuild. * target.c (update_current_target): Don't inherit or default to_get_bookmark. (dummy_get_bookmark): Remove. (init_dummy_target): Don't inherit or default to_get_bookmark. * target.h (struct target_ops) <to_get_bookmark>: Use TARGET_DEFAULT_NORETURN
Diffstat (limited to 'gdb/target.c')
-rw-r--r--gdb/target.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/gdb/target.c b/gdb/target.c
index 911c497..1218e4f 100644
--- a/gdb/target.c
+++ b/gdb/target.c
@@ -670,7 +670,7 @@ update_current_target (void)
/* Do not inherit to_async. */
/* Do not inherit to_find_memory_regions. */
/* Do not inherit to_make_corefile_notes. */
- INHERIT (to_get_bookmark, t);
+ /* Do not inherit to_get_bookmark. */
INHERIT (to_goto_bookmark, t);
/* Do not inherit to_get_thread_local_address. */
INHERIT (to_can_execute_reverse, t);
@@ -3680,14 +3680,6 @@ dummy_make_corefile_notes (struct target_ops *self,
return NULL;
}
-/* Error-catcher for target_get_bookmark. */
-static gdb_byte *
-dummy_get_bookmark (struct target_ops *self, char *ignore1, int ignore2)
-{
- tcomplain ();
- return NULL;
-}
-
/* Error-catcher for target_goto_bookmark. */
static void
dummy_goto_bookmark (struct target_ops *self, gdb_byte *ignore, int from_tty)
@@ -3710,7 +3702,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_get_bookmark = dummy_get_bookmark;
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;