This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: delete_breakpoint: don't try to insert other breakpoints
- From: Eli Zaretskii <eliz at gnu dot org>
- To: Vladimir Prus <vladimir at codesourcery dot com>
- Cc: gdb-patches at sources dot redhat dot com
- Date: Thu, 15 Nov 2007 06:03:46 +0200
- Subject: Re: delete_breakpoint: don't try to insert other breakpoints
- References: <200711142324.11319.vladimir@codesourcery.com>
- Reply-to: Eli Zaretskii <eliz at gnu dot org>
> From: Vladimir Prus <vladimir@codesourcery.com>
> Date: Wed, 14 Nov 2007 23:24:10 +0300
>
> 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.
I think you are assuming that this code does and will always run
synchronously. Is that a valid assumption?