public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [PATCH 0/5] Handle FreeBSD's NT_X86_SEGBASES core dump note
@ 2022-03-24 20:56 John Baldwin
  2022-03-24 20:56 ` [PATCH 1/5] elfcore_grok_freebsd_note: Remove checks of note->namesz John Baldwin
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: John Baldwin @ 2022-03-24 20:56 UTC (permalink / raw)
  To: binutils, gdb-patches

This core dump note contains the value of the %fsbase and %gsbase
registers (or on i386 the base address of the respective segments).
This is used to resolve the address of TLS variables in core dumps.

John Baldwin (5):
  elfcore_grok_freebsd_note: Remove checks of note->namesz.
  Recognize FreeBSD core dump note for x86 segment base registers.
  Use pseudosections for NT_FREEBSD_X86_SEGBASES core dump notes.
  FreeBSD/x86: Read segment base registers from NT_X86_SEGBASES.
  Use I386_GSBASE_REGNUM in i386fbsd_get_thread_local_address.

 bfd/ChangeLog         | 13 +++++++++++++
 bfd/elf-bfd.h         |  2 ++
 bfd/elf.c             | 24 ++++++++++++++++--------
 binutils/ChangeLog    |  5 +++++
 binutils/readelf.c    |  2 ++
 gdb/amd64-fbsd-tdep.c | 18 ++++++++++++++++++
 gdb/i386-fbsd-tdep.c  | 25 ++++++++++++++++++++-----
 include/ChangeLog     |  4 ++++
 include/elf/common.h  |  1 +
 9 files changed, 81 insertions(+), 13 deletions(-)

-- 
2.34.1


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2022-03-24 20:56 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-24 20:56 [PATCH 0/5] Handle FreeBSD's NT_X86_SEGBASES core dump note John Baldwin
2022-03-24 20:56 ` [PATCH 1/5] elfcore_grok_freebsd_note: Remove checks of note->namesz John Baldwin
2022-03-24 20:56 ` [PATCH 2/5] Recognize FreeBSD core dump note for x86 segment base registers John Baldwin
2022-03-24 20:56 ` [PATCH 3/5] Use pseudosections for NT_FREEBSD_X86_SEGBASES core dump notes John Baldwin
2022-03-24 20:56 ` [PATCH 4/5] FreeBSD/x86: Read segment base registers from NT_X86_SEGBASES John Baldwin
2022-03-24 20:56 ` [PATCH 5/5] Use I386_GSBASE_REGNUM in i386fbsd_get_thread_local_address John Baldwin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).