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/python | |
parent | 5c1146d2dec3d6f2ca56456f215084b910938b92 (diff) | |
download | gdb-a4c50be3d68b4f857fee29a45f799755a6862c22.zip gdb-a4c50be3d68b4f857fee29a45f799755a6862c22.tar.gz 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/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 edff032..7ec73af 100644 --- a/gdb/python/py-breakpoint.c +++ b/gdb/python/py-breakpoint.c @@ -433,7 +433,7 @@ bppy_get_expression (PyObject *self, void *closure) wp = (struct watchpoint *) obj->bp; - str = wp->exp_string; + str = wp->exp_string.get (); if (! str) str = ""; |