This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
RE: [RFA] Patch to fix "reverse-next" command error
- From: "Marc Khouzam" <marc dot khouzam at ericsson dot com>
- To: "Marc Khouzam" <marc dot khouzam at ericsson dot com>, "teawater" <teawater at gmail dot com>, "Michael Snyder" <msnyder at vmware dot com>, "Pedro Alves" <pedro at codesourcery dot com>
- Cc: <gdb-patches at sourceware dot org>
- Date: Tue, 27 Jan 2009 15:27:23 -0500
- Subject: RE: [RFA] Patch to fix "reverse-next" command error
- References: <6D19CA8D71C89C43A057926FE0D4ADAA04E1BF2D@ecamlmw720.eamcs.ericsson.se>
Hi again,
I just noticed I still have the problem of jumping library functions
when using reverse-step. Seems ok for reverse-next.
Thanks
Marc
> -----Original Message-----
> From: gdb-patches-owner@sourceware.org
> [mailto:gdb-patches-owner@sourceware.org] On Behalf Of Marc Khouzam
> Sent: Tuesday, January 27, 2009 5:38 AM
> To: teawater; Michael Snyder; Pedro Alves
> Cc: gdb-patches@sourceware.org
> Subject: RE: [RFA] Patch to fix "reverse-next" command error
>
> Hi,
>
> just to confirm that this fixes the problem for me.
>
> Thanks teawater
>
> Marc
>
> ________________________________
>
> From: teawater [mailto:teawater@gmail.com]
> Sent: Thu 1/22/2009 4:00 AM
> To: Michael Snyder; Pedro Alves
> Cc: Marc Khouzam; gdb-patches@sourceware.org
> Subject: [RFA] Patch to fix "reverse-next" command error
>
>
>
> Hi guys,
>
> This patch is for bug in
> http://sourceware.org/ml/gdb/2009-01/msg00146.html
>
> This issue is because sometime the inferior is already in function
> start address (i.e. plt), set a breakpoint and continue will make
> "reverse-next" work error.
>
> This patch make inferior step if it reverse step and stop at the
> function start address.
> It tested OK with process record patch and testsuite gdb.twreverse in
> branch reverse-20081226-branch.
>
> 2009-01-22 Hui Zhu <teawater@gmail.com>
>
> * infrun.c (handle_inferior_event): Make inferior step if it
> stepping over a function call in reverse , and stop at the
> start address of the function.
>
> OK for mainline?
>
> Thanks,
> Hui
>
>
>