from gdbserver/mem-break.c: unnecessary line
Markus Deuling
deuling@de.ibm.com
Tue Jan 16 11:35:00 GMT 2007
Hi,
I copied the following function from gdbserver/mem-break.c.
What about this line: (*bp->handler) (bp->pc);
That doesn't have any effect, does it ?
<schnipp>
int
check_breakpoints (CORE_ADDR stop_pc)
{
struct breakpoint *bp;
bp = find_breakpoint_at (stop_pc);
if (bp == NULL)
return 0;
if (bp->reinserting)
{
warning ("Hit a removed breakpoint?");
return 0;
}
(*bp->handler) (bp->pc);
return 1;
}
<schnapp>
Regards,
Markus
--
Markus Deuling
GNU Toolchain for Linux on Cell BE
deuling@de.ibm.com
More information about the Gdb
mailing list