public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [PATCH v2 0/4] Use checked_static_cast for breakpoint casts
@ 2023-09-18 14:25 Tom Tromey
  2023-09-18 14:25 ` [PATCH v2 1/4] Use gdb::checked_static_cast for watchpoints Tom Tromey
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Tom Tromey @ 2023-09-18 14:25 UTC (permalink / raw)
  To: gdb-patches; +Cc: Simon Marchi

While reviewing a patch, I noticed some unchecked casts to watchpoint.
This series replaces all the unchecked breakpoint casts I could find
with checked casts.

Regression tested on x86-64 Fedora 36.

---
Changes in v2:
- Removed redudant 'struct' keywords and lowered some definitions
- Link to v1: https://inbox.sourceware.org/gdb-patches/20230915-watchpoint-casts-v1-0-a4ff35c9644e@adacore.com

---
Tom Tromey (4):
      Use gdb::checked_static_cast for watchpoints
      Use gdb::checked_static_cast for tracepoints
      Use gdb::checked_static_cast for code_breakpoint
      Use gdb::checked_static_cast for catchpoints

 gdb/ada-lang.c             |   2 +-
 gdb/break-catch-sig.c      |  10 +-
 gdb/break-catch-syscall.c  |   4 +-
 gdb/breakpoint.c           | 339 +++++++++++++++++++++++----------------------
 gdb/elfread.c              |   2 +-
 gdb/guile/scm-breakpoint.c |   3 +-
 gdb/mi/mi-cmd-break.c      |   9 +-
 gdb/python/py-breakpoint.c |   3 +-
 gdb/remote.c               |  11 +-
 gdb/target-debug.h         |   2 +
 gdb/target-delegates.c     |  16 +--
 gdb/target.c               |   2 +-
 gdb/target.h               |   4 +-
 gdb/tracefile-tfile.c      |   4 +-
 gdb/tracepoint.c           |  25 ++--
 gdb/tracepoint.h           |   4 +-
 16 files changed, 224 insertions(+), 216 deletions(-)
---
base-commit: cf2ab5ef0b716dea512d85276c484fce758fa5d4
change-id: 20230915-watchpoint-casts-d43c55a7b13e

Best regards,
-- 
Tom Tromey <tromey@adacore.com>


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2023-09-19 14:00 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-09-18 14:25 [PATCH v2 0/4] Use checked_static_cast for breakpoint casts Tom Tromey
2023-09-18 14:25 ` [PATCH v2 1/4] Use gdb::checked_static_cast for watchpoints Tom Tromey
2023-09-18 14:25 ` [PATCH v2 2/4] Use gdb::checked_static_cast for tracepoints Tom Tromey
2023-09-18 14:25 ` [PATCH v2 3/4] Use gdb::checked_static_cast for code_breakpoint Tom Tromey
2023-09-18 14:25 ` [PATCH v2 4/4] Use gdb::checked_static_cast for catchpoints Tom Tromey
2023-09-19 14:00 ` [PATCH v2 0/4] Use checked_static_cast for breakpoint casts Simon Marchi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).