This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH V2 0/4] Add support for "legacy" linespecs
- From: Keith Seitz <keiths at redhat dot com>
- To: gdb-patches at sourceware dot org
- Date: Mon, 01 Feb 2016 14:10:01 -0800
- Subject: [PATCH V2 0/4] Add support for "legacy" linespecs
- Authentication-results: sourceware.org; auth=none
When I committed the locations API patchset, I ignored the need for
"legacy" support. Specifically, MI, python, and guile all require the
ability to convert an old-style linespec (which can be a linespec, address,
or probe location) into an event_location.
Python and guile code assumes everything is a linespec location, so neither
probe nor address locations are available to them.
MI uses string_to_event_location, but that allows CLI-style explicit
locations. MI already supports MI-style explicit locations.
This patchset is an attempt to address this by adding a new locations API
function, string_to_event_location_basic, which implements a generic
string-to-struct event_location routine which converts these (so-called)
"legacy" linespecs.
---
Keith Seitz (4):
Refactor string_to_event_location for legacy linespec support.
python/19506 -- gdb.Breakpoint address location regression
Use string_to_event_location_basic in guile.
Enable/update legacy linespecs in MI.
gdb/guile/scm-breakpoint.c | 4 +
gdb/location.c | 87 ++++++++++++++++------------
gdb/location.h | 14 ++++-
gdb/mi/mi-cmd-break.c | 2 -
gdb/python/py-breakpoint.c | 6 +-
gdb/testsuite/gdb.guile/scm-breakpoint.exp | 13 ++++
gdb/testsuite/gdb.python/py-breakpoint.exp | 33 +++++++++++
7 files changed, 117 insertions(+), 42 deletions(-)