aboutsummaryrefslogtreecommitdiff
path: root/gdb/target.c
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2013-12-18 10:55:34 -0700
committerTom Tromey <tromey@redhat.com>2014-02-19 07:47:31 -0700
commit0b5a271985687f3cfaf22a301e5ad4600df1302b (patch)
treeb5b606d4440dbb483e9bdede2c55f7642e451657 /gdb/target.c
parentd9cb019581e7934faa292b5f9d0caa62be0ceef0 (diff)
downloadgdb-0b5a271985687f3cfaf22a301e5ad4600df1302b.zip
gdb-0b5a271985687f3cfaf22a301e5ad4600df1302b.tar.gz
gdb-0b5a271985687f3cfaf22a301e5ad4600df1302b.tar.bz2
convert to_find_memory_regions
2014-02-19 Tom Tromey <tromey@redhat.com> * target-delegates.c: Rebuild. * target.c (update_current_target): Don't inherit or default to_find_memory_regions. (init_dummy_target): Don't initialize to_find_memory_regions. * target.h (struct target_ops) <to_find_memory_regions>: Use TARGET_DEFAULT_FUNC.
Diffstat (limited to 'gdb/target.c')
-rw-r--r--gdb/target.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/gdb/target.c b/gdb/target.c
index db6771e..767bcad 100644
--- a/gdb/target.c
+++ b/gdb/target.c
@@ -78,6 +78,10 @@ static target_xfer_partial_ftype default_xfer_partial;
static struct gdbarch *default_thread_architecture (struct target_ops *ops,
ptid_t ptid);
+static int dummy_find_memory_regions (struct target_ops *self,
+ find_memory_region_ftype ignore1,
+ void *ignore2);
+
static int find_default_can_async_p (struct target_ops *ignore);
static int find_default_is_async_p (struct target_ops *ignore);
@@ -661,7 +665,7 @@ update_current_target (void)
/* Do not inherit to_can_async_p. */
/* Do not inherit to_is_async_p. */
/* Do not inherit to_async. */
- INHERIT (to_find_memory_regions, t);
+ /* Do not inherit to_find_memory_regions. */
INHERIT (to_make_corefile_notes, t);
INHERIT (to_get_bookmark, t);
INHERIT (to_goto_bookmark, t);
@@ -3703,7 +3707,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_find_memory_regions = dummy_find_memory_regions;
dummy_target.to_make_corefile_notes = dummy_make_corefile_notes;
dummy_target.to_get_bookmark = dummy_get_bookmark;
dummy_target.to_goto_bookmark = dummy_goto_bookmark;