diff options
author | Tom Tromey <tom@tromey.com> | 2020-09-28 19:38:25 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2020-09-28 19:52:21 -0600 |
commit | 5b8a477608a972184e03b6950965757a0d057543 (patch) | |
tree | 67412305de2226edfa7332f310e94151c29ed3a8 | |
parent | 2714a459f8b4d8a5db5f729b850cc1c1818807bd (diff) | |
download | gdb-5b8a477608a972184e03b6950965757a0d057543.zip gdb-5b8a477608a972184e03b6950965757a0d057543.tar.gz gdb-5b8a477608a972184e03b6950965757a0d057543.tar.bz2 |
Remove target_has_all_memory
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.
-rw-r--r-- | gdb/ChangeLog | 6 | ||||
-rw-r--r-- | gdb/target.c | 10 | ||||
-rw-r--r-- | gdb/target.h | 7 |
3 files changed, 6 insertions, 17 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index c99fce0..9bdd1f2 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -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. diff --git a/gdb/target.c b/gdb/target.c index 9fd6b4b..6596efa 100644 --- a/gdb/target.c +++ b/gdb/target.c @@ -170,16 +170,6 @@ show_targetdebug (struct ui_file *file, int from_tty, } 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) { for (target_ops *t = current_top_target (); t != NULL; t = t->beneath ()) diff --git a/gdb/target.h b/gdb/target.h index 0cb92fa..23022a1 100644 --- a/gdb/target.h +++ b/gdb/target.h @@ -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); |