2011-06-20 Yao Qi * infrun.c (start_remote): Move call init_wait_for_inferior to ... * remote.c (remote_start_remote): ... here. --- gdb/infrun.c | 1 - gdb/remote.c | 2 ++ 2 files changed, 2 insertions(+), 1 deletions(-) diff --git a/gdb/infrun.c b/gdb/infrun.c index 67a74cc..3d39080 100644 --- a/gdb/infrun.c +++ b/gdb/infrun.c @@ -2128,7 +2128,6 @@ start_remote (int from_tty) { struct inferior *inferior; - init_wait_for_inferior (); inferior = current_inferior (); inferior->stop_soon = STOP_QUIETLY_REMOTE; diff --git a/gdb/remote.c b/gdb/remote.c index 50e671d..559039d 100644 --- a/gdb/remote.c +++ b/gdb/remote.c @@ -3422,6 +3422,8 @@ remote_start_remote (struct ui_out *uiout, void *opaque) /* Always add the main thread. */ add_thread_silent (inferior_ptid); + init_wait_for_inferior (); + get_offsets (); /* Get text, data & bss offsets. */ /* If we could not find a description using qXfer, and we know -- 1.7.0.4