diff options
author | Pedro Alves <pedro@palves.net> | 2022-05-27 16:44:02 +0100 |
---|---|---|
committer | Pedro Alves <pedro@palves.net> | 2022-06-17 09:58:49 +0100 |
commit | 709438c75abc52cdc4888e7eaa089c2709c75a07 (patch) | |
tree | 4b114d8c51d0cbc47c4e3a8a52e9aecc848171ce /gdb/python | |
parent | 7464aeaab47ca3fb7127223fe372489c9c7ed69e (diff) | |
download | binutils-709438c75abc52cdc4888e7eaa089c2709c75a07.zip binutils-709438c75abc52cdc4888e7eaa089c2709c75a07.tar.gz binutils-709438c75abc52cdc4888e7eaa089c2709c75a07.tar.bz2 |
Convert location_spec_to_string to a method
This converts location_spec_to_string to a method of location_spec,
simplifying the code using it, as it no longer has to use
std::unique_ptr::get().
Change-Id: I621bdad8ea084470a2724163f614578caf8f2dd5
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 bab1c60..2b9f6f3 100644 --- a/gdb/python/py-breakpoint.c +++ b/gdb/python/py-breakpoint.c @@ -412,7 +412,7 @@ bppy_get_location (PyObject *self, void *closure) && obj->bp->type != bp_hardware_breakpoint) Py_RETURN_NONE; - const char *str = location_spec_to_string (obj->bp->locspec.get ()); + const char *str = obj->bp->locspec->to_string (); if (str == nullptr) str = ""; return host_string_to_python_string (str).release (); |