This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] Fix displaced stepping for remote targets
- From: Yao Qi <yao at codesourcery dot com>
- To: "Gustavo, Luis" <luis_gustavo at mentor dot com>
- Cc: <gdb-patches at sourceware dot org>
- Date: Tue, 20 Mar 2012 12:34:17 +0800
- Subject: Re: [PATCH] Fix displaced stepping for remote targets
- References: <4F67E54C.1010904@mentor.com>
On 03/20/2012 10:02 AM, Luis Gustavo wrote:
> If a target supports hw single-stepping for displaced stepping, GDB
> should just send a vCont;s packet to tell the target to step a single
> instruction. In my case, GDB was always sending a vCont;c instead.
On some arch, the original instruction may be translated to more than
one instructions, and copied to scratch pad. So, we can't do
single-step in scratch pad.
Even the case that one instruction is generated/copied to scratch pad
can be optimized in your approach, but not sure it breaks
software-single-step arch or not.
--
Yao (éå)