This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] Add autoload-breakpoints [0/7]
- From: Yao Qi <yao at codesourcery dot com>
- To: <gdb-patches at sourceware dot org>
- Date: Mon, 19 Mar 2012 12:47:57 +0800
- Subject: Re: [PATCH] Add autoload-breakpoints [0/7]
- References: <4F6450AF.5010609@mentor.com>
On 03/17/2012 04:51 PM, Hui Zhu wrote:
> Hi,
>
> There are patches to make GDB support autoload-breakpoints.
For avoid of doubt, here is a high level description of these patches:
Prior to GDB connects to remote stub, some breakpoints might have been
already set in target, either by a prior GDB session or by the program
itself through some special system API. When GDB connects to target, it
should handle these existing breakpoints from remote stub. We call
these breakpoints as "auotload breakpoints".
> It is:
> 1. it is set by the remote stub.
> 2. The remote stub can control autoload-breakpoints any time even if GDB
> is just control the inferior.
The other use case we want to support in GDB is that inferior may
delete/clear breakpoints on its own, and remote stub gets GDB notified,
and GDB can take some actions accordingly. We believe such reliable
report is useful to GDB, and generalize it, called "ReportAsync".
The connection between "ReportAsync" and "autoload breakpoint" is when
inferior/stub delete breakpoints, sends async report to GDB about
removed breakpoints.
--
Yao (éå)