[v2,0/2] Make linux checkpoints work with multiple inferiors

Message ID 20240414032731.130266-1-kevinb@redhat.com
Headers
Series Make linux checkpoints work with multiple inferiors |

Message

Kevin Buettner April 14, 2024, 3:24 a.m. UTC
  This series fixes some problems with the current checkpoint code.  The
first patch makes the checkpoint code inferior aware, fixing a number
of bugs.  The second patch fixes a nit with the way that checkpoints
are sometimes printed.

This v2 series incorporates Pedro's suggestions regarding the
numbering of checkpoint ids.  See the first patch for details.  The
tests have been revised to account for these changes and new tests
have been added as well.

Kevin Buettner (2):
  Make linux checkpoints work with multiple inferiors
  Make thread_db_target::pid_to_str checkpoint-aware

 gdb/linux-fork.c                             | 517 +++++++++-----
 gdb/linux-fork.h                             |  15 +-
 gdb/linux-nat.c                              |  20 +-
 gdb/linux-thread-db.c                        |   4 +-
 gdb/testsuite/gdb.base/checkpoint.exp        |  26 +-
 gdb/testsuite/gdb.multi/checkpoint-multi.exp | 687 +++++++++++++++++++
 6 files changed, 1082 insertions(+), 187 deletions(-)
 create mode 100644 gdb/testsuite/gdb.multi/checkpoint-multi.exp