aboutsummaryrefslogtreecommitdiff
path: root/gdb/guile/scm-breakpoint.c
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2021-10-02 16:49:54 -0600
committerTom Tromey <tom@tromey.com>2021-10-20 11:00:31 -0600
commita4c50be3d68b4f857fee29a45f799755a6862c22 (patch)
treeac80ecdb956bab3ac99030587aec154545f96ad1 /gdb/guile/scm-breakpoint.c
parent5c1146d2dec3d6f2ca56456f215084b910938b92 (diff)
downloadgdb-a4c50be3d68b4f857fee29a45f799755a6862c22.zip
gdb-a4c50be3d68b4f857fee29a45f799755a6862c22.tar.gz
gdb-a4c50be3d68b4f857fee29a45f799755a6862c22.tar.bz2
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.
Diffstat (limited to 'gdb/guile/scm-breakpoint.c')
-rw-r--r--gdb/guile/scm-breakpoint.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/guile/scm-breakpoint.c b/gdb/guile/scm-breakpoint.c
index 67484e4..f48671f 100644
--- a/gdb/guile/scm-breakpoint.c
+++ b/gdb/guile/scm-breakpoint.c
@@ -883,7 +883,7 @@ gdbscm_breakpoint_expression (SCM self)
wp = (struct watchpoint *) bp_smob->bp;
- const char *str = wp->exp_string;
+ const char *str = wp->exp_string.get ();
if (! str)
str = "";