python: accept address and explicit locations in gdb.decode_line
authorMarkus Metzger <markus.t.metzger@intel.com>
Mon, 20 Jun 2016 09:12:14 +0000 (11:12 +0200)
committerMarkus Metzger <markus.t.metzger@intel.com>
Fri, 7 Oct 2016 07:02:56 +0000 (09:02 +0200)
commit68dadef54c216f7ec75c27d74193897b18c5f9ab
treec4545c6f0d844e90507c78b58c6b05911c1c9467
parent50e03d47b77d5730f96f6b6bb66187654e66c797
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.
gdb/ChangeLog
gdb/python/python.c
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.python/python.exp