Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* from gdbserver/mem-break.c: unnecessary line
@ 2007-01-16 11:35 Markus Deuling
  2007-01-16 12:05 ` Andrew STUBBS
  0 siblings, 1 reply; 2+ messages in thread
From: Markus Deuling @ 2007-01-16 11:35 UTC (permalink / raw)
  To: GDB Discuss

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 


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-01-16 12:05 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-01-16 11:35 from gdbserver/mem-break.c: unnecessary line Markus Deuling
2007-01-16 12:05 ` Andrew STUBBS

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox