aboutsummaryrefslogtreecommitdiff
path: root/gdb/infrun.c
diff options
context:
space:
mode:
authorDaniel Jacobowitz <drow@false.org>2006-10-18 16:56:13 +0000
committerDaniel Jacobowitz <drow@false.org>2006-10-18 16:56:13 +0000
commit8621d6a94413b84d5d3353b717607194d7584943 (patch)
tree3f3e64904b3db0afa9355cc3e57e752b715b1526 /gdb/infrun.c
parent2f83a18e2abe9144bfbb72bc75a68ba64445a9e1 (diff)
downloadgdb-8621d6a94413b84d5d3353b717607194d7584943.zip
gdb-8621d6a94413b84d5d3353b717607194d7584943.tar.gz
gdb-8621d6a94413b84d5d3353b717607194d7584943.tar.bz2
* inferior.h (start_remote): Update prototype.
* infrun.c (start_remote): Take FROM_TTY. Call post_create_inferior. * monitor.c (monitor_open): Update call to start_remote. * remote-sds.c (sds_start_remote, sds_open): Likewise. * remote.c (remote_start_remote): Likewise. (remote_start_remote_dummy): Removed. (remote_open): Update call to remote_start_remote. Do not call post_create_inferior here.
Diffstat (limited to 'gdb/infrun.c')
-rw-r--r--gdb/infrun.c13
1 files changed, 10 insertions, 3 deletions
diff --git a/gdb/infrun.c b/gdb/infrun.c
index 61afab2..b9652f6 100644
--- a/gdb/infrun.c
+++ b/gdb/infrun.c
@@ -2,8 +2,9 @@
process.
Copyright (C) 1986, 1987, 1988, 1989, 1990, 1991, 1992, 1993, 1994,
- 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004 Free
- Software Foundation, Inc.
+ 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
+ 2006
+ Free Software Foundation, Inc.
This file is part of GDB.
@@ -832,7 +833,7 @@ proceed (CORE_ADDR addr, enum target_signal siggnal, int step)
/* Start remote-debugging of a machine over a serial link. */
void
-start_remote (void)
+start_remote (int from_tty)
{
init_thread_list ();
init_wait_for_inferior ();
@@ -854,6 +855,12 @@ start_remote (void)
is currently running and GDB state should be set to the same as
for an async run. */
wait_for_inferior ();
+
+ /* Now that the inferior has stopped, do any bookkeeping like
+ loading shared libraries. We want to do this before normal_stop,
+ so that the displayed frame is up to date. */
+ post_create_inferior (&current_target, from_tty);
+
normal_stop ();
}