mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-27 01:28:46 +00:00
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.
This commit is contained in:
@@ -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. */
|
||||
|
||||
Reference in New Issue
Block a user