Use unique_xmalloc_ptr in watchpoint
authorTom Tromey <tom@tromey.com>
Sat, 2 Oct 2021 22:49:54 +0000 (16:49 -0600)
committerTom Tromey <tom@tromey.com>
Wed, 20 Oct 2021 17:00:31 +0000 (11:00 -0600)
commita4c50be3d68b4f857fee29a45f799755a6862c22
treeac80ecdb956bab3ac99030587aec154545f96ad1
parent5c1146d2dec3d6f2ca56456f215084b910938b92
Use unique_xmalloc_ptr in watchpoint

This changes struct watchpoint to use unique_xmalloc_ptr in a couple
of places, removing a bit of manual memory management.
gdb/breakpoint.c
gdb/breakpoint.h
gdb/guile/scm-breakpoint.c
gdb/python/py-breakpoint.c