diff options
author | Tom Tromey <tom@tromey.com> | 2021-10-02 17:17:27 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2021-10-20 11:00:32 -0600 |
commit | 6f781ee30062c822cf6475cfa070c6e7cf770de4 (patch) | |
tree | 28f1176383c7f7ce9cf05ab7f7f34b93170e548f /gdb/guile | |
parent | 23d6ee640578968b0ddef8e08d7dbb5b558a9ce9 (diff) | |
download | gdb-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.c | 2 |
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; |