OSDN Git Service

Associate bp_stat with bp_location, not breakpoint.
authorVladimir Prus <vladimir@codesourcery.com>
Sat, 22 Sep 2007 17:49:41 +0000 (17:49 +0000)
committerVladimir Prus <vladimir@codesourcery.com>
Sat, 22 Sep 2007 17:49:41 +0000 (17:49 +0000)
commit82e148aca8317cd0b71298af0ea943d68e7ffe87
treef19eb4272ea7d828630bd97015d3a6e38e193764
parentdb3c3b206dbb6841f8b39eacc2ccea3bc1500497
Associate bp_stat with bp_location, not breakpoint.
* 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.
gdb/ChangeLog
gdb/breakpoint.c
gdb/breakpoint.h