diff options
author | Jan Kratochvil <jan.kratochvil@redhat.com> | 2010-04-05 10:07:30 +0000 |
---|---|---|
committer | Jan Kratochvil <jan.kratochvil@redhat.com> | 2010-04-05 10:07:30 +0000 |
commit | 1f7ccab234e356984a723f5089e812874cb50a06 (patch) | |
tree | f9bb33d98835abe4bbcfe03de5c718e559805c0e | |
parent | 522f09cd4c88911ec7e2c6a8a9a8375af605be21 (diff) | |
download | gdb-1f7ccab234e356984a723f5089e812874cb50a06.zip gdb-1f7ccab234e356984a723f5089e812874cb50a06.tar.gz gdb-1f7ccab234e356984a723f5089e812874cb50a06.tar.bz2 |
gdb/
Code cleanup.
* breakpoint.c (bpstat_stop_status): Use bpstat_causes_stop.
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/breakpoint.c | 6 |
2 files changed, 6 insertions, 5 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index d47b862..b1fb947 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2010-04-05 Jan Kratochvil <jan.kratochvil@redhat.com> + + Code cleanup. + * breakpoint.c (bpstat_stop_status): Use bpstat_causes_stop. + 2010-04-04 Stan Shebs <stan@codesourcery.com> Nathan Sidwell <nathan@codesourcery.com> diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c index 2efb766..36a28f6 100644 --- a/gdb/breakpoint.c +++ b/gdb/breakpoint.c @@ -4141,12 +4141,8 @@ bpstat_stop_status (struct address_space *aspace, not have changed, but the intermediate memory locations we are watching may have. Don't bother if we're stopping; this will get done later. */ - for (bs = root_bs->next; bs != NULL; bs = bs->next) - if (bs->stop) - break; - need_remove_insert = 0; - if (bs == NULL) + if (! bpstat_causes_stop (root_bs->next)) for (bs = root_bs->next; bs != NULL; bs = bs->next) if (!bs->stop && bs->breakpoint_at->owner |