diff options
author | Martin Hunt <hunt@redhat.com> | 1997-07-10 07:15:26 +0000 |
---|---|---|
committer | Martin Hunt <hunt@redhat.com> | 1997-07-10 07:15:26 +0000 |
commit | 2476848aafa495e6b9fee09cf15f451a3b5afb41 (patch) | |
tree | ab00963ab366ddf788e1e4457a9532349a4a7378 /gdb/top.c | |
parent | 67bc13a47895b2500107dabb863e7172773b7257 (diff) | |
download | gdb-2476848aafa495e6b9fee09cf15f451a3b5afb41.zip gdb-2476848aafa495e6b9fee09cf15f451a3b5afb41.tar.gz gdb-2476848aafa495e6b9fee09cf15f451a3b5afb41.tar.bz2 |
Thu Jul 10 00:02:41 1997 Martin M. Hunt <hunt@cygnus.com>
* Makefile.in, configure.in, aclocal.m4: Add Itcl, Tix, and
IDE configuration information.
* gdbtk.c (breakpoint_notify): Send address, linenumber and
filename when a breakpoint is set. Avoids call to bp_info.
(gdbtk_init): Call Tcl_FindExecutable(). Add code to handle
Itcl, Tix and IDE initialization.
* defs.h (init_ui_hook): Change prototype to accept one arg.
* main.c (gdb_init): Change prototype to accept one arg.
* top.c (gdb_init): Accepts one argument which it uses to
call (*init_ui_hook), which will be gdbtk_init(). This is
used for calling Tcl_FindExecutable().
* gdbtcl/breakpoint.tcl (gdbtk_tcl_breakpoint): Change to
accept variable number of args for compatibility with
cchanges in gdbtk.c.
* configure: Regenerated.
* gdbtcl/tclIndex: Regenerated.
Diffstat (limited to 'gdb/top.c')
-rw-r--r-- | gdb/top.c | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -372,7 +372,7 @@ static void stop_sig PARAMS ((int)); /* Called after most modules have been initialized, but before taking users command file. */ -void (*init_ui_hook) PARAMS ((void)); +void (*init_ui_hook) PARAMS ((char *argv0)); /* Called instead of command_loop at top level. Can be invoked via return_to_top_level. */ @@ -633,7 +633,8 @@ extern void init_proc PARAMS ((void)); void (*pre_init_ui_hook) PARAMS ((void)); void -gdb_init () +gdb_init (argv0) + char *argv0; { if (pre_init_ui_hook) pre_init_ui_hook (); @@ -659,7 +660,7 @@ gdb_init () expected_language = current_language; /* don't warn about the change. */ if (init_ui_hook) - init_ui_hook (); + init_ui_hook (argv0); } /* Allocate, initialize a new command line structure for one of the |