aboutsummaryrefslogtreecommitdiff
path: root/gdb/python/python.c
diff options
context:
space:
mode:
authorMarkus Metzger <markus.t.metzger@intel.com>2016-06-20 11:12:14 +0200
committerMarkus Metzger <markus.t.metzger@intel.com>2016-10-07 09:02:56 +0200
commit68dadef54c216f7ec75c27d74193897b18c5f9ab (patch)
treec4545c6f0d844e90507c78b58c6b05911c1c9467 /gdb/python/python.c
parent50e03d47b77d5730f96f6b6bb66187654e66c797 (diff)
downloadgdb-68dadef54c216f7ec75c27d74193897b18c5f9ab.zip
gdb-68dadef54c216f7ec75c27d74193897b18c5f9ab.tar.gz
gdb-68dadef54c216f7ec75c27d74193897b18c5f9ab.tar.bz2
python: accept address and explicit locations in gdb.decode_line
The gdb.decode_line python function is documented to support the same location expressions as the "break" command. It currently expects a linespec location. Instead of creating a linespec location directly, create the location via string_to_event_location_basic.
Diffstat (limited to 'gdb/python/python.c')
-rw-r--r--gdb/python/python.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/python/python.c b/gdb/python/python.c
index b00b70b..7e34d26 100644
--- a/gdb/python/python.c
+++ b/gdb/python/python.c
@@ -740,7 +740,7 @@ gdbpy_decode_line (PyObject *self, PyObject *args)
if (arg != NULL)
{
- location = new_linespec_location (&arg);
+ location = string_to_event_location_basic (&arg, python_language);
make_cleanup_delete_event_location (location);
}