Use gdb::checked_static_cast for watchpoints
authorTom Tromey <tromey@adacore.com>
Fri, 15 Sep 2023 17:56:35 +0000 (11:56 -0600)
committerTom Tromey <tromey@adacore.com>
Tue, 19 Sep 2023 14:14:00 +0000 (08:14 -0600)
commitbcafd1c19e628d831cf3eb20229c42ad9db4b29c
treea58aa837bc4a621d4881054379da7ad2ce9df5a2
parent093da43d2adb4497dfec8afbb4eeaf2425668fdd
Use gdb::checked_static_cast for watchpoints

This replaces some casts to 'watchpoint *' with checked_static_cast.
In one spot, an unnecessary block is also removed.

Approved-By: Simon Marchi <simon.marchi@efficios.com>
gdb/breakpoint.c
gdb/guile/scm-breakpoint.c
gdb/python/py-breakpoint.c