aboutsummaryrefslogtreecommitdiff
path: root/include/elf-common.h
diff options
context:
space:
mode:
authorFred Fish <fnf@specifix.com>1991-11-12 03:06:05 +0000
committerFred Fish <fnf@specifix.com>1991-11-12 03:06:05 +0000
commitd6fee2389787a709737b22c628a1d15db01d76f8 (patch)
tree10344802ff1098713f2841e6fda6e133ff1b2765 /include/elf-common.h
parent1c9e4b1512b328f36891df48123dccb95fbfd23d (diff)
downloadgdb-d6fee2389787a709737b22c628a1d15db01d76f8.zip
gdb-d6fee2389787a709737b22c628a1d15db01d76f8.tar.gz
gdb-d6fee2389787a709737b22c628a1d15db01d76f8.tar.bz2
Add support for ELF note sections, which are used in ELF core files to
hold copies of various /proc structures at the time of the core dump.
Diffstat (limited to 'include/elf-common.h')
-rwxr-xr-xinclude/elf-common.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/elf-common.h b/include/elf-common.h
index 4544deb..a2cb398 100755
--- a/include/elf-common.h
+++ b/include/elf-common.h
@@ -126,3 +126,9 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
#define SHF_ALLOC (1 << 1) /* Occupies memory during execution */
#define SHF_EXECINSTR (1 << 2) /* Executable machine instructions */
#define SHF_MASKPROC 0xF0000000 /* Processor-specific semantics */
+
+/* Values of note segment descriptor types for core files. */
+
+#define NT_PRSTATUS 1 /* Contains copy of prstatus struct */
+#define NT_FPREGSET 2 /* Contains copy of fpregset struct */
+#define NT_PRPSINFO 3 /* Contains copy of prpsinfo struct */