* [pushed] gdb: remove unnecessary declarations in target.c
@ 2023-10-16 19:54 Simon Marchi
0 siblings, 0 replies; only message in thread
From: Simon Marchi @ 2023-10-16 19:54 UTC (permalink / raw)
To: gdb-patches; +Cc: Simon Marchi
I found that these local declarations were not needed, remove them.
Tested by rebuilding.
Change-Id: I8d4fd0839ee1063b91dc002216d683aee0d4be22
---
gdb/target.c | 34 ----------------------------------
1 file changed, 34 deletions(-)
diff --git a/gdb/target.c b/gdb/target.c
index 6853c1432318..d721cf0d231a 100644
--- a/gdb/target.c
+++ b/gdb/target.c
@@ -57,48 +57,14 @@
static void generic_tls_error (void) ATTRIBUTE_NORETURN;
-static void default_terminal_info (struct target_ops *, const char *, int);
-
-static int default_watchpoint_addr_within_range (struct target_ops *,
- CORE_ADDR, CORE_ADDR, int);
-
-static int default_region_ok_for_hw_watchpoint (struct target_ops *,
- CORE_ADDR, int);
-
static void default_rcmd (struct target_ops *, const char *, struct ui_file *);
-static ptid_t default_get_ada_task_ptid (struct target_ops *self,
- long lwp, ULONGEST tid);
-
-static void default_mourn_inferior (struct target_ops *self);
-
-static int default_search_memory (struct target_ops *ops,
- CORE_ADDR start_addr,
- ULONGEST search_space_len,
- const gdb_byte *pattern,
- ULONGEST pattern_len,
- CORE_ADDR *found_addrp);
-
static int default_verify_memory (struct target_ops *self,
const gdb_byte *data,
CORE_ADDR memaddr, ULONGEST size);
static void tcomplain (void) ATTRIBUTE_NORETURN;
-static struct target_ops *find_default_run_target (const char *);
-
-static int dummy_find_memory_regions (struct target_ops *self,
- find_memory_region_ftype ignore1,
- void *ignore2);
-
-static gdb::unique_xmalloc_ptr<char> dummy_make_corefile_notes
- (struct target_ops *self, bfd *ignore1, int *ignore2);
-
-static std::string default_pid_to_str (struct target_ops *ops, ptid_t ptid);
-
-static enum exec_direction_kind default_execution_direction
- (struct target_ops *self);
-
/* Mapping between target_info objects (which have address identity)
and corresponding open/factory function/callback. Each add_target
call adds one entry to this map, and registers a "target
base-commit: 41ab08f84b926ea4d1b6ff242734f166e5f9f6fc
--
2.42.0
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-10-16 19:54 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-10-16 19:54 [pushed] gdb: remove unnecessary declarations in target.c Simon Marchi
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).