From 637537d07b5b84dc9cb76af1a4f8a847eb2cd5f7 Mon Sep 17 00:00:00 2001 From: Andrew Cagney Date: Mon, 17 Jan 2005 16:17:36 +0000 Subject: 2005-01-17 Andrew Cagney * 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. --- gdb/event-top.c | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) (limited to 'gdb/event-top.c') 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 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. */ -- cgit v1.1