PERFORCE change 54841 for review
Marcel Moolenaar
marcel at FreeBSD.org
Sun Jun 13 19:17:20 GMT 2004
http://perforce.freebsd.org/chv.cgi?CH=54841
Change 54841 by marcel at marcel_nfs on 2004/06/13 19:16:05
Also save the thread ID of the thread doing the dump.
Affected files ...
.. //depot/projects/gdb/sys/kern/kern_shutdown.c#7 edit
Differences ...
==== //depot/projects/gdb/sys/kern/kern_shutdown.c#7 (text+ko) ====
@@ -123,7 +123,10 @@
int dumping; /* system is dumping */
static struct dumperinfo dumper; /* our selected dumper */
-static struct pcb dumppcb; /* "You Are Here" sign for dump-debuggers */
+
+/* Context information for dump-debuggers. */
+static struct pcb dumppcb; /* Registers. */
+static int dumptid; /* Thread ID. */
static void boot(int) __dead2;
static void poweroff_wait(void *, int);
@@ -229,6 +232,7 @@
{
savectx(&dumppcb);
+ dumptid = curthread->td_tid;
dumping++;
dumpsys(&dumper);
}
More information about the p4-projects
mailing list