This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[ob/commit] Comment tweaks, cli/cli-interp.c
- From: Michael Snyder <msnyder at redhat dot com>
- To: gdb-patches at sources dot redhat dot com
- Date: Thu, 13 Jan 2005 15:32:23 -0800
- Subject: [ob/commit] Comment tweaks, cli/cli-interp.c
- Organization: Red Hat, Inc.
2005-01-13 Michael Snyder <msnyder@redhat.com>
* cli/cli-interp.c: Tweak comments, per coding standard.
Index: cli/cli-interp.c
===================================================================
RCS file: /cvs/src/src/gdb/cli/cli-interp.c,v
retrieving revision 1.6
diff -p -r1.6 cli-interp.c
*** cli/cli-interp.c 13 Jan 2005 02:35:38 -0000 1.6
--- cli/cli-interp.c 13 Jan 2005 23:29:28 -0000
***************
*** 31,39 ****
struct ui_out *cli_uiout;
! /* These are the ui_out and the interpreter for the console interpreter. */
! /* Longjmp-safe wrapper for "execute_command" */
static struct exception safe_execute_command (struct ui_out *uiout,
char *command, int from_tty);
struct captured_execute_command_args
--- 31,39 ----
struct ui_out *cli_uiout;
! /* These are the ui_out and the interpreter for the console interpreter. */
! /* Longjmp-safe wrapper for "execute_command". */
static struct exception safe_execute_command (struct ui_out *uiout,
char *command, int from_tty);
struct captured_execute_command_args
*************** cli_interpreter_exec (void *data, const
*** 107,113 ****
a new ui_file for gdb_stdout, use that one instead of the default.
It is important that it gets reset everytime, since the user could
! set gdb to use a different interpreter. */
old_stream = cli_out_set_stream (cli_uiout, gdb_stdout);
result = safe_execute_command (cli_uiout, str, 1);
cli_out_set_stream (cli_uiout, old_stream);
--- 107,113 ----
a new ui_file for gdb_stdout, use that one instead of the default.
It is important that it gets reset everytime, since the user could
! set gdb to use a different interpreter. */
old_stream = cli_out_set_stream (cli_uiout, gdb_stdout);
result = safe_execute_command (cli_uiout, str, 1);
cli_out_set_stream (cli_uiout, old_stream);
*************** safe_execute_command (struct ui_out *uio
*** 133,139 ****
}
! /* standard gdb initialization hook */
extern initialize_file_ftype _initialize_cli_interp; /* -Wmissing-prototypes */
void
--- 133,139 ----
}
! /* Standard gdb initialization hook. */
extern initialize_file_ftype _initialize_cli_interp; /* -Wmissing-prototypes */
void
*************** _initialize_cli_interp (void)
*** 148,154 ****
};
struct interp *cli_interp;
! /* Create a default uiout builder for the CLI. */
cli_uiout = cli_out_new (gdb_stdout);
cli_interp = interp_new (INTERP_CONSOLE, NULL, cli_uiout, &procs);
--- 148,154 ----
};
struct interp *cli_interp;
! /* Create a default uiout builder for the CLI. */
cli_uiout = cli_out_new (gdb_stdout);
cli_interp = interp_new (INTERP_CONSOLE, NULL, cli_uiout, &procs);