* readelf.c (dynamic_info): Correct size of array.
[deliverable/binutils-gdb.git] / gdb / gnu-nat.c
index e29672c7179eb8406a05849b440125694217fade..b474037f4a42c3200a46ab5189452fafc2a1124c 100644 (file)
@@ -2166,7 +2166,8 @@ gnu_attach (struct target_ops *ops, char *args, int from_tty)
 
   push_target (ops);
 
-  inferior = add_inferior (pid);
+  inferior = current_inferior ();
+  inferior_appeared (inferior, pid);
   inferior->attach_flag = 1;
 
   inf_update_procs (inf);
@@ -3112,7 +3113,7 @@ Set the thread that gdb thinks is the libc signal thread."),
 Set whether gdb thinks the inferior process is stopped as with SIGSTOP.\n\
 Stopped process will be continued by sending them a signal."),
           &setlist);
-  add_cmd ("stopped", no_class, show_signals_cmd, _("\
+  add_cmd ("stopped", no_class, show_stopped_cmd, _("\
 Show whether gdb thinks the inferior process is stopped as with SIGSTOP."),
           &showlist);
 
This page took 0.025122 seconds and 4 git commands to generate.