This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
from gdbserver/mem-break.c: unnecessary line
- From: Markus Deuling <deuling at de dot ibm dot com>
- To: GDB Discuss <gdb at sources dot redhat dot com>
- Date: Tue, 16 Jan 2007 12:35:03 +0100
- Subject: from gdbserver/mem-break.c: unnecessary line
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