kdb
[Top] [All Lists]

kdb ps patch

To: kdb@xxxxxxxxxxx
Subject: kdb ps patch
From: linas@xxxxxxxxxxxxxx
Date: Thu, 17 Jul 2003 16:18:05 -0500
Sender: kdb-bounce@xxxxxxxxxxx
User-agent: Mutt/1.2.5.1i
Hi,

If this mailing list is active, could someone let mw know ...
Anyway, here's a patch, it allows running tasks to be listed
on 64-but machines.

If you know of a better place to send patches, let me know ...

--linas

Index: kdbsupport.c
===================================================================
RCS file: /home/linas/cvsroot/linux24/kdb/Attic/kdbsupport.c,v
retrieving revision 1.1.2.1
diff -u -r1.1.2.1 kdbsupport.c
--- kdbsupport.c        15 Jul 2003 18:43:51 -0000      1.1.2.1
+++ kdbsupport.c        17 Jul 2003 19:03:30 -0000
@@ -672,9 +672,9 @@
  *     none.
  */
  
-#define UNRUNNABLE     (1 << (8*sizeof(unsigned long) - 1))    /* unrunnable 
is < 0 */
-#define RUNNING                (1 << (8*sizeof(unsigned long) - 2))
-#define TRACED         (1 << (8*sizeof(unsigned long) - 3))
+#define UNRUNNABLE     (1UL << (8*sizeof(unsigned long) - 1))  /* unrunnable 
is < 0 */
+#define RUNNING                (1UL << (8*sizeof(unsigned long) - 2))
+#define TRACED         (1UL << (8*sizeof(unsigned long) - 3))
  
 unsigned long
 kdb_task_state_string(int argc, const char **argv, const char **envp)


<Prev in Thread] Current Thread [Next in Thread>