diff options
author | Jan Kratochvil <jan.kratochvil@redhat.com> | 2011-08-26 09:28:27 +0000 |
---|---|---|
committer | Jan Kratochvil <jan.kratochvil@redhat.com> | 2011-08-26 09:28:27 +0000 |
commit | e93ca0199f5ea2bec534cf051c2007641f952f82 (patch) | |
tree | f9264079097737f3630b5b9c0f3a16a3af579d84 /gdb/breakpoint.c | |
parent | bdb5404946bc009d72a4e3d3c1ed4c00b8215d89 (diff) | |
download | gdb-e93ca0199f5ea2bec534cf051c2007641f952f82.zip gdb-e93ca0199f5ea2bec534cf051c2007641f952f82.tar.gz gdb-e93ca0199f5ea2bec534cf051c2007641f952f82.tar.bz2 |
gdb/
No functionality change.
* breakpoint.c (bpstat_clear_actions): Remove the BS parameter, make
function comment a reference, new variables tp and bs, move here code
from throw_exception.
* breakpoint.h (bpstat_clear_actions): Remove the BS parameter,
describe it in the comment.
* exceptions.c (throw_exception): Remove variable tp, move the code for
bpstat_clear_actions to bpstat_clear_actions.
Diffstat (limited to 'gdb/breakpoint.c')
-rw-r--r-- | gdb/breakpoint.c | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c index d1d325e..6ccdb6d 100644 --- a/gdb/breakpoint.c +++ b/gdb/breakpoint.c @@ -3186,12 +3186,22 @@ bpstat_num (bpstat *bsp, int *num) return 1; } -/* Modify BS so that the actions will not be performed. */ +/* See breakpoint.h. */ void -bpstat_clear_actions (bpstat bs) +bpstat_clear_actions (void) { - for (; bs != NULL; bs = bs->next) + struct thread_info *tp; + bpstat bs; + + if (ptid_equal (inferior_ptid, null_ptid)) + return; + + tp = find_thread_ptid (inferior_ptid); + if (tp == NULL) + return; + + for (bs = tp->control.stop_bpstat; bs != NULL; bs = bs->next) { decref_counted_command_line (&bs->commands); |