Modernize configure.ac's
[deliverable/binutils-gdb.git] / gdb / target.c
index d331fe4204479effd9a219c9524473522a7156e3..ac66a3a8993407219dddfa59318df78b5d83cd39 100644 (file)
@@ -466,6 +466,14 @@ target_terminal_is_inferior (void)
 
 /* See target.h.  */
 
+int
+target_terminal_is_ours (void)
+{
+  return (terminal_state == terminal_is_ours);
+}
+
+/* See target.h.  */
+
 void
 target_terminal_inferior (void)
 {
@@ -2157,6 +2165,8 @@ target_pre_inferior (int from_tty)
      the inferior was attached to.  */
   current_inferior ()->attach_flag = 0;
 
+  current_inferior ()->highest_thread_num = 0;
+
   agent_capability_invalidate ();
 }
 
This page took 0.02577 seconds and 4 git commands to generate.