aboutsummaryrefslogtreecommitdiff
path: root/gdb/guile
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2021-10-02 17:17:27 -0600
committerTom Tromey <tom@tromey.com>2021-10-20 11:00:32 -0600
commit6f781ee30062c822cf6475cfa070c6e7cf770de4 (patch)
tree28f1176383c7f7ce9cf05ab7f7f34b93170e548f /gdb/guile
parent23d6ee640578968b0ddef8e08d7dbb5b558a9ce9 (diff)
downloadgdb-6f781ee30062c822cf6475cfa070c6e7cf770de4.zip
gdb-6f781ee30062c822cf6475cfa070c6e7cf770de4.tar.gz
gdb-6f781ee30062c822cf6475cfa070c6e7cf770de4.tar.bz2
Use unique_xmalloc_ptr in breakpoint
This changes struct breakpoint to use unique_xmalloc_ptr in a couple of spots, removing a bit of manual memory management.
Diffstat (limited to 'gdb/guile')
-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 f48671f..ab1ddb1 100644
--- a/gdb/guile/scm-breakpoint.c
+++ b/gdb/guile/scm-breakpoint.c
@@ -899,7 +899,7 @@ gdbscm_breakpoint_condition (SCM self)
= bpscm_get_valid_breakpoint_smob_arg_unsafe (self, SCM_ARG1, FUNC_NAME);
char *str;
- str = bp_smob->bp->cond_string;
+ str = bp_smob->bp->cond_string.get ();
if (! str)
return SCM_BOOL_F;