This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[ob]] Fix typo from inlined ptrace-wait


FYI,

Testing on a non GNU/Linux m/c turned this up. Committed as obvious.

Andrew
2004-09-29  Andrew Cagney  <cagney@gnu.org>

	* infptrace.c (kill_inferior): Fix typo, in previous inline.  Pass
	the address of status.

Index: infptrace.c
===================================================================
RCS file: /cvs/src/src/gdb/infptrace.c,v
retrieving revision 1.47
diff -p -u -r1.47 infptrace.c
--- infptrace.c	29 Sep 2004 15:55:55 -0000	1.47
+++ infptrace.c	29 Sep 2004 19:02:56 -0000
@@ -174,7 +174,7 @@ kill_inferior (void)
      The kill call causes problems under hpux10, so it's been removed;
      if this causes problems we'll deal with them as they arise.  */
   ptrace (PT_KILL, pid, (PTRACE_TYPE_ARG3) 0, 0);
-  wait (status);
+  wait (&status);
   target_mourn_inferior ();
 }
 #endif /* DEPRECATED_KILL_INFERIOR */

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]