public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [PATCH V2 0/4] Add support for "legacy" linespecs
@ 2016-02-01 22:10 Keith Seitz
  2016-02-01 22:10 ` [PATCH V2 1/4] Refactor string_to_event_location for legacy linespec support Keith Seitz
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Keith Seitz @ 2016-02-01 22:10 UTC (permalink / raw)
  To: gdb-patches

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(-)

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2016-02-07 12:28 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-02-01 22:10 [PATCH V2 0/4] Add support for "legacy" linespecs Keith Seitz
2016-02-01 22:10 ` [PATCH V2 1/4] Refactor string_to_event_location for legacy linespec support Keith Seitz
2016-02-01 22:10 ` [PATCH V2 4/4] Enable/update legacy linespecs in MI Keith Seitz
2016-02-01 22:10 ` [PATCH V2 2/4] python/19506 -- gdb.Breakpoint address location regression Keith Seitz
2016-02-01 22:10 ` [PATCH V2 3/4] Use string_to_event_location_basic in guile Keith Seitz
2016-02-07 12:28 ` [PATCH V2 0/4] Add support for "legacy" linespecs Joel Brobecker

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).