From f3b86a30f914d3a74e4f167bd4a97170f21a9776 Mon Sep 17 00:00:00 2001 From: Jim Ingham Date: Wed, 1 Jul 1998 20:17:31 +0000 Subject: [PATCH] Wed Jul 1 13:10:58 1998 Jim Ingham * Moved gdbtk_hooks.c & gdbtk_cmds.c to gdbtk-hooks.c & gdbtk-cmds.c to comply with the gdb conventions. Changed the configure & makefile to reflect the change... --- gdb/.Sanitize | 2 +- gdb/ChangeLog-gdbtk | 6 ++++++ gdb/Makefile.in | 8 ++++---- gdb/configure | 2 +- gdb/configure.in | 2 +- gdb/{gdbtk_cmds.c => gdbtk-cmds.c} | 0 gdb/{gdbtk_hooks.c => gdbtk-hooks.c} | 2 +- gdb/gdbtk.h | 2 +- 8 files changed, 15 insertions(+), 9 deletions(-) rename gdb/{gdbtk_cmds.c => gdbtk-cmds.c} (100%) rename gdb/{gdbtk_hooks.c => gdbtk-hooks.c} (99%) diff --git a/gdb/.Sanitize b/gdb/.Sanitize index 8a1fe2f96c1..9b0c0af515c 100644 --- a/gdb/.Sanitize +++ b/gdb/.Sanitize @@ -15,7 +15,7 @@ Do-first: -gdbtk_files="ChangeLog-gdbtk README.GDBTK gdbtk.c gdbtcl2 gdb.rc gdbtool.ico" +gdbtk_files="ChangeLog-gdbtk README.GDBTK gdbtk.c gdbtk.h gdbtk-cmds.c gdbtk-hooks.c gdbtcl2 gdb.rc gdbtool.ico" if ( echo $* | grep lose\-gdbtk > /dev/null ) ; then lose_these_too="${gdbtk_files} ${lose_these_too}" diff --git a/gdb/ChangeLog-gdbtk b/gdb/ChangeLog-gdbtk index e84b7391c91..7210894846b 100644 --- a/gdb/ChangeLog-gdbtk +++ b/gdb/ChangeLog-gdbtk @@ -1,3 +1,9 @@ +Wed Jul 1 13:10:58 1998 Jim Ingham + + * Moved gdbtk_hooks.c & gdbtk_cmds.c to gdbtk-hooks.c & + gdbtk-cmds.c to comply with the gdb conventions. Changed the + configure & makefile to reflect the change... + Wed Jul 1 11:07:21 1998 Jim Ingham * gdbtk.c: removed all the commands and hooks from this file so diff --git a/gdb/Makefile.in b/gdb/Makefile.in index 3609c2d4aff..2da0019b956 100644 --- a/gdb/Makefile.in +++ b/gdb/Makefile.in @@ -1181,17 +1181,17 @@ gdbtk.o: gdbtk.c gdbtk.h $(defs_h) $(symtab_h) $(inferior_h) $(command_h) \ $(TCL_CFLAGS) $(TK_CFLAGS) $(X11_CFLAGS) \ $(srcdir)/gdbtk.c -DGDBTK_LIBRARY=\"$(datadir)/gdbtcl\" -gdbtk_cmds.o: gdbtk_cmds.c gdbtk.h $(defs_h) $(symtab_h) $(inferior_h) $(command_h) \ +gdbtk-cmds.o: gdbtk-cmds.c gdbtk.h $(defs_h) $(symtab_h) $(inferior_h) $(command_h) \ $(bfd_h) symfile.h objfiles.h target.h gdb_string.h $(tracepoint_h) $(CC) -c $(INTERNAL_CFLAGS) $(IDE_CFLAGS) $(ITCL_CFLAGS) $(TIX_CFLAGS) \ $(TCL_CFLAGS) $(TK_CFLAGS) $(X11_CFLAGS) \ - $(srcdir)/gdbtk_cmds.c -DGDBTK_LIBRARY=\"$(datadir)/gdbtcl\" + $(srcdir)/gdbtk-cmds.c -DGDBTK_LIBRARY=\"$(datadir)/gdbtcl\" -gdbtk_hooks.o: gdbtk_hooks.c gdbtk.h $(defs_h) $(symtab_h) $(inferior_h) $(command_h) \ +gdbtk-hooks.o: gdbtk-hooks.c gdbtk.h $(defs_h) $(symtab_h) $(inferior_h) $(command_h) \ $(bfd_h) symfile.h objfiles.h target.h gdb_string.h $(tracepoint_h) $(CC) -c $(INTERNAL_CFLAGS) $(IDE_CFLAGS) $(ITCL_CFLAGS) $(TIX_CFLAGS) \ $(TCL_CFLAGS) $(TK_CFLAGS) $(X11_CFLAGS) \ - $(srcdir)/gdbtk_hooks.c -DGDBTK_LIBRARY=\"$(datadir)/gdbtcl\" + $(srcdir)/gdbtk-hooks.c -DGDBTK_LIBRARY=\"$(datadir)/gdbtcl\" tracepoint.o: tracepoint.c $(defs_h) $(symtab_h) $(frame_h) $(tracepoint_h) \ $(gdbtypes_h) $(expression_h) $(gdbcmd_h) $(value_h) target.h \ diff --git a/gdb/configure b/gdb/configure index cc332885c87..a978e2ccab1 100755 --- a/gdb/configure +++ b/gdb/configure @@ -5213,7 +5213,7 @@ fi # were in LIBS then any link tests after this point would # try to include things like `$(LIBGUI)', which wouldn't work. GDBTKLIBS="${TCL_LIBS} ${TK_LIBS}" - CONFIG_OBS="${CONFIG_OBS} gdbtk.o gdbtk_cmds.o gdbtk_hooks.o" + CONFIG_OBS="${CONFIG_OBS} gdbtk.o gdbtk-cmds.o gdbtk-hooks.o" if test x$gdb_cv_os_cygwin32 = xyes; then WIN32LIBS="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32 -luser32" diff --git a/gdb/configure.in b/gdb/configure.in index d2ababdaebe..46af5243bd4 100644 --- a/gdb/configure.in +++ b/gdb/configure.in @@ -425,7 +425,7 @@ if test "${enable_gdbtk}" = "yes"; then # were in LIBS then any link tests after this point would # try to include things like `$(LIBGUI)', which wouldn't work. GDBTKLIBS="${TCL_LIBS} ${TK_LIBS}" - CONFIG_OBS="${CONFIG_OBS} gdbtk.o gdbtk_cmds.o gdbtk_hooks.o" + CONFIG_OBS="${CONFIG_OBS} gdbtk.o gdbtk-cmds.o gdbtk-hooks.o" if test x$gdb_cv_os_cygwin32 = xyes; then WIN32LIBS="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32 -luser32" diff --git a/gdb/gdbtk_cmds.c b/gdb/gdbtk-cmds.c similarity index 100% rename from gdb/gdbtk_cmds.c rename to gdb/gdbtk-cmds.c diff --git a/gdb/gdbtk_hooks.c b/gdb/gdbtk-hooks.c similarity index 99% rename from gdb/gdbtk_hooks.c rename to gdb/gdbtk-hooks.c index f87efe12f32..b76f2ff03c5 100644 --- a/gdb/gdbtk_hooks.c +++ b/gdb/gdbtk-hooks.c @@ -219,7 +219,7 @@ gdbtk_flush (stream) * The cases are: * * 1) result_ptr == NULL - This happens when some output comes from gdb which - * is not generated by a command in gdbtk_cmds, usually startup stuff. + * is not generated by a command in gdbtk-cmds, usually startup stuff. * In this case we just route the data to gdbtk_tcl_fputs. * 2) The GDBTK_TO_RESULT flag is set - The result is supposed to go to Tcl. * We place the data into the result_ptr, either as a string, diff --git a/gdb/gdbtk.h b/gdb/gdbtk.h index 0b5e59ff404..a98be7a28fa 100644 --- a/gdb/gdbtk.h +++ b/gdb/gdbtk.h @@ -68,7 +68,7 @@ extern int disassemble_from_exec; extern int running_now; /* These two control how the GUI behaves when tracing or loading - They are defined in gdbtk_cmds.c */ + They are defined in gdbtk-cmds.c */ extern int No_Update; extern int load_in_progress; -- 2.30.2