diff options
author | Andrew Cagney <cagney@redhat.com> | 2004-01-19 01:20:12 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2004-01-19 01:20:12 +0000 |
commit | c6f0559b48289f9b295ab3fac1bb5d78f88e5d91 (patch) | |
tree | b929e3257906fce9cfefc27afbe5ef43a05ec789 /gdb/mi | |
parent | 8819f097a47d9f8ea0fb66fc4c54e8b202f81979 (diff) | |
download | gdb-c6f0559b48289f9b295ab3fac1bb5d78f88e5d91.zip gdb-c6f0559b48289f9b295ab3fac1bb5d78f88e5d91.tar.gz gdb-c6f0559b48289f9b295ab3fac1bb5d78f88e5d91.tar.bz2 |
2004-01-18 Andrew Cagney <cagney@redhat.com>
* remote-sds.c (tohex): Delete unused function. Update copyright.
* xstormy16-tdep.c (xstormy16_register_virtual_size): Ditto.
* v850-tdep.c (v850_register_virtual_size): Ditto.
* target.c (normal_target_post_startup_inferior): Ditto.
* source.c (ambiguous_line_spec): Ditto.
* remote.c (adapt_remote_get_threadinfo): Ditto.
* mi/mi-out.c (out_field_fmt): Ditto.
* mi/mi-interp.c (mi_interp_read_one_line_hook): Ditto.
(output_control_change_notification): Ditto.
* m68k-tdep.c (m68k_register_byte): Ditto.
(m68k_remote_breakpoint_from_pc): Ditto.
* ui-out.c (init_ui_out_state): Delete unused declaration.
* stabsread.c (search_value): Ditto.
* mi/mi-cmd-env.c (env_cli_command): Ditto.
* maint.c (print_section_table): Ditto.
* infrun.c (set_follow_fork_mode_command): Ditto.
Diffstat (limited to 'gdb/mi')
-rw-r--r-- | gdb/mi/mi-cmd-env.c | 3 | ||||
-rw-r--r-- | gdb/mi/mi-interp.c | 23 | ||||
-rw-r--r-- | gdb/mi/mi-out.c | 30 |
3 files changed, 3 insertions, 53 deletions
diff --git a/gdb/mi/mi-cmd-env.c b/gdb/mi/mi-cmd-env.c index ec0fa35..439c719 100644 --- a/gdb/mi/mi-cmd-env.c +++ b/gdb/mi/mi-cmd-env.c @@ -1,6 +1,6 @@ /* MI Command Set - environment commands. - Copyright 2002, 2003 Free Software Foundation, Inc. + Copyright 2002, 2003, 2004 Free Software Foundation, Inc. Contributed by Red Hat Inc. @@ -37,7 +37,6 @@ #include "gdb_string.h" #include "gdb_stat.h" -static void env_cli_command (const char *cli, const char *args); static void env_mod_path (char *dirname, char **which_path); extern void _initialize_mi_cmd_env (void); diff --git a/gdb/mi/mi-interp.c b/gdb/mi/mi-interp.c index b72d7ef..08201ca 100644 --- a/gdb/mi/mi-interp.c +++ b/gdb/mi/mi-interp.c @@ -1,6 +1,6 @@ /* MI Interpreter Definitions and Commands for GDB, the GNU debugger. - Copyright 2002, 2003 Free Software Foundation, Inc. + Copyright 2002, 2003, 2003 Free Software Foundation, Inc. This file is part of GDB. @@ -57,8 +57,6 @@ static char *mi_input (char *); so we can report interesting things that happened "behind the mi's back" in this command */ static int mi_interp_query_hook (const char *ctlstr, va_list ap); -static char *mi_interp_read_one_line_hook (char *prompt, int repeat, - char *anno); static void mi3_command_loop (void); static void mi2_command_loop (void); @@ -299,25 +297,6 @@ mi_interp_query_hook (const char *ctlstr, va_list ap) return 1; } -static char * -mi_interp_read_one_line_hook (char *prompt, int repeat, char *anno) -{ - static char buff[256]; - printf_unfiltered ("=read-one-line,prompt=\"%s\"\n", prompt); - gdb_flush (gdb_stdout); - (void) fgets (buff, sizeof (buff), stdin); - buff[(strlen (buff) - 1)] = 0; - return buff; -} - -static void -output_control_change_notification (char *notification) -{ - printf_unfiltered ("^"); - printf_unfiltered ("%s\n", notification); - gdb_flush (gdb_stdout); -} - static void mi_execute_command_wrapper (char *cmd) { diff --git a/gdb/mi/mi-out.c b/gdb/mi/mi-out.c index 637ceb4..2be9d17 100644 --- a/gdb/mi/mi-out.c +++ b/gdb/mi/mi-out.c @@ -1,6 +1,6 @@ /* MI Command Set - output generating routines. - Copyright 2000, 2002, 2003 Free Software Foundation, Inc. + Copyright 2000, 2002, 2003, 2004 Free Software Foundation, Inc. Contributed by Cygnus Solutions (a Red Hat company). @@ -98,9 +98,6 @@ static void mi_open (struct ui_out *uiout, const char *name, enum ui_out_type type); static void mi_close (struct ui_out *uiout, enum ui_out_type type); -static void out_field_fmt (struct ui_out *uiout, int fldno, char *fldname, - char *format,...); - /* Mark beginning of a table */ void @@ -290,31 +287,6 @@ mi_flush (struct ui_out *uiout) /* local functions */ -/* Like mi_field_fmt, but takes a variable number of args - and makes a va_list and does not insert a separator */ - -/* VARARGS */ -static void -out_field_fmt (struct ui_out *uiout, int fldno, char *fldname, - char *format,...) -{ - mi_out_data *data = ui_out_data (uiout); - va_list args; - - field_separator (uiout); - if (fldname) - fprintf_unfiltered (data->buffer, "%s=\"", fldname); - else - fputs_unfiltered ("\"", data->buffer); - - va_start (args, format); - vfprintf_unfiltered (data->buffer, format, args); - - fputs_unfiltered ("\"", data->buffer); - - va_end (args); -} - /* access to ui_out format private members */ static void |