[0/4] Fix BZ 25631 - core file memory access problem

Message ID 20200305004243.334607-1-kevinb@redhat.com
Headers show
Series
  • Fix BZ 25631 - core file memory access problem
Related show

Message

Kevin Buettner March 5, 2020, 12:42 a.m.
This series fixes a bug with accessing memory from (described by) core
files.

The bug can be viewed here...

    https://sourceware.org/bugzilla/show_bug.cgi?id=25631

...though I also provide similar details in part 3 of this series.

Kevin Buettner (4):
  Remove hack for GDB which sets the section size to 0
  Add function for partitioning/splitting a section table
  Provide access to non SEC_HAS_CONTENTS core file sections
  Test ability to access unwritten-to mmap data in core file

 bfd/elf.c                           |  8 ---
 gdb/corelow.c                       | 80 ++++++++++++++++++++++++++---
 gdb/exec.c                          | 55 ++++++++++++++++++++
 gdb/exec.h                          | 13 +++++
 gdb/testsuite/gdb.base/corefile.exp |  6 +++
 gdb/testsuite/gdb.base/coremaker.c  | 10 ++++
 6 files changed, 157 insertions(+), 15 deletions(-)

-- 
2.24.1

Comments

Jose E. Marchesi via Gdb-patches March 18, 2020, 4:29 p.m. | #1
Ping.

On Wed,  4 Mar 2020 17:42:39 -0700
Kevin Buettner <kevinb@redhat.com> wrote:

> This series fixes a bug with accessing memory from (described by) core

> files.

> 

> The bug can be viewed here...

> 

>     https://sourceware.org/bugzilla/show_bug.cgi?id=25631

> 

> ...though I also provide similar details in part 3 of this series.

> 

> Kevin Buettner (4):

>   Remove hack for GDB which sets the section size to 0

>   Add function for partitioning/splitting a section table

>   Provide access to non SEC_HAS_CONTENTS core file sections

>   Test ability to access unwritten-to mmap data in core file

> 

>  bfd/elf.c                           |  8 ---

>  gdb/corelow.c                       | 80 ++++++++++++++++++++++++++---

>  gdb/exec.c                          | 55 ++++++++++++++++++++

>  gdb/exec.h                          | 13 +++++

>  gdb/testsuite/gdb.base/corefile.exp |  6 +++

>  gdb/testsuite/gdb.base/coremaker.c  | 10 ++++

>  6 files changed, 157 insertions(+), 15 deletions(-)

> 

> -- 

> 2.24.1

>