]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - gdb/target.c
convert to_find_memory_regions
[thirdparty/binutils-gdb.git] / gdb / target.c
index db6771ec938feeb6d366b4346e2c88e877f45f3d..767bcad2a423c50f143bc498727405eec9496a2f 100644 (file)
@@ -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;