This is the mail archive of the
gdb-patches@sourceware.cygnus.com
mailing list for the GDB project.
RFA: Fix arguments passed to W_SETSTOP
Looks like a careless cut and paste. Does this fix look right?
2000-03-17 Jim Blandy <jimb@redhat.com>
* gdb_wait.h (WSETSTOP): Pass the appropriate number of arguments
to W_STOPCODE.
Index: gdb_wait.h
===================================================================
RCS file: /cvs/src/src/gdb/gdb_wait.h,v
retrieving revision 1.2
diff -c -c -b -F'^(' -r1.2 gdb_wait.h
*** gdb_wait.h 2000/03/17 19:50:29 1.2
--- gdb_wait.h 2000/03/17 21:39:24
***************
*** 95,101 ****
#ifndef WSETSTOP
# ifdef W_STOPCODE
! #define WSETSTOP(w,status) ((w) = W_STOPCODE(status,0))
# else
#define WSETSTOP(w,sig) ((w) = (0177 | ((sig) << 8)))
# endif
--- 95,101 ----
#ifndef WSETSTOP
# ifdef W_STOPCODE
! #define WSETSTOP(w,sig) ((w) = W_STOPCODE(sig))
# else
#define WSETSTOP(w,sig) ((w) = (0177 | ((sig) << 8)))
# endif