This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] [PR gdb/13463] linux-nat: Stop lwp before xfer if running
- From: Pedro Alves <palves at redhat dot com>
- To: simon dot marchi at polymtl dot ca
- Cc: gdb-patches at sourceware dot org
- Date: Tue, 27 Aug 2013 20:36:11 +0100
- Subject: Re: [PATCH] [PR gdb/13463] linux-nat: Stop lwp before xfer if running
- Authentication-results: sourceware.org; auth=none
- References: <5203f8bd dot SBEnufg91ES5VgBo%simon dot marchi at polymtl dot ca> <521CFEFC dot 5050008 at redhat dot com>
On 08/27/2013 08:33 PM, Pedro Alves wrote:
> Yeah, gdbserver does this. Starts with prepare_to_access_memory. A
> prepare -> do -> "unprepare" sequence is possibly more efficient,
> as we can batch several "do"s over a single pause sequence. I've considered
> before pushing that prepare/unprepare sequence all the way to gdb core,
> in order to batch e.g., the whole of prologue analysis + breakpoint
> insertion, or of shared library list reading, etc., but I thought all
> the way through all that.
Grrr, in case it isn't obvious, I meant:
"but I _haven't_ thought all the way through all that."
--
Pedro Alves