aboutsummaryrefslogtreecommitdiff
path: root/gdb/top.h
diff options
context:
space:
mode:
authorDaniel Jacobowitz <drow@false.org>2006-03-29 22:53:33 +0000
committerDaniel Jacobowitz <drow@false.org>2006-03-29 22:53:33 +0000
commit698ba9341ed2a509079635b532aa3593d86aa047 (patch)
tree5c212d9af6dba536a1d4624988f3df206be050cb /gdb/top.h
parent2f00de94cba65aea58efe910d1b4970220d0bb5f (diff)
downloadgdb-698ba9341ed2a509079635b532aa3593d86aa047.zip
gdb-698ba9341ed2a509079635b532aa3593d86aa047.tar.gz
gdb-698ba9341ed2a509079635b532aa3593d86aa047.tar.bz2
* Makefile.in (utils.o): Update.
* top.c (in_user_command): New. (command_line_input): Use input_from_terminal_p. (input_from_terminal_p): Don't check caution. Handle stdin == NULL for Insight. * top.h (in_user_command, caution): New declarations. * utils.c: Include "top.h". (query, defaulted_query): Check caution here. Move the call to input_from_terminal_p higher. * cli/cli-script.c (do_restore_user_call_depth): Only decrement the depth. Update in_user_command if necessary. (execute_user_command): Don't clobber old_chain. Set in_user_command. Let do_restore_user_call_depth handle user_call_depth. (read_command_lines): Check whether to prompt before calling Insight hooks. * tui/tui-hooks.c (tui_query_hook): Remove newly unnecessary input_from_terminal_p check.
Diffstat (limited to 'gdb/top.h')
-rw-r--r--gdb/top.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/gdb/top.h b/gdb/top.h
index e3f5d72..591bfa3 100644
--- a/gdb/top.h
+++ b/gdb/top.h
@@ -1,7 +1,7 @@
/* Top level stuff for GDB, the GNU debugger.
Copyright (C) 1986, 1987, 1988, 1989, 1990, 1991, 1992, 1993, 1994,
- 1996, 1997, 1998, 1999, 2000, 2005 Free Software Foundation, Inc.
+ 1996, 1997, 1998, 1999, 2000, 2005, 2006 Free Software Foundation, Inc.
This file is part of GDB.
@@ -27,6 +27,8 @@
extern char *line;
extern int linesize;
extern FILE *instream;
+extern int in_user_command;
+extern int caution;
extern char gdb_dirbuf[1024];
extern int inhibit_gdbinit;
extern int epoch_interface;