Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Vladimir Prus <vladimir@codesourcery.com>
To: Michael Snyder <msnyder@vmware.com>
Cc: Jakob Engblom <jakob@virtutech.com>,
	 "gdb-patches@sourceware.org" <gdb-patches@sourceware.org>
Subject: Re: GDB MI Reverse Commands added [1 of 3]
Date: Wed, 16 Dec 2009 07:54:00 -0000	[thread overview]
Message-ID: <200912161054.35323.vladimir@codesourcery.com> (raw)
In-Reply-To: <4B27E565.5060305@vmware.com>

On Tuesday 15 December 2009 22:37:09 Michael Snyder wrote:

> Vladimir, as far as I can tell, this seems to be the most recent
> version of part 1 of this patch, awaiting approval now that the
> copyright paperwork is completed.
> 
>         2009-08-31 Tomas Holmberg >th@virtutech.com>
>         * mi/mi-main.c: Added the --reverse flag to the following MI
>         commands: exec-continue, exec-finish, exec-next, exec-step,
>         exec-next-instruction, exec-step-instruction. This is to
>         support reverse execution over the MI interface to gdb.

Michael,

thanks. This patch is OK, with the following fixes:

>   Index: mi-main.c
> ===================================================================
> RCS file: /cvs/src/src/gdb/mi/mi-main.c,v
> retrieving revision 1.156
> diff -u -p -r1.156 mi-main.c
> --- mi-main.c   2 Jul 2009 17:25:59 -0000       1.156
> +++ mi-main.c   27 Aug 2009 01:45:23 -0000
> @@ -88,8 +88,8 @@ static void mi_cmd_execute (struct mi_pa
>  
>  static void mi_execute_cli_command (const char *cmd, int args_p,
>                                     const char *args);
> -static void mi_execute_async_cli_command (char *cli_command, 
> -                                                       char **argv, int argc);
> +static void mi_execute_async_cli_command (char *cli_command,
> +                                         char **argv, int argc);

This is spurious formatting change that must be undone. There's a lot of
similar changes in the patch — that must be similarly undone.

> +/* continue in reverse direction:
> +   XXX: code duplicated from reverse.c */
> +
> +static void
> +exec_direction_default (void *notused)
> +{
> +  /* Return execution direction to default state.  */
> +  execution_direction = EXEC_FORWARD;
> +}

It should be straight-forward to make the function in reverse.c globally
visible, and remove this copy-paste.

Thanks,
Volodya


  reply	other threads:[~2009-12-16  7:54 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-08-26 14:38 Jakob Engblom
2009-08-27  1:13 ` Michael Snyder
2009-08-31 13:26   ` Jakob Engblom
2009-08-31 19:56     ` Michael Snyder
2009-09-01  6:37       ` Jakob Engblom
2009-09-01 19:08         ` Michael Snyder
2009-08-27  2:06 ` Michael Snyder
2009-08-31 13:15   ` Jakob Engblom
2009-08-31 20:29   ` Tom Tromey
2009-09-02  8:16   ` Vladimir Prus
2009-09-10 21:09     ` Michael Snyder
2009-09-10 21:10       ` Michael Snyder
2010-01-13 20:32     ` Jakob Engblom
2010-01-13 20:36       ` Vladimir Prus
2010-01-13 20:44         ` Michael Snyder
2009-12-15 19:39   ` Michael Snyder
2009-12-16  7:54     ` Vladimir Prus [this message]
2009-12-16  7:57       ` Vladimir Prus
2009-12-17 14:40         ` Jakob Engblom
2009-12-21 10:06           ` Vladimir Prus
2009-12-22 11:34             ` Jakob Engblom
2009-12-22 11:48               ` Vladimir Prus
2010-01-13 13:15                 ` Jakob Engblom
2009-12-22 18:22               ` Michael Snyder
2010-01-13 13:16                 ` Jakob Engblom
2010-02-12 21:33                 ` Michael Snyder
2009-08-27  3:11 ` Hui Zhu

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200912161054.35323.vladimir@codesourcery.com \
    --to=vladimir@codesourcery.com \
    --cc=gdb-patches@sourceware.org \
    --cc=jakob@virtutech.com \
    --cc=msnyder@vmware.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox