delete_breakpoint: don't try to insert other breakpoints

Vladimir Prus vladimir@codesourcery.com
Wed Nov 14 20:24:00 GMT 2007


 
The delete_breakpoint function tries to check if the
breakpoint being deleted is inserted in inferior, and if
so, searched for breakpoints that are set at the same address
and tries to insert them.  However, GDB removes breakpoint
from the inferior immediately when inferior is stopped,
so this code will never run.  Removing this code has
no effect on test results. 

(And generally, if that function needed to insert breakpoints,
it should have used insert_breakpoints, instead of duplicating
the logic somewhat).

OK?

- Volodya



-------------- next part --------------
A non-text attachment was scrubbed...
Name: dont_insert.diff
Type: text/x-diff
Size: 3730 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/gdb-patches/attachments/20071114/7d5bea2f/attachment.bin>


More information about the Gdb-patches mailing list