aboutsummaryrefslogtreecommitdiff
path: root/gdb/python
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/python
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/python')
-rw-r--r--gdb/python/py-breakpoint.c2
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;