* Makefile.in (INSTALLED_LIBS, CLIBS, DEPFILES): Add support for

--enable-xxx configure option by adding ENABLE_{CLIBS DEPFILES}
	where appropriate.

	* General hackery to support alternate user-interface.
	* breakpoint.c (mention, delete_breakpoint, enable_breakpoint,
	disable_breakpoint):  Call hooks for alternate user-interface.
	* defs.h:  Add declarations for alternate user-interface hooks.
	* main.c (main):  Add --nw (and --nowindows) options to disable
	the GUI.
	* (near call to command_loop):  Call command_loop_hook if set.
	* (fputs_unfiltered):  Call fputs_unfiltered_hook if set.
	* stack.c:  Call print_frame_info_listing_hook if set.
	* top.c (gdb_init):  Initialize targets.c and utils.c prior to
	other files to make sure that calls to error and warning will
	work.  Call init_ui_hook after everything else.
	* utils.c (query):  Call query_hook if set.
	* (gdb_flush):  Call flush_hook if set.
	* Change _initialize_utils to initialize_utils cuz we don't use
	automatic initialization of utils.c anymore.

	* Support for TK GUI.
	* Makefile.in:  Add rule for gdbtk.o.
	* configure.in:  Add support for --enable-gdbtk.
	* gdbtk.c:  New file.  Contains support routines for TK interface.
	* gdbtk.tcl:  New file.  Implements GUI policy.

	* remote.c:  Get rid of #ifdef DONT_USE_REMOTE.  It's no longer
	necessary.
This commit is contained in:
Stu Grossman 1994-07-28 22:07:02 +00:00
parent b98612f1fd
commit 754e5da26e
10 changed files with 1142 additions and 207 deletions

View file

@ -146,6 +146,10 @@ source_cleanup PARAMS ((FILE *));
char gdbinit[] = GDBINIT_FILENAME;
int inhibit_gdbinit = 0;
/* Disable windows if non-zero */
int no_windows = 0;
/* Version number of GDB, as a string. */
extern char *version;
@ -488,6 +492,8 @@ gdb_init ()
current_directory = gdb_dirbuf;
init_cmd_lists (); /* This needs to be done first */
initialize_targets (); /* Setup target_terminal macros for utils.c */
initialize_utils (); /* Make errors and warnings possible */
initialize_all_files ();
init_main (); /* But that omits this file! Do it now */
init_signals ();
@ -499,6 +505,9 @@ gdb_init ()
or implicitly set by reading an executable during startup. */
set_language (language_c);
expected_language = current_language; /* don't warn about the change. */
if (init_ui_hook)
init_ui_hook ();
}
void