[0/2] Prevent combining 'task' and 'thread' keywords

Message ID cover.1675869267.git.aburgess@redhat.com
Headers
Series Prevent combining 'task' and 'thread' keywords |

Message

Andrew Burgess Feb. 8, 2023, 3:16 p.m. UTC
  Inspired by a recent conversation about the expected behaviour of the
'thread' and 'task' keywords when combined together, this series
prohibits such combinations.  And then does a related code cleanup.

---

Andrew Burgess (2):
  gdb: only allow one of thread or task on breakpoints or watchpoints
  gdb: use -1 for breakpoint::task default value

 gdb/NEWS                        |  6 +++
 gdb/breakpoint.c                | 56 ++++++++++++++++------
 gdb/breakpoint.h                | 14 +++++-
 gdb/guile/scm-breakpoint.c      | 14 +++++-
 gdb/python/py-breakpoint.c      | 18 ++++++-
 gdb/testsuite/gdb.ada/tasks.exp | 85 +++++++++++++++++++++++++++++++--
 6 files changed, 169 insertions(+), 24 deletions(-)


base-commit: 1947a4a4bb7651a4656edceb1f9b246f96f89ebd