[PATCHv2 1/9] gdb: unify parts of the Linux and FreeBSD core dumping code

Strasuns, Mihails mihails.strasuns@intel.com
Fri Jan 22 12:01:42 GMT 2021


> -----Original Message-----
> From: Gdb-patches <gdb-patches-bounces@sourceware.org> On Behalf Of
> Andrew Burgess
> Sent: Wednesday, January 20, 2021 9:23 PM
> To: gdb-patches@sourceware.org; binutils@sourceware.org
> Cc: Fredrik Hederstierna <fredrik@hederstierna.com>
> Subject: [PATCHv2 1/9] gdb: unify parts of the Linux and FreeBSD core
> dumping code
> 
> While reviewing the Linux and FreeBSD core dumping code within GDB for
> another patch series, I noticed that the code that collects the registers for
> each thread and writes these into ELF note format is basically identical
> between Linux and FreeBSD.

Thank you, this is very useful. I was recently looking into adding a core file support for a new arch and ended up copying most of this exact code.

Mihails
Intel Deutschland GmbH
Registered Address: Am Campeon 10-12, 85579 Neubiberg, Germany
Tel: +49 89 99 8853-0, www.intel.de
Managing Directors: Christin Eisenschmid, Gary Kershaw
Chairperson of the Supervisory Board: Nicole Lau
Registered Office: Munich
Commercial Register: Amtsgericht Muenchen HRB 186928



More information about the Binutils mailing list