diff options
author | Tom Tromey <tom@tromey.com> | 2021-10-02 16:49:54 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2021-10-20 11:00:31 -0600 |
commit | a4c50be3d68b4f857fee29a45f799755a6862c22 (patch) | |
tree | ac80ecdb956bab3ac99030587aec154545f96ad1 /gdb/guile | |
parent | 5c1146d2dec3d6f2ca56456f215084b910938b92 (diff) | |
download | fsf-binutils-gdb-a4c50be3d68b4f857fee29a45f799755a6862c22.zip fsf-binutils-gdb-a4c50be3d68b4f857fee29a45f799755a6862c22.tar.gz fsf-binutils-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')
-rw-r--r-- | gdb/guile/scm-breakpoint.c | 2 |
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 = ""; |