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/python | |
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/python')
-rw-r--r-- | gdb/python/py-breakpoint.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/python/py-breakpoint.c b/gdb/python/py-breakpoint.c index 7ec73af..d99d9b1 100644 --- a/gdb/python/py-breakpoint.c +++ b/gdb/python/py-breakpoint.c @@ -449,7 +449,7 @@ bppy_get_condition (PyObject *self, void *closure) BPPY_REQUIRE_VALID (obj); - str = obj->bp->cond_string; + str = obj->bp->cond_string.get (); if (! str) Py_RETURN_NONE; |