Remove target_has_all_memory
authorTom Tromey <tom@tromey.com>
Tue, 29 Sep 2020 01:38:25 +0000 (19:38 -0600)
committerTom Tromey <tom@tromey.com>
Tue, 29 Sep 2020 01:52:21 +0000 (19:52 -0600)
target_has_all_memory isn't used anywhere, so this patch removes it.

gdb/ChangeLog
2020-09-28  Tom Tromey  <tom@tromey.com>

* target.c (target_has_all_memory_1): Remove.
* target.h (target_has_all_memory): Remove define.
(target_has_all_memory_1): Don't declare.

gdb/ChangeLog
gdb/target.c
gdb/target.h

index c99fce06919fe32fddb837cf35837c0baad6ace4..9bdd1f2a8e96966897078008ce1472adda8931a9 100644 (file)
@@ -1,3 +1,9 @@
+2020-09-28  Tom Tromey  <tom@tromey.com>
+
+       * target.c (target_has_all_memory_1): Remove.
+       * target.h (target_has_all_memory): Remove define.
+       (target_has_all_memory_1): Don't declare.
+
 2020-09-28  Simon Marchi  <simon.marchi@polymtl.ca>
 
        * ser-base.c: Adjust comments formatting.
index 9fd6b4ba9e13d0c9f86504cc5d015c6fdf694cf8..6596efa6984ad02b99e9d8e8fa11f9bfebbb694b 100644 (file)
@@ -169,16 +169,6 @@ show_targetdebug (struct ui_file *file, int from_tty,
   fprintf_filtered (file, _("Target debugging is %s.\n"), value);
 }
 
-int
-target_has_all_memory_1 (void)
-{
-  for (target_ops *t = current_top_target (); t != NULL; t = t->beneath ())
-    if (t->has_all_memory ())
-      return 1;
-
-  return 0;
-}
-
 int
 target_has_memory_1 (void)
 {
index 0cb92fa8ea885c3ed8e479e53c93315c52bc3abf..23022a118adfb638ab4c933228eecbe8c45aa39e 100644 (file)
@@ -1810,13 +1810,6 @@ extern void default_target_pass_ctrlc (struct target_ops *ops);
      (current_top_target ()->rcmd) (command, outbuf)
 
 
-/* Does the target include all of memory, or only part of it?  This
-   determines whether we look up the target chain for other parts of
-   memory if this target can't satisfy a request.  */
-
-extern int target_has_all_memory_1 (void);
-#define target_has_all_memory target_has_all_memory_1 ()
-
 /* Does the target include memory?  (Dummy targets don't.)  */
 
 extern int target_has_memory_1 (void);
This page took 0.045556 seconds and 4 git commands to generate.