This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]