[4/9] associate bpstat with location
Vladimir Prus
vladimir@codesourcery.com
Fri Sep 7 20:18:00 GMT 2007
This patch makes bpstat point to bp_location, not to breakpoint.
This is necessary since in the end, when printing stop reason,
we should be able the address of the location at which we stopped.
If bpstat points to breakpoint, we don't know what location we're
stopped at. OK?
- Volodya
-------------- next part --------------
* breakpoint.h (breakpoint_at): Change type
to bp_location*.
* breakpoint.c (bpstat_alloc): Take bp_location,
not breakpoint.
(bpstat_find_breakpoint): Look at bpstat's location's
owner, not at bpstat->breakpoint_at.
(bpstat_find_step_resume_breakpoint): Likewise.
(bpstat_num): Likewise.
(print_it_typical): Likewise.
(print_bp_stop_message): Likewise.
(watchpoint_check): Likewise.
(bpstat_what): Likewise.
(bpstat_get_triggered_catchpoints): Likewise.
(breakpoint_auto_delete): Likewise.
(delete_breakpoint): Likewise.
(bpstat_stop_status): Pass location, not breakpoint,
to bpstat_alloc. Look at bpstat's location's
owner, not at bpstat->breakpoint_at.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mainline_4_bpstat_owner.diff
Type: text/x-diff
Size: 14854 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/gdb-patches/attachments/20070907/0c2b4863/attachment.bin>
More information about the Gdb-patches
mailing list