From b0be6c912f9e901a87740c72f18be1e54ad5267d Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Wed, 1 May 2019 12:28:45 -0600 Subject: Move interpreter_p declaration to main.h This moves the interpreter_p declaration from defs.h to main.h. I think this makes more sense, as it is defined in main.c. Also, this declaration was in the wrong place -- between a comment and the things the comment described. gdb/ChangeLog 2019-05-08 Tom Tromey * tui/tui-interp.c: Include main.h. * interps.c: Include main.h. * main.h (interpreter_p): Declare. * defs.h (interpreter_p): Don't declare. --- gdb/main.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'gdb/main.h') diff --git a/gdb/main.h b/gdb/main.h index e707bf3..e44779a 100644 --- a/gdb/main.h +++ b/gdb/main.h @@ -35,6 +35,9 @@ extern int return_child_result_value; extern int batch_silent; extern int batch_flag; +/* * The name of the interpreter if specified on the command line. */ +extern char *interpreter_p; + /* From mingw-hdep.c, used by main.c. */ /* Return argv[0] in absolute form, if possible, or ARGV0 if not. The -- cgit v1.1