* breakpoint.c (re_enable_breakpoints_in_shlibs): Only re-enable a
bp_shlib_disabled breakpoint if there is a shared library mapped at its expected address.
This commit is contained in:
parent
593b2cd889
commit
d29caefc4b
2 changed files with 9 additions and 2 deletions
|
@ -1,3 +1,9 @@
|
||||||
|
2003-11-16 Daniel Jacobowitz <drow@mvista.com>
|
||||||
|
|
||||||
|
* breakpoint.c (re_enable_breakpoints_in_shlibs): Only re-enable a
|
||||||
|
bp_shlib_disabled breakpoint if there is a shared library mapped
|
||||||
|
at its expected address.
|
||||||
|
|
||||||
2003-11-16 Andrew Cagney <cagney@redhat.com>
|
2003-11-16 Andrew Cagney <cagney@redhat.com>
|
||||||
|
|
||||||
* configure.tgt: Delete mips*tx39*-elf*.
|
* configure.tgt: Delete mips*tx39*-elf*.
|
||||||
|
|
|
@ -4297,11 +4297,12 @@ re_enable_breakpoints_in_shlibs (void)
|
||||||
ALL_BREAKPOINTS (b)
|
ALL_BREAKPOINTS (b)
|
||||||
if (b->enable_state == bp_shlib_disabled)
|
if (b->enable_state == bp_shlib_disabled)
|
||||||
{
|
{
|
||||||
char buf[1];
|
char buf[1], *lib;
|
||||||
|
|
||||||
/* Do not reenable the breakpoint if the shared library
|
/* Do not reenable the breakpoint if the shared library
|
||||||
is still not mapped in. */
|
is still not mapped in. */
|
||||||
if (target_read_memory (b->loc->address, buf, 1) == 0)
|
lib = PC_SOLIB (b->loc->address);
|
||||||
|
if (lib != NULL && target_read_memory (b->loc->address, buf, 1) == 0)
|
||||||
b->enable_state = bp_enabled;
|
b->enable_state = bp_enabled;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue