* generic/gdbtk.c: Add include of "main.h".
(_initialize_gdbtk): No longer set deprecated_init_ui_hook.
(gdbtk_init): Use get_gdb_program_name function from main.h.
-gdbtk_init_1 (char *arg0)
- argv0 = arg0;
- deprecated_init_ui_hook = NULL;
/* gdbtk_test is used in main.c to validate the -tclcommand option to
gdb, which sources in a file of tcl code after idle during the
startup procedure. */
@@ -690,13 +680,11 @@ gdbtk_test (char *filename)
/* Current_interpreter not set yet, so we must check
if "interpreter_p" is set to "insight" to know if
insight is GOING to run. */
- if (strcmp (interpreter_p, "insight") == 0)
- deprecated_init_ui_hook = gdbtk_init_1;
+ if (strcmp (interpreter_p, "insight") != 0)
DWORD ft = GetFileType (GetStdHandle (STD_INPUT_HANDLE));
On 20/09/2013 1:12 AM, Keith Seitz wrote:
> On 09/18/2013 06:45 AM, Andrew Burgess wrote:
>> The patch below switches to use the new function, and
>> removes the use of deprecated_init_ui_hook.
>> OK to apply?
> Yes, this looks good. Thank you!