[0/2] Fix detach with target remote (PR gdb/28080)

Message ID 20210712193311.837489-1-pedro@palves.net
Headers show
Series
  • Fix detach with target remote (PR gdb/28080)
Related show

Message

Pedro Alves July 12, 2021, 7:33 p.m.
This series fixes PR gdb/28080 - "detach causes core dump", a
regression compared to GDB 10.

The first patch fixes the regression, and then the second patch makes
sure we don't abort in other similar situations.

This is aimed at both master and the gdb 11 branch.

Pedro Alves (2):
  Fix detach with target remote (PR gdb/28080)
  Avoid letting exceptions escape gdb_bfd_iovec_fileio_close (PR
    gdb/28080)

 gdb/gdb_bfd.c                                 | 10 +++-
 gdb/remote.c                                  |  9 ++++
 gdb/target.c                                  |  8 +--
 gdb/target.h                                  |  6 +++
 .../gdb.base/detach-sysroot-target.c          | 22 ++++++++
 .../gdb.base/detach-sysroot-target.exp        | 53 +++++++++++++++++++
 6 files changed, 101 insertions(+), 7 deletions(-)
 create mode 100644 gdb/testsuite/gdb.base/detach-sysroot-target.c
 create mode 100644 gdb/testsuite/gdb.base/detach-sysroot-target.exp


base-commit: 6bbe1a929c69e141e63265c7013fcf7f80bc792e
-- 
2.26.2

Comments

Jonah Graham July 12, 2021, 10:24 p.m. | #1
On Mon, 12 Jul 2021 at 15:33, Pedro Alves <pedro@palves.net> wrote:

> This series fixes PR gdb/28080 - "detach causes core dump", a

> regression compared to GDB 10.

>

>

>

Thanks Pedro, this series fixes the issue I encountered and the Eclipse CDT
test suite now passes.

Jonah

~~~
Jonah Graham
Kichwa Coders
www.kichwacoders.com