[gdb-12-branch,0/6] Backport fixes for PR 28275 to gdb-12-branch

Message ID 20221128184042.3781569-1-simon.marchi@efficios.com
Headers
Series Backport fixes for PR 28275 to gdb-12-branch |

Message

Simon Marchi Nov. 28, 2022, 6:40 p.m. UTC
  Even though no GDB 12.2 release is planned for the moment, I thought I
would backport the fixes for PR 28275 to the GDB 12 branch.  This can
help anybody building from the branch, or distro packages who would like
to apply the patches themselves.

Also, the reason for not planning a GDB 12.2 release was that there
wasn't much stuff on the branch, so it's kind of a chicken and egg
problem :).

Andrew Burgess (2):
  gdb/testsuite: refactor gdb.threads/detach-step-over.exp
  gdb: fix assert when quitting GDB while a thread is stepping

Simon Marchi (3):
  gdb/testsuite: remove global declarations in
    gdb.threads/detach-step-over.exp
  gdbserver: switch to right process in find_one_thread
  gdb: disable commit resumed in target_kill

Tiezhu Yang (1):
  gdb: testsuite: add new gdb_attach to check "attach" command

 gdb/target.c                                  |  14 +
 .../gdb.base/run-control-while-bg-execution.c |  33 ++
 .../run-control-while-bg-execution.exp        | 122 +++++++
 .../gdb.multi/attach-while-running.c          |  26 ++
 .../gdb.multi/attach-while-running.exp        |  73 ++++
 .../gdb.threads/detach-step-over.exp          | 322 +++++++++++-------
 gdb/testsuite/lib/gdb.exp                     |  26 ++
 gdbserver/thread-db.cc                        |  29 +-
 8 files changed, 514 insertions(+), 131 deletions(-)
 create mode 100644 gdb/testsuite/gdb.base/run-control-while-bg-execution.c
 create mode 100644 gdb/testsuite/gdb.base/run-control-while-bg-execution.exp
 create mode 100644 gdb/testsuite/gdb.multi/attach-while-running.c
 create mode 100644 gdb/testsuite/gdb.multi/attach-while-running.exp


base-commit: 64849597cdb1bf17d3cc25e089ac17bd80bcee52
  

Comments

Tom Tromey Nov. 30, 2022, 4:20 p.m. UTC | #1
>>>>> "Simon" == Simon Marchi via Gdb-patches <gdb-patches@sourceware.org> writes:

Simon> Even though no GDB 12.2 release is planned for the moment, I thought I
Simon> would backport the fixes for PR 28275 to the GDB 12 branch.  This can
Simon> help anybody building from the branch, or distro packages who would like
Simon> to apply the patches themselves.

Simon> Also, the reason for not planning a GDB 12.2 release was that there
Simon> wasn't much stuff on the branch, so it's kind of a chicken and egg
Simon> problem :).

I didn't read through the patches, but the idea seems fine to me.

Tom
  
Simon Marchi Dec. 1, 2022, 3:07 p.m. UTC | #2
On 11/30/22 11:20, Tom Tromey wrote:
>>>>>> "Simon" == Simon Marchi via Gdb-patches <gdb-patches@sourceware.org> writes:
> 
> Simon> Even though no GDB 12.2 release is planned for the moment, I thought I
> Simon> would backport the fixes for PR 28275 to the GDB 12 branch.  This can
> Simon> help anybody building from the branch, or distro packages who would like
> Simon> to apply the patches themselves.
> 
> Simon> Also, the reason for not planning a GDB 12.2 release was that there
> Simon> wasn't much stuff on the branch, so it's kind of a chicken and egg
> Simon> problem :).
> 
> I didn't read through the patches, but the idea seems fine to me.
> 
> Tom

Ok thanks, pushed it.

Simon