diff options
| author | John Baldwin <jhb@FreeBSD.org> | 2016-07-15 01:10:15 +0000 |
|---|---|---|
| committer | John Baldwin <jhb@FreeBSD.org> | 2016-07-15 01:10:15 +0000 |
| commit | 2fab2693cf8c910c01866048213a7a4def3f7b7a (patch) | |
| tree | 5c731adeded9fc905dd8d25738950fcce182c23f /devel/gdb/files/commit-3350c5f | |
| parent | Upgrade third-party brotli module from 4f08382 to ada972b. (diff) | |
Import several patches recently merged upstream.
- Fix fork following to honor 'detach-on-fork'
- Fix vfork following to post a fake vfork_done event to fix breakpoints
in vfork parents (a real vfork_done event is pending but requires kernel
changes currently in review).
- Fix x86 debug registers to work with multiple threads (PR 157755)
- Add support for 'info auxv' on both live processes and cores.
- Add support for 'catch syscall'. Note that catching system calls by
names requires parsing an XML file mapping system call names to
numbers. The port now installs the XML syscall files to the data
directory. In addition, the EXPAT option is now enabled by default as
expat is used to parse the XML files.
- Bump PORTREVISION.
PR: 157755, 210874
Approved by: luca.pizzamiglio@gmail.com (maintainer), bdrewery
Diffstat (limited to 'devel/gdb/files/commit-3350c5f')
| -rw-r--r-- | devel/gdb/files/commit-3350c5f | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/devel/gdb/files/commit-3350c5f b/devel/gdb/files/commit-3350c5f new file mode 100644 index 000000000000..2e3526305c4b --- /dev/null +++ b/devel/gdb/files/commit-3350c5f @@ -0,0 +1,39 @@ +commit 3350c5f5de3d2e62dd9de2a76cf2d5d8728d2600 +Author: John Baldwin <jhb@FreeBSD.org> +Date: Sun Jun 12 12:34:51 2016 -0700 + + Create a pseudo section for the ELF AUXV core dump note on FreeBSD. + + The procstat AUXV core dump note in FreeBSD consists of 32-bit integer + followed by an array of auxiliary vector entries. + + bfd/ChangeLog: + + * elf.c (elfcore_grok_freebsd_note): Handle NT_FREEBSD_PROCSTAT_AUXV + notes. + +diff --git bfd/elf.c bfd/elf.c +index cfcafaa..cb4de50 100644 +--- bfd/elf.c ++++ bfd/elf.c +@@ -9663,6 +9663,20 @@ elfcore_grok_freebsd_note (bfd *abfd, Elf_Internal_Note *note) + else + return TRUE; + ++ case NT_FREEBSD_PROCSTAT_AUXV: ++ { ++ asection *sect = bfd_make_section_anyway_with_flags (abfd, ".auxv", ++ SEC_HAS_CONTENTS); ++ ++ if (sect == NULL) ++ return FALSE; ++ sect->size = note->descsz - 4; ++ sect->filepos = note->descpos + 4; ++ sect->alignment_power = 1 + bfd_get_arch_size (abfd) / 32; ++ ++ return TRUE; ++ } ++ + case NT_X86_XSTATE: + if (note->namesz == 8) + return elfcore_grok_xstatereg (abfd, note); |
