aboutsummaryrefslogtreecommitdiff
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
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.
-rw-r--r--gdb/ChangeLog34
-rw-r--r--gdb/gnu-nat.c3
-rw-r--r--gdb/go32-nat.c4
-rw-r--r--gdb/hpux-thread.c5
-rw-r--r--gdb/infcmd.c2
-rw-r--r--gdb/inftarg.c5
-rw-r--r--gdb/lin-lwp.c5
-rw-r--r--gdb/monitor.c3
-rw-r--r--gdb/nto-procfs.c3
-rw-r--r--gdb/ocd.c2
-rw-r--r--gdb/ocd.h3
-rw-r--r--gdb/procfs.c5
-rw-r--r--gdb/remote-e7000.c3
-rw-r--r--gdb/remote-m32r-sdi.c3
-rw-r--r--gdb/remote-mips.c4
-rw-r--r--gdb/remote-rdi.c4
-rw-r--r--gdb/remote-rdp.c3
-rw-r--r--gdb/remote-sds.c4
-rw-r--r--gdb/remote-sim.c4
-rw-r--r--gdb/remote-st.c3
-rw-r--r--gdb/remote-vx.c2
-rw-r--r--gdb/remote.c9
-rw-r--r--gdb/sol-thread.c5
-rw-r--r--gdb/target.c23
-rw-r--r--gdb/target.h8
-rw-r--r--gdb/thread-db.c5
-rw-r--r--gdb/uw-thread.c5
-rw-r--r--gdb/win32-nat.c3
-rw-r--r--gdb/wince.c3
-rw-r--r--gdb/windows-nat.c3
30 files changed, 105 insertions, 63 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index a6d9c5e..8c46eb4 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,37 @@
+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.
+
2004-05-25 Andrew Cagney <cagney@gnu.com>
* MAINTAINERS: Update e-mail address.
diff --git a/gdb/gnu-nat.c b/gdb/gnu-nat.c
index dee0e2c..aac10f8 100644
--- a/gdb/gnu-nat.c
+++ b/gdb/gnu-nat.c
@@ -2040,7 +2040,8 @@ cur_inf (void)
}
static void
-gnu_create_inferior (char *exec_file, char *allargs, char **env)
+gnu_create_inferior (char *exec_file, char *allargs, char **env,
+ int from_tty)
{
struct inf *inf = cur_inf ();
diff --git a/gdb/go32-nat.c b/gdb/go32-nat.c
index 0932ddb..8568add 100644
--- a/gdb/go32-nat.c
+++ b/gdb/go32-nat.c
@@ -183,7 +183,7 @@ static int go32_xfer_memory (CORE_ADDR memaddr, char *myaddr, int len,
static void go32_files_info (struct target_ops *target);
static void go32_stop (void);
static void go32_kill_inferior (void);
-static void go32_create_inferior (char *exec_file, char *args, char **env);
+static void go32_create_inferior (char *exec_file, char *args, char **env, int from_tty);
static void go32_mourn_inferior (void);
static int go32_can_run (void);
@@ -574,7 +574,7 @@ go32_kill_inferior (void)
}
static void
-go32_create_inferior (char *exec_file, char *args, char **env)
+go32_create_inferior (char *exec_file, char *args, char **env, int from_tty)
{
extern char **environ;
jmp_buf start_state;
diff --git a/gdb/hpux-thread.c b/gdb/hpux-thread.c
index 698c3d9..8938541 100644
--- a/gdb/hpux-thread.c
+++ b/gdb/hpux-thread.c
@@ -431,9 +431,10 @@ hpux_thread_notice_signals (ptid_t ptid)
/* Fork an inferior process, and start debugging it with /proc. */
static void
-hpux_thread_create_inferior (char *exec_file, char *allargs, char **env)
+hpux_thread_create_inferior (char *exec_file, char *allargs, char **env,
+ int from_tty)
{
- child_ops.to_create_inferior (exec_file, allargs, env);
+ child_ops.to_create_inferior (exec_file, allargs, env, from_tty);
if (hpux_thread_active)
{
diff --git a/gdb/infcmd.c b/gdb/infcmd.c
index d1a4af1..bc4fb6e 100644
--- a/gdb/infcmd.c
+++ b/gdb/infcmd.c
@@ -479,7 +479,7 @@ run_command (char *args, int from_tty)
/* We call get_inferior_args() because we might need to compute
the value now. */
target_create_inferior (exec_file, get_inferior_args (),
- environ_vector (inferior_environ));
+ environ_vector (inferior_environ), from_tty);
}
diff --git a/gdb/inftarg.c b/gdb/inftarg.c
index a6f40ec..75e2690 100644
--- a/gdb/inftarg.c
+++ b/gdb/inftarg.c
@@ -73,7 +73,7 @@ static void ptrace_me (void);
static void ptrace_him (int);
-static void child_create_inferior (char *, char *, char **);
+static void child_create_inferior (char *, char *, char **, int);
static void child_mourn_inferior (void);
@@ -356,7 +356,8 @@ ptrace_him (int pid)
ENV is the environment vector to pass. Errors reported with error(). */
static void
-child_create_inferior (char *exec_file, char *allargs, char **env)
+child_create_inferior (char *exec_file, char *allargs, char **env,
+ int from_tty)
{
#ifdef HPUXHPPA
fork_inferior (exec_file, allargs, env, ptrace_me, ptrace_him, pre_fork_inferior, NULL);
diff --git a/gdb/lin-lwp.c b/gdb/lin-lwp.c
index 23cf2c4..4d04d62 100644
--- a/gdb/lin-lwp.c
+++ b/gdb/lin-lwp.c
@@ -1758,9 +1758,10 @@ lin_lwp_kill (void)
}
static void
-lin_lwp_create_inferior (char *exec_file, char *allargs, char **env)
+lin_lwp_create_inferior (char *exec_file, char *allargs, char **env,
+ int from_tty)
{
- child_ops.to_create_inferior (exec_file, allargs, env);
+ child_ops.to_create_inferior (exec_file, allargs, env, from_tty);
}
static void
diff --git a/gdb/monitor.c b/gdb/monitor.c
index cd4f045..a3f6672 100644
--- a/gdb/monitor.c
+++ b/gdb/monitor.c
@@ -2011,7 +2011,8 @@ monitor_kill (void)
the program at that point. */
static void
-monitor_create_inferior (char *exec_file, char *args, char **env)
+monitor_create_inferior (char *exec_file, char *args, char **env,
+ int from_tty)
{
if (args && (*args != '\000'))
error ("Args are not supported by the monitor.");
diff --git a/gdb/nto-procfs.c b/gdb/nto-procfs.c
index 00b4096..9c4b3f9 100644
--- a/gdb/nto-procfs.c
+++ b/gdb/nto-procfs.c
@@ -963,7 +963,8 @@ breakup_args (char *scratch, char **argv)
}
static void
-procfs_create_inferior (char *exec_file, char *allargs, char **env)
+procfs_create_inferior (char *exec_file, char *allargs, char **env,
+ int from_tty)
{
struct inheritance inherit;
pid_t pid;
diff --git a/gdb/ocd.c b/gdb/ocd.c
index 466ba05..8ea727d 100644
--- a/gdb/ocd.c
+++ b/gdb/ocd.c
@@ -1014,7 +1014,7 @@ ocd_mourn (void)
the program at that point. */
void
-ocd_create_inferior (char *exec_file, char *args, char **env)
+ocd_create_inferior (char *exec_file, char *args, char **env, int from_tty)
{
if (args && (*args != '\000'))
error ("Args are not supported by BDM.");
diff --git a/gdb/ocd.h b/gdb/ocd.h
index 64d695a..cf93762 100644
--- a/gdb/ocd.h
+++ b/gdb/ocd.h
@@ -112,7 +112,8 @@ int ocd_xfer_memory (CORE_ADDR memaddr, char *myaddr,
void ocd_mourn (void);
-void ocd_create_inferior (char *exec_file, char *args, char **env);
+void ocd_create_inferior (char *exec_file, char *args, char **env,
+ int from_tty);
int ocd_thread_alive (ptid_t th);
diff --git a/gdb/procfs.c b/gdb/procfs.c
index 352b735..672b5ac 100644
--- a/gdb/procfs.c
+++ b/gdb/procfs.c
@@ -124,7 +124,7 @@ static void procfs_notice_signals (ptid_t);
static void procfs_prepare_to_store (void);
static void procfs_kill_inferior (void);
static void procfs_mourn_inferior (void);
-static void procfs_create_inferior (char *, char *, char **);
+static void procfs_create_inferior (char *, char *, char **, int);
static ptid_t procfs_wait (ptid_t, struct target_waitstatus *);
static int procfs_xfer_memory (CORE_ADDR, char *, int, int,
struct mem_attrib *attrib,
@@ -4972,7 +4972,8 @@ procfs_set_exec_trap (void)
*/
static void
-procfs_create_inferior (char *exec_file, char *allargs, char **env)
+procfs_create_inferior (char *exec_file, char *allargs, char **env,
+ int from_tty)
{
char *shell_file = getenv ("SHELL");
char *tryname;
diff --git a/gdb/remote-e7000.c b/gdb/remote-e7000.c
index f8aa999..4fa481b 100644
--- a/gdb/remote-e7000.c
+++ b/gdb/remote-e7000.c
@@ -371,7 +371,8 @@ get_hex_regs (int n, int regno)
user types "run" after having attached. */
static void
-e7000_create_inferior (char *execfile, char *args, char **env)
+e7000_create_inferior (char *execfile, char *args, char **env,
+ int from_tty)
{
int entry_pt;
diff --git a/gdb/remote-m32r-sdi.c b/gdb/remote-m32r-sdi.c
index e211858..43a902a 100644
--- a/gdb/remote-m32r-sdi.c
+++ b/gdb/remote-m32r-sdi.c
@@ -264,7 +264,8 @@ check_mmu_status (void)
/* This is called not only when we first attach, but also when the
user types "run" after having attached. */
static void
-m32r_create_inferior (char *execfile, char *args, char **env)
+m32r_create_inferior (char *execfile, char *args, char **env,
+ int from_tty)
{
CORE_ADDR entry_pt;
diff --git a/gdb/remote-mips.c b/gdb/remote-mips.c
index ea78e8b..24f9378 100644
--- a/gdb/remote-mips.c
+++ b/gdb/remote-mips.c
@@ -114,8 +114,6 @@ static int mips_xfer_memory (CORE_ADDR memaddr, char *myaddr, int len,
static void mips_files_info (struct target_ops *ignore);
-static void mips_create_inferior (char *execfile, char *args, char **env);
-
static void mips_mourn_inferior (void);
static int pmon_makeb64 (unsigned long v, char *p, int n, int *chksum);
@@ -2178,7 +2176,7 @@ Give up (and stop debugging it)? "))
/* Start running on the target board. */
static void
-mips_create_inferior (char *execfile, char *args, char **env)
+mips_create_inferior (char *execfile, char *args, char **env, int from_tty)
{
CORE_ADDR entry_pt;
diff --git a/gdb/remote-rdi.c b/gdb/remote-rdi.c
index 268ed32..31932f5 100644
--- a/gdb/remote-rdi.c
+++ b/gdb/remote-rdi.c
@@ -68,8 +68,6 @@ static void arm_rdi_resume (ptid_t pid, int step,
static void arm_rdi_open (char *name, int from_tty);
-static void arm_rdi_create_inferior (char *exec_file, char *args, char **env);
-
static void arm_rdi_close (int quitting);
static void arm_rdi_store_registers (int regno);
@@ -334,7 +332,7 @@ device is attached to the remote system (e.g. /dev/ttya).");
user types "run" after having attached. */
static void
-arm_rdi_create_inferior (char *exec_file, char *args, char **env)
+arm_rdi_create_inferior (char *exec_file, char *args, char **env, int from_tty)
{
int len, rslt;
unsigned long arg1, arg2;
diff --git a/gdb/remote-rdp.c b/gdb/remote-rdp.c
index 6452bc2..68e6932 100644
--- a/gdb/remote-rdp.c
+++ b/gdb/remote-rdp.c
@@ -1351,7 +1351,8 @@ remote_rdp_files_info (struct target_ops *target)
static void
-remote_rdp_create_inferior (char *exec_file, char *allargs, char **env)
+remote_rdp_create_inferior (char *exec_file, char *allargs, char **env,
+ int from_tty)
{
CORE_ADDR entry_point;
diff --git a/gdb/remote-sds.c b/gdb/remote-sds.c
index d74fd7d..ce85d09 100644
--- a/gdb/remote-sds.c
+++ b/gdb/remote-sds.c
@@ -76,8 +76,6 @@ static void sds_store_registers (int);
static void sds_mourn (void);
-static void sds_create_inferior (char *, char *, char **);
-
static void sds_load (char *, int);
static int getmessage (unsigned char *, int);
@@ -985,7 +983,7 @@ sds_mourn (void)
}
static void
-sds_create_inferior (char *exec_file, char *args, char **env)
+sds_create_inferior (char *exec_file, char *args, char **env, int from_tty)
{
inferior_ptid = pid_to_ptid (42000);
diff --git a/gdb/remote-sim.c b/gdb/remote-sim.c
index 253782a..a407230 100644
--- a/gdb/remote-sim.c
+++ b/gdb/remote-sim.c
@@ -83,8 +83,6 @@ static void gdbsim_kill (void);
static void gdbsim_load (char *prog, int fromtty);
-static void gdbsim_create_inferior (char *exec_file, char *args, char **env);
-
static void gdbsim_open (char *args, int from_tty);
static void gdbsim_close (int quitting);
@@ -429,7 +427,7 @@ gdbsim_load (char *prog, int fromtty)
user types "run" after having attached. */
static void
-gdbsim_create_inferior (char *exec_file, char *args, char **env)
+gdbsim_create_inferior (char *exec_file, char *args, char **env, int from_tty)
{
int len;
char *arg_buf, **argv;
diff --git a/gdb/remote-st.c b/gdb/remote-st.c
index ce4c7ab..8ae2721 100644
--- a/gdb/remote-st.c
+++ b/gdb/remote-st.c
@@ -229,7 +229,8 @@ get_hex_regs (int n, int regno)
/* This is called not only when we first attach, but also when the
user types "run" after having attached. */
static void
-st2000_create_inferior (char *execfile, char *args, char **env)
+st2000_create_inferior (char *execfile, char *args, char **env,
+ int from_tty)
{
int entry_pt;
diff --git a/gdb/remote-vx.c b/gdb/remote-vx.c
index 2622cce..7895a97 100644
--- a/gdb/remote-vx.c
+++ b/gdb/remote-vx.c
@@ -202,7 +202,7 @@ vx_remove_breakpoint (int addr)
On VxWorks, we ignore exec_file. */
static void
-vx_create_inferior (char *exec_file, char *args, char **env)
+vx_create_inferior (char *exec_file, char *args, char **env, int from_tty)
{
enum clnt_stat status;
arg_array passArgs;
diff --git a/gdb/remote.c b/gdb/remote.c
index e0c9cde..752b233 100644
--- a/gdb/remote.c
+++ b/gdb/remote.c
@@ -107,9 +107,6 @@ static void extended_remote_restart (void);
static void extended_remote_mourn (void);
-static void extended_remote_create_inferior (char *, char *, char **);
-static void extended_remote_async_create_inferior (char *, char *, char **);
-
static void remote_mourn_1 (struct target_ops *);
static void remote_send (char *buf, long sizeof_buf);
@@ -4246,7 +4243,8 @@ remote_mourn_1 (struct target_ops *target)
we're debugging, arguments and an environment. */
static void
-extended_remote_create_inferior (char *exec_file, char *args, char **env)
+extended_remote_create_inferior (char *exec_file, char *args, char **env,
+ int from_tty)
{
/* Rip out the breakpoints; we'll reinsert them after restarting
the remote server. */
@@ -4268,7 +4266,8 @@ extended_remote_create_inferior (char *exec_file, char *args, char **env)
/* Async version of extended_remote_create_inferior. */
static void
-extended_remote_async_create_inferior (char *exec_file, char *args, char **env)
+extended_remote_async_create_inferior (char *exec_file, char *args, char **env,
+ int from_tty)
{
/* Rip out the breakpoints; we'll reinsert them after restarting
the remote server. */
diff --git a/gdb/sol-thread.c b/gdb/sol-thread.c
index 83c09d2..2279b44 100644
--- a/gdb/sol-thread.c
+++ b/gdb/sol-thread.c
@@ -750,9 +750,10 @@ sol_thread_notice_signals (ptid_t ptid)
/* Fork an inferior process, and start debugging it with /proc. */
static void
-sol_thread_create_inferior (char *exec_file, char *allargs, char **env)
+sol_thread_create_inferior (char *exec_file, char *allargs, char **env,
+ int from_tty)
{
- procfs_ops.to_create_inferior (exec_file, allargs, env);
+ procfs_ops.to_create_inferior (exec_file, allargs, env, from_tty);
if (sol_thread_active && !ptid_equal (inferior_ptid, null_ptid))
{
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
diff --git a/gdb/target.h b/gdb/target.h
index 086e3e1..664e242 100644
--- a/gdb/target.h
+++ b/gdb/target.h
@@ -353,7 +353,7 @@ struct target_ops
void (*to_kill) (void);
void (*to_load) (char *, int);
int (*to_lookup_symbol) (char *, CORE_ADDR *);
- void (*to_create_inferior) (char *, char *, char **);
+ void (*to_create_inferior) (char *, char *, char **, int);
void (*to_post_startup_inferior) (ptid_t);
void (*to_acknowledge_created_inferior) (int);
int (*to_insert_fork_catchpoint) (int);
@@ -712,8 +712,8 @@ extern void target_load (char *arg, int from_tty);
ENV is the environment vector to pass. Errors reported with error().
On VxWorks and various standalone systems, we ignore exec_file. */
-#define target_create_inferior(exec_file, args, env) \
- (*current_target.to_create_inferior) (exec_file, args, env)
+#define target_create_inferior(exec_file, args, env, FROM_TTY) \
+ (*current_target.to_create_inferior) (exec_file, args, env, (FROM_TTY))
/* Some targets (such as ttrace-based HPUX) don't allow us to request
@@ -1182,7 +1182,7 @@ extern void noprocess (void);
extern void find_default_attach (char *, int);
-extern void find_default_create_inferior (char *, char *, char **);
+extern void find_default_create_inferior (char *, char *, char **, int);
extern struct target_ops *find_run_target (void);
diff --git a/gdb/thread-db.c b/gdb/thread-db.c
index 99f77ae..9053638 100644
--- a/gdb/thread-db.c
+++ b/gdb/thread-db.c
@@ -1063,7 +1063,8 @@ thread_db_kill (void)
}
static void
-thread_db_create_inferior (char *exec_file, char *allargs, char **env)
+thread_db_create_inferior (char *exec_file, char *allargs, char **env,
+ int from_tty)
{
if (!keep_thread_db)
{
@@ -1071,7 +1072,7 @@ thread_db_create_inferior (char *exec_file, char *allargs, char **env)
using_thread_db = 0;
}
- target_beneath->to_create_inferior (exec_file, allargs, env);
+ target_beneath->to_create_inferior (exec_file, allargs, env, from_tty);
}
static void
diff --git a/gdb/uw-thread.c b/gdb/uw-thread.c
index 947fb14..c37e0ff 100644
--- a/gdb/uw-thread.c
+++ b/gdb/uw-thread.c
@@ -797,12 +797,13 @@ uw_thread_prepare_to_store (void)
This function only gets called with uw_thread_active == 0. */
static void
-uw_thread_create_inferior (char *exec_file, char *allargs, char **env)
+uw_thread_create_inferior (char *exec_file, char *allargs, char **env,
+ int from_tty)
{
if (uw_thread_active)
deactivate_uw_thread ();
- procfs_ops.to_create_inferior (exec_file, allargs, env);
+ procfs_ops.to_create_inferior (exec_file, allargs, env, from_tty);
if (uw_thread_active)
{
find_main ();
diff --git a/gdb/win32-nat.c b/gdb/win32-nat.c
index 2282152..fb78535 100644
--- a/gdb/win32-nat.c
+++ b/gdb/win32-nat.c
@@ -1680,7 +1680,8 @@ child_open (char *arg, int from_tty)
ENV is the environment vector to pass. Errors reported with error(). */
static void
-child_create_inferior (char *exec_file, char *allargs, char **env)
+child_create_inferior (char *exec_file, char *allargs, char **env,
+ int from_tty)
{
char *winenv;
char *temp;
diff --git a/gdb/wince.c b/gdb/wince.c
index f15bbd4..d1dc4bc 100644
--- a/gdb/wince.c
+++ b/gdb/wince.c
@@ -1720,7 +1720,8 @@ wince_initialize (void)
ALLARGS is a string containing the arguments to the program.
ENV is the environment vector to pass. Errors reported with error(). */
static void
-child_create_inferior (char *exec_file, char *args, char **env)
+child_create_inferior (char *exec_file, char *args, char **env,
+ int from_tty)
{
PROCESS_INFORMATION pi;
struct target_waitstatus dummy;
diff --git a/gdb/windows-nat.c b/gdb/windows-nat.c
index 2282152..fb78535 100644
--- a/gdb/windows-nat.c
+++ b/gdb/windows-nat.c
@@ -1680,7 +1680,8 @@ child_open (char *arg, int from_tty)
ENV is the environment vector to pass. Errors reported with error(). */
static void
-child_create_inferior (char *exec_file, char *allargs, char **env)
+child_create_inferior (char *exec_file, char *allargs, char **env,
+ int from_tty)
{
char *winenv;
char *temp;