Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 1 Aug 2006 05:30:29 GMT
From:      Marcel Moolenaar <marcel@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 102892 for review
Message-ID:  <200608010530.k715UTw0034970@repoman.freebsd.org>

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

Change 102892 by marcel@marcel_nfs on 2006/08/01 05:30:06

	Core/NG note types.

Affected files ...

.. //depot/projects/gdb/sys/sys/elf_common.h#4 edit

Differences ...

==== //depot/projects/gdb/sys/sys/elf_common.h#4 (text+ko) ====

@@ -325,11 +325,18 @@
 				   executable contains code using a static
 				   thread-local storage scheme. */
 
-/* Values for n_type.  Used in core files. */
+/* Values for n_type.  Used by 6.x and older core files. */
 #define NT_PRSTATUS	1	/* Process status. */
 #define NT_FPREGSET	2	/* Floating point registers. */
 #define NT_PRPSINFO	3	/* Process state info. */
 
+/* Note types used by Core/NG (7.x and up). */
+#define	_NT_CORE(x)	((ET_CORE << 16) | ((x) & 0xffff))
+#define	NT_CORE_PROC	_NT_CORE(0x0000)
+#define	NT_CORE_THREAD	_NT_CORE(0x0001)
+#define	NT_CORE_KERNEL	_NT_CORE(0x0100)
+#define	NT_CORE_CPU	_NT_CORE(0x0101)
+
 /* Symbol Binding - ELFNN_ST_BIND - st_info */
 #define STB_LOCAL	0	/* Local symbol */
 #define STB_GLOBAL	1	/* Global symbol */



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