[PATCH 0/5] Separating NT_FILE related utilities

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


Ping.

> -----Original Message-----
> From: Mihails Strasuns <mihails.strasuns@intel.com>
> Sent: Sunday, January 3, 2021 2:03 PM
> To: gdb-patches@sourceware.org
> Cc: Strasuns, Mihails <mihails.strasuns@intel.com>
> Subject: [PATCH 0/5] Separating NT_FILE related utilities
> 
> An updated version suitable for review - now also includes iteration
> counterpart and a selftest.
> 
> I have recently found myself in need to reuse some functionality related to
> NT_FILE handling in linux-tdep.c when enhancing a different arch (I want to
> reuse the same format), but couldn't find a good place to add it to - libbfd is
> still plain C and can't operate on GDB specific entities and in GDB own sources
> there does not seem to be any existing module. So I am adding a new
> translation unit in these series and updating linux-tdep.c to use new utils
> instead.
> 
> Mihails Strasuns (5):
>   bfd: add elfcore_write_file_note
>   gdb: split file note handling into a separate module
>   gdb: refactor file_mappings_builder to use byte_vector
>   gdb: move file note iteration to elfnote-file.h/c
>   gdb: add a selftest for elfnote-file.c
> 
>  bfd/elf-bfd.h                |   2 +
>  bfd/elf.c                    |   8 ++
>  gdb/Makefile.in              |   2 +
>  gdb/elfnote-file.c           | 156 +++++++++++++++++++++++++++++++++++
>  gdb/elfnote-file.h           |  71 ++++++++++++++++
>  gdb/linux-tdep.c             | 155 ++++++----------------------------
>  gdb/unittests/elfnote-file.c |  98 ++++++++++++++++++++++
>  7 files changed, 360 insertions(+), 132 deletions(-)  create mode 100644
> gdb/elfnote-file.c  create mode 100644 gdb/elfnote-file.h  create mode
> 100644 gdb/unittests/elfnote-file.c
> 
> --
> 2.17.1

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 Gdb-patches mailing list