Discussion:
[Bug python/18385] New: no way to get locations from a breakpoint
tromey at sourceware dot org
2015-05-06 22:35:33 UTC
Permalink
https://sourceware.org/bugzilla/show_bug.cgi?id=18385

Bug ID: 18385
Summary: no way to get locations from a breakpoint
Product: gdb
Version: unknown
Status: NEW
Severity: normal
Priority: P2
Component: python
Assignee: unassigned at sourceware dot org
Reporter: tromey at sourceware dot org
Target Milestone: ---

gdb.Breakpoint has a "location" attribute, but this just
holds the user's original linespec.
It would be handy to also get access to the list of actual
locations.
Right now maybe this can be worked around by calling
gdb.decode_linespec.
--
You are receiving this mail because:
You are on the CC list for the bug.
pmuldoon at redhat dot com
2018-04-30 12:43:56 UTC
Permalink
https://sourceware.org/bugzilla/show_bug.cgi?id=18385

Phil Muldoon <pmuldoon at redhat dot com> changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |pmuldoon at redhat dot com
Assignee|unassigned at sourceware dot org |pmuldoon at redhat dot com

--- Comment #1 from Phil Muldoon <pmuldoon at redhat dot com> ---
In what format would you like to see the list of locations? A tuple of
addresses? Or something closer to source line? (Or just something like a tuple
of SALs each breakpoint location points to?)
--
You are receiving this mail because:
You are on the CC list for the bug.
tromey at sourceware dot org
2018-04-30 16:31:58 UTC
Permalink
https://sourceware.org/bugzilla/show_bug.cgi?id=18385

--- Comment #2 from Tom Tromey <tromey at sourceware dot org> ---
My specific use case was to put markers in the debugger source
window indicating which lines had breakpoints. So, what I'd like
is what decode_lines provides -- one SAL for each location.
--
You are receiving this mail because:
You are on the CC list for the bug.
Continue reading on narkive:
Loading...