X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=gdb%2Ftop.c;h=78976d4ca2f24b31c85e94bcb1e1e0155337e740;hb=1f2bdf09c6ace2eefc3dd4dfc7366dea9ff5b30e;hp=d9128a3e86b26ea3d3072bad323a78ee4ecc3e0e;hpb=5a5d8ead9470d24e05f64c39e28e74462794a1ba;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/top.c b/gdb/top.c index d9128a3e86..78976d4ca2 100644 --- a/gdb/top.c +++ b/gdb/top.c @@ -1,6 +1,6 @@ /* Top level stuff for GDB, the GNU debugger. - Copyright (C) 1986-2013 Free Software Foundation, Inc. + Copyright (C) 1986-2014 Free Software Foundation, Inc. This file is part of GDB. @@ -28,6 +28,7 @@ #include "exceptions.h" #include #include "target.h" +#include "target-dcache.h" #include "breakpoint.h" #include "gdbtypes.h" #include "expression.h" @@ -60,8 +61,8 @@ #include #include "event-top.h" -#include "gdb_string.h" -#include "gdb_stat.h" +#include +#include #include #include "ui-out.h" #include "cli-out.h" @@ -85,11 +86,6 @@ const char gdbinit[] = GDBINIT; int inhibit_gdbinit = 0; -/* If nonzero, and GDB has been configured to be able to use windows, - attempt to open them upon startup. */ - -int use_windows = 0; - extern char lang_frame_mismatch_warn[]; /* language.c */ /* Flag for whether we want to confirm potentially dangerous @@ -144,13 +140,6 @@ int saved_command_line_size = 100; is issuing commands too. */ int server_command; -/* Baud rate specified for talking to serial target systems. Default - is left as -1, so targets can choose their own defaults. */ -/* FIXME: This means that "show remotebaud" and gr_files_info can - print -1 or (unsigned int)-1. This is a Bad User Interface. */ - -int baud_rate = -1; - /* Timeout limit for response from target. */ /* The default value has been changed many times over the years. It @@ -259,11 +248,6 @@ ptid_t (*deprecated_target_wait_hook) (ptid_t ptid, void (*deprecated_call_command_hook) (struct cmd_list_element * c, char *cmd, int from_tty); -/* Called after a `set' command has finished. Is only run if the - `set' command succeeded. */ - -void (*deprecated_set_hook) (struct cmd_list_element * c); - /* Called when the current thread changes. Argument is thread id. */ void (*deprecated_context_hook) (int id); @@ -456,7 +440,7 @@ execute_command (char *p, int from_tty) /* If this command has been pre-hooked, run the hook first. */ execute_cmd_pre_hook (c); - if (c->flags & DEPRECATED_WARN_USER) + if (c->deprecated_warn_user) deprecated_cmd_warning (line); /* c->user_commands would be NULL in the case of a python command. */ @@ -1068,8 +1052,7 @@ command_line_input (char *prompt_arg, int repeat, char *annotation_suffix) *p = 0; /* Add line to history if appropriate. */ - if (instream == stdin - && ISATTY (stdin) && *linebuffer) + if (*linebuffer && input_from_terminal_p ()) add_history (linebuffer); /* Note: lines consisting solely of comments are added to the command @@ -1109,7 +1092,7 @@ print_gdb_version (struct ui_file *stream) /* Second line is a copyright notice. */ fprintf_filtered (stream, - "Copyright (C) 2013 Free Software Foundation, Inc.\n"); + "Copyright (C) 2014 Free Software Foundation, Inc.\n"); /* Following the copyright is a brief statement that the program is free software, that users are free to copy and change it on