]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Recognize capreg note and add a psuedo-section for GDB to find.
authorJohn Baldwin <jhb@FreeBSD.org>
Wed, 1 Mar 2017 23:54:27 +0000 (15:54 -0800)
committerJohn Baldwin <jhb@FreeBSD.org>
Thu, 1 Sep 2022 23:43:06 +0000 (16:43 -0700)
bfd/elf.c
include/elf/common.h

index a6e251e12fdfc00703a63020da51ef1fe4bf7af1..500876f5977dbc4c13df1368c15c0de809bb0785 100644 (file)
--- a/bfd/elf.c
+++ b/bfd/elf.c
@@ -11044,6 +11044,9 @@ elfcore_grok_freebsd_note (bfd *abfd, Elf_Internal_Note *note)
     case NT_FREEBSD_X86_SEGBASES:
       return elfcore_make_note_pseudosection (abfd, ".reg-x86-segbases", note);
 
+    case NT_FREEBSD_CAPREGS:
+      return elfcore_make_note_pseudosection (abfd, ".reg-cap", note);
+
     case NT_X86_XSTATE:
       return elfcore_grok_xstatereg (abfd, note);
 
index bb449409257ec42d4fe078b538aa61de10bc5bbf..276ca933a42858fd7a34ab0720f44193a5d14cb5 100644 (file)
 #define        NT_FREEBSD_PROCSTAT_PSSTRINGS   15      /* Procstat ps_strings data. */
 #define        NT_FREEBSD_PROCSTAT_AUXV        16      /* Procstat auxv data. */
 #define        NT_FREEBSD_PTLWPINFO    17      /* Thread ptrace miscellaneous info. */
+#define        NT_FREEBSD_CAPREGS      20      /* Capability registers. */
 #define        NT_FREEBSD_X86_SEGBASES 0x200   /* x86 segment base registers */
 
 /* Note segments for core files on NetBSD systems.  Note name