Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 13 Jun 2004 19:16:46 GMT
From:      Marcel Moolenaar <marcel@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 54841 for review
Message-ID:  <200406131916.i5DJGk7s029991@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=54841

Change 54841 by marcel@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);
 }



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200406131916.i5DJGk7s029991>