mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-26 17:18:55 +00:00
Delete unused or undefined functions.
* breakpoint.c (ep_parse_optional_filename): Delete.
* dcache.c (dcache_write_line): Remove declaration.
* infrun.c (build_infrun): Remove declaration.
* tracepoint.c (tracepoint_save_command): Remove declaration.
* linux-nat.c (init_lwp_list): Delete. No longer used.
* event-loop.c (check_async_signal_handlers): Delete declaration.
* infrun.c (init_execution_control_state): Delete.
(proceed): Update comment to avoid mentioning
init_execution_control_state.
* target.c (kill_or_be_killed, nosupport_runtime): Delete.
* ada-lang.c (ada_to_static_fixed_value): Delete.
* scm-lang.c (evaluate_subexp_scm): Delete declaration.
* cp-namespace.c (cp_copy_usings): Delete.
* xml-syscall.c (xml_number_of_syscalls): Delete.
* progspace.c (find_program_space_by_num): Delete.
* inflow.c (handle_sigio): Delete declaration.
* hppa-tdep.c (hppa_alignof): Delete.
* mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset)
(mipsnbsd_core_osabi_sniffer): Delete.
This commit is contained in:
41
gdb/target.c
41
gdb/target.c
@@ -46,8 +46,6 @@
|
||||
|
||||
static void target_info (char *, int);
|
||||
|
||||
static void kill_or_be_killed (int);
|
||||
|
||||
static void default_terminal_info (char *, int);
|
||||
|
||||
static int default_watchpoint_addr_within_range (struct target_ops *,
|
||||
@@ -73,8 +71,6 @@ static void target_command (char *, int);
|
||||
|
||||
static struct target_ops *find_default_run_target (char *);
|
||||
|
||||
static void nosupport_runtime (void);
|
||||
|
||||
static LONGEST default_xfer_partial (struct target_ops *ops,
|
||||
enum target_object object,
|
||||
const char *annex, gdb_byte *readbuf,
|
||||
@@ -519,49 +515,12 @@ nosymbol (char *name, CORE_ADDR *addrp)
|
||||
return 1; /* Symbol does not exist in target env */
|
||||
}
|
||||
|
||||
static void
|
||||
nosupport_runtime (void)
|
||||
{
|
||||
if (ptid_equal (inferior_ptid, null_ptid))
|
||||
noprocess ();
|
||||
else
|
||||
error (_("No run-time support for this"));
|
||||
}
|
||||
|
||||
|
||||
static void
|
||||
default_terminal_info (char *args, int from_tty)
|
||||
{
|
||||
printf_unfiltered (_("No saved terminal information.\n"));
|
||||
}
|
||||
|
||||
/* This is the default target_create_inferior and target_attach function.
|
||||
If the current target is executing, it asks whether to kill it off.
|
||||
If this function returns without calling error(), it has killed off
|
||||
the target, and the operation should be attempted. */
|
||||
|
||||
static void
|
||||
kill_or_be_killed (int from_tty)
|
||||
{
|
||||
if (target_has_execution)
|
||||
{
|
||||
printf_unfiltered (_("You are already running a program:\n"));
|
||||
target_files_info ();
|
||||
if (query (_("Kill it? ")))
|
||||
{
|
||||
target_kill ();
|
||||
if (target_has_execution)
|
||||
error (_("Killing the program did not help."));
|
||||
return;
|
||||
}
|
||||
else
|
||||
{
|
||||
error (_("Program not killed."));
|
||||
}
|
||||
}
|
||||
tcomplain ();
|
||||
}
|
||||
|
||||
/* A default implementation for the to_get_ada_task_ptid target method.
|
||||
|
||||
This function builds the PTID by using both LWP and TID as part of
|
||||
|
||||
Reference in New Issue
Block a user