diff options
author | Andrew Cagney <cagney@redhat.com> | 2005-01-17 16:17:36 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2005-01-17 16:17:36 +0000 |
commit | 637537d07b5b84dc9cb76af1a4f8a847eb2cd5f7 (patch) | |
tree | b25b4697110dc311d62688548630e205ccfbc1bc /gdb/event-top.c | |
parent | e38bc3b5244a70367b51990962e12f6847eee6fd (diff) | |
download | gdb-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/event-top.c')
-rw-r--r-- | gdb/event-top.c | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/gdb/event-top.c b/gdb/event-top.c index 5f7df47..1d961c2 100644 --- a/gdb/event-top.c +++ b/gdb/event-top.c @@ -1,5 +1,8 @@ /* Top level stuff for GDB, the GNU debugger. - Copyright 1999, 2000, 2001, 2002, 2004 Free Software Foundation, Inc. + + Copyright 1999, 2000, 2001, 2002, 2004, 2005 Free Software + Foundation, Inc. + Written by Elena Zannoni <ezannoni@cygnus.com> of Cygnus Solutions. This file is part of GDB. @@ -646,15 +649,7 @@ command_line_handler (char *rl) 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 we are in this case, then command_handler will call quit and exit from gdb. */ |