This is the mail archive of the gdb-patches@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]

Re: [PATCH] Add autoload-breakpoints [0/7]


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 (éå)


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