From 5b8a477608a972184e03b6950965757a0d057543 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Mon, 28 Sep 2020 19:38:25 -0600 Subject: [PATCH] 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 * 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 | 6 ++++++ gdb/target.c | 10 ---------- gdb/target.h | 7 ------- 3 files changed, 6 insertions(+), 17 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index c99fce06919..9bdd1f2a8e9 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2020-09-28 Tom Tromey + + * 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 * ser-base.c: Adjust comments formatting. diff --git a/gdb/target.c b/gdb/target.c index 9fd6b4ba9e1..6596efa6984 100644 --- a/gdb/target.c +++ b/gdb/target.c @@ -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) { diff --git a/gdb/target.h b/gdb/target.h index 0cb92fa8ea8..23022a118ad 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); -- 2.30.2