diff options
author | Vladimir Prus <vladimir@codesourcery.com> | 2007-08-14 08:11:45 +0000 |
---|---|---|
committer | Vladimir Prus <vladimir@codesourcery.com> | 2007-08-14 08:11:45 +0000 |
commit | e14a792bcf5d14059f9d991873b94083c9a1bc3b (patch) | |
tree | caec3a980a9d4875b009a81b487fd14719a97512 /gdb/breakpoint.c | |
parent | 3fec76aafa7293906969f7b6c96e8bcecc88f9d0 (diff) | |
download | gdb-e14a792bcf5d14059f9d991873b94083c9a1bc3b.zip gdb-e14a792bcf5d14059f9d991873b94083c9a1bc3b.tar.gz gdb-e14a792bcf5d14059f9d991873b94083c9a1bc3b.tar.bz2 |
gdb/
* breakpoint.c (update_breakpoints_after_exec): Don't
set address to zero.
Diffstat (limited to 'gdb/breakpoint.c')
-rw-r--r-- | gdb/breakpoint.c | 28 |
1 files changed, 1 insertions, 27 deletions
diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c index f59f1da..1fc3d10 100644 --- a/gdb/breakpoint.c +++ b/gdb/breakpoint.c @@ -1406,26 +1406,11 @@ update_breakpoints_after_exec (void) on this target, we may not be able to stop when the vfork is seen, but only when the subsequent exec is seen. (And because deleting fork catchpoints here but not vfork catchpoints will - seem mysterious to users, keep those too.) - - ??rehrauer: Let's hope that merely clearing out this catchpoint's - target address field, if any, is sufficient to have it be reset - automagically. Certainly on HP-UX that's true. - - Jim Blandy <jimb@redhat.com>: Actually, zero is a perfectly - valid code address on some platforms (like the mn10300 - simulators). We shouldn't assign any special interpretation to - a breakpoint with a zero address. And in fact, GDB doesn't --- - I can't see what that comment above is talking about. As far - as I can tell, setting the address of a - bp_catch_exec/bp_catch_vfork/bp_catch_fork breakpoint to zero - is meaningless, since those are implemented with HP-UX kernel - hackery, not by storing breakpoint instructions somewhere. */ + seem mysterious to users, keep those too.) */ if ((b->type == bp_catch_exec) || (b->type == bp_catch_vfork) || (b->type == bp_catch_fork)) { - b->loc->address = (CORE_ADDR) 0; continue; } @@ -1468,17 +1453,6 @@ update_breakpoints_after_exec (void) delete_breakpoint (b); continue; } - - /* If this breakpoint has survived the above battery of checks, then - it must have a symbolic address. Be sure that it gets reevaluated - to a target address, rather than reusing the old evaluation. - - Jim Blandy <jimb@redhat.com>: As explained above in the comment - for bp_catch_exec and friends, I'm pretty sure this is entirely - unnecessary. A call to breakpoint_re_set_one always recomputes - the breakpoint's address from scratch, or deletes it if it can't. - So I think this assignment could be deleted without effect. */ - b->loc->address = (CORE_ADDR) 0; } /* FIXME what about longjmp breakpoints? Re-create them here? */ create_overlay_event_breakpoint ("_ovly_debug_event"); |