aboutsummaryrefslogtreecommitdiff
path: root/gdb/target.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2004-05-25 14:58:31 +0000
committerAndrew Cagney <cagney@redhat.com>2004-05-25 14:58:31 +0000
commitc27cda74c7f78e8db4cd25c739daca07ed83412c (patch)
treeda7dc259633bb76ffaba0c5ab98dd0104c8bc0ad /gdb/target.c
parent1db2a7980ccad741cf45d0e8afd83fe7a9793cc4 (diff)
downloadgdb-c27cda74c7f78e8db4cd25c739daca07ed83412c.zip
gdb-c27cda74c7f78e8db4cd25c739daca07ed83412c.tar.gz
gdb-c27cda74c7f78e8db4cd25c739daca07ed83412c.tar.bz2
2004-05-25 Andrew Cagney <cagney@gnu.org>
* target.h (struct target_ops): Add from_tty to to_create_inferior. (target_create_inferior, find_default_create_inferior): Update. * infcmd.c (run_command): Update. * wince.c (child_create_inferior): Update. * win32-nat.c (child_create_inferior): Update. * uw-thread.c (uw_thread_create_inferior): Update. * thread-db.c (thread_db_create_inferior): Update. * target.c (debug_to_create_inferior) (find_default_create_inferior): Update. (maybe_kill_then_create_inferior): Update. * sol-thread.c (sol_thread_create_inferior): Update. * remote.c (extended_remote_async_create_inferior) (extended_remote_create_inferior): Update. * remote-vx.c (vx_create_inferior): Update. * remote-st.c (st2000_create_inferior): Update. * remote-sim.c (gdbsim_create_inferior): Update. * remote-sds.c (sds_create_inferior): Update. * remote-rdp.c (remote_rdp_create_inferior): Update. * remote-rdi.c (arm_rdi_create_inferior): Update. * remote-m32r-sdi.c (m32r_create_inferior): Update. * remote-e7000.c (e7000_create_inferior): Update. * procfs.c (procfs_create_inferior): Update. * ocd.c (ocd_create_inferior): Update. * ocd.h (ocd_create_inferior): Update. * nto-procfs.c (procfs_create_inferior): Update. * monitor.c (monitor_create_inferior): Update. * lin-lwp.c (lin_lwp_create_inferior): Update. * inftarg.c (child_create_inferior): Update. * hpux-thread.c (hpux_thread_create_inferior): Update. * gnu-nat.c (gnu_create_inferior): Update.
Diffstat (limited to 'gdb/target.c')
-rw-r--r--gdb/target.c23
1 files changed, 11 insertions, 12 deletions
diff --git a/gdb/target.c b/gdb/target.c
index b519866..97ab6a8 100644
--- a/gdb/target.c
+++ b/gdb/target.c
@@ -41,8 +41,6 @@
static void target_info (char *, int);
-static void maybe_kill_then_create_inferior (char *, char *, char **);
-
static void maybe_kill_then_attach (char *, int);
static void kill_or_be_killed (int);
@@ -151,8 +149,6 @@ static void debug_to_load (char *, int);
static int debug_to_lookup_symbol (char *, CORE_ADDR *);
-static void debug_to_create_inferior (char *, char *, char **);
-
static void debug_to_mourn_inferior (void);
static int debug_to_can_run (void);
@@ -339,10 +335,11 @@ maybe_kill_then_attach (char *args, int from_tty)
}
static void
-maybe_kill_then_create_inferior (char *exec, char *args, char **env)
+maybe_kill_then_create_inferior (char *exec, char *args, char **env,
+ int from_tty)
{
kill_or_be_killed (0);
- target_create_inferior (exec, args, env);
+ target_create_inferior (exec, args, env, from_tty);
}
/* Go through the target stack from top to bottom, copying over zero
@@ -1340,12 +1337,13 @@ find_default_attach (char *args, int from_tty)
}
void
-find_default_create_inferior (char *exec_file, char *allargs, char **env)
+find_default_create_inferior (char *exec_file, char *allargs, char **env,
+ int from_tty)
{
struct target_ops *t;
t = find_default_run_target ("run");
- (t->to_create_inferior) (exec_file, allargs, env);
+ (t->to_create_inferior) (exec_file, allargs, env, from_tty);
return;
}
@@ -2071,12 +2069,13 @@ debug_to_lookup_symbol (char *name, CORE_ADDR *addrp)
}
static void
-debug_to_create_inferior (char *exec_file, char *args, char **env)
+debug_to_create_inferior (char *exec_file, char *args, char **env,
+ int from_tty)
{
- debug_target.to_create_inferior (exec_file, args, env);
+ debug_target.to_create_inferior (exec_file, args, env, from_tty);
- fprintf_unfiltered (gdb_stdlog, "target_create_inferior (%s, %s, xxx)\n",
- exec_file, args);
+ fprintf_unfiltered (gdb_stdlog, "target_create_inferior (%s, %s, xxx, %d)\n",
+ exec_file, args, from_tty);
}
static void