From 8375fdfe4cb64aa15aa635b05e133dccc86de933 Mon Sep 17 00:00:00 2001 From: Simon Marchi Date: Mon, 16 Oct 2023 16:24:53 +0000 Subject: gdb: remove unnecessary declarations in target.c 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(-) (limited to 'gdb') diff --git a/gdb/target.c b/gdb/target.c index 6853c14..d721cf0 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 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 -- cgit v1.1