This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[PATCH] lin-lwp.c: Revert inadvertent changes from phase 1 ptid_t patch
- To: gdb-patches at sources dot redhat dot com
- Subject: [PATCH] lin-lwp.c: Revert inadvertent changes from phase 1 ptid_t patch
- From: Kevin Buettner <kevinb at cygnus dot com>
- Date: Wed, 9 May 2001 18:45:30 -0700
I've just applied the patch below which reverts a couple of small
changes that shouldn't have gone in via the 2001-05-03 ptid_t patch.
After I apply phase 3 of the ptid_t changes, I'll restore the format
string change in lin_lwp_pid_to_str(), and make a similar format string
change in lin_lwp_wait() and detach_callback().
* lin-lwp.c (lin_lwp_pid_to_str): Revert inadvertent format
string change in 2001-05-03 changes.
(lin_lwp_wait): Revert GET_LWP coercion introduced in 2001-05-03
changes.
Index: lin-lwp.c
===================================================================
RCS file: /cvs/src/src/gdb/lin-lwp.c,v
retrieving revision 1.17
diff -u -p -r1.17 lin-lwp.c
--- lin-lwp.c 2001/05/10 01:07:39 1.17
+++ lin-lwp.c 2001/05/10 01:28:38
@@ -685,7 +685,7 @@ lin_lwp_wait (ptid_t ptid, struct target
if (debug_lin_lwp)
fprintf_unfiltered (gdb_stdlog,
"Using pending wait status for LWP %d.\n",
- (int) GET_LWP (lp->ptid));
+ GET_LWP (lp->ptid));
status = lp->status;
lp->status = 0;
@@ -1032,7 +1032,7 @@ lin_lwp_pid_to_str (ptid_t ptid)
if (is_lwp (ptid))
{
- snprintf (buf, sizeof (buf), "LWP %ld", GET_LWP (ptid));
+ snprintf (buf, sizeof (buf), "LWP %d", GET_LWP (ptid));
return buf;
}