aboutsummaryrefslogtreecommitdiff
path: root/gdb/top.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2005-01-17 16:17:36 +0000
committerAndrew Cagney <cagney@redhat.com>2005-01-17 16:17:36 +0000
commit637537d07b5b84dc9cb76af1a4f8a847eb2cd5f7 (patch)
treeb25b4697110dc311d62688548630e205ccfbc1bc /gdb/top.c
parente38bc3b5244a70367b51990962e12f6847eee6fd (diff)
downloadgdb-637537d07b5b84dc9cb76af1a4f8a847eb2cd5f7.zip
gdb-637537d07b5b84dc9cb76af1a4f8a847eb2cd5f7.tar.gz
gdb-637537d07b5b84dc9cb76af1a4f8a847eb2cd5f7.tar.bz2
2005-01-17 Andrew Cagney <cagney@gnu.org>
* top.h (source_error, source_pre_error): Delete declaration. * cli/cli-script.c (source_error_allocated, source_error): Delete. (script_from_file, source_cleanup_lines): Do not manipulate source_error_allocated, error_pre_print and source_error. (struct source_cleanup_lines_args): Delete fields old_pre_error, and old_error_pre_print. * top.c (source_error_allocated, source_error) (source_pre_error): Delete. (command_line_input): Do not set error_pre_print. * event-top.c (command_line_handler): Do not set error_pre_print.
Diffstat (limited to 'gdb/top.c')
-rw-r--r--gdb/top.c27
1 files changed, 2 insertions, 25 deletions
diff --git a/gdb/top.c b/gdb/top.c
index b447521..f033c07 100644
--- a/gdb/top.c
+++ b/gdb/top.c
@@ -1,7 +1,7 @@
/* Top level stuff for GDB, the GNU debugger.
Copyright 1986, 1987, 1988, 1989, 1990, 1991, 1992, 1993, 1994,
- 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004
+ 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
Free Software Foundation, Inc.
This file is part of GDB.
@@ -319,21 +319,6 @@ quit_cover (void *s)
event-top.c into this file, top.c */
/* static */ char *source_file_name;
-/* Buffer containing the error_pre_print used by the source stuff.
- Malloc'd. */
-/* NOTE 1999-04-29: This variable will be static again, once we modify
- gdb to use the event loop as the default command loop and we merge
- event-top.c into this file, top.c */
-/* static */ char *source_error;
-static int source_error_allocated;
-
-/* Something to glom on to the start of error_pre_print if source_file_name
- is set. */
-/* NOTE 1999-04-29: This variable will be static again, once we modify
- gdb to use the event loop as the default command loop and we merge
- event-top.c into this file, top.c */
-/* static */ char *source_pre_error;
-
/* Clean up on error during a "source" command (or execution of a
user-defined command). */
@@ -873,15 +858,7 @@ command_line_input (char *prompt_arg, int repeat, char *annotation_suffix)
gdb_flush (gdb_stderr);
if (source_file_name != NULL)
- {
- ++source_line_number;
- sprintf (source_error,
- "%s%s:%d: Error in sourced command file:\n",
- source_pre_error,
- source_file_name,
- source_line_number);
- error_pre_print = source_error;
- }
+ ++source_line_number;
if (annotation_level > 1 && instream == stdin)
{