diff options
author | Stu Grossman <grossman@cygnus> | 1994-11-02 00:50:12 +0000 |
---|---|---|
committer | Stu Grossman <grossman@cygnus> | 1994-11-02 00:50:12 +0000 |
commit | cd2df226a74a368aa791b797888cfbc6cd7f558f (patch) | |
tree | fb6957ba93b61bb11497d5151e374ada3287a0a8 /gdb/gdbtk.c | |
parent | da15a93ea12380a05a34c15377e35d3415137375 (diff) | |
download | gdb-cd2df226a74a368aa791b797888cfbc6cd7f558f.zip gdb-cd2df226a74a368aa791b797888cfbc6cd7f558f.tar.gz gdb-cd2df226a74a368aa791b797888cfbc6cd7f558f.tar.bz2 |
* Makefile.in: Use $(objdir)/tcl and $(objdir)/tk if they are
available.
* configure.in (ENABLE_CLIBS): Use $(TCL) and $(TK) instead of
-ltcl and -ltk.
* gdbtk.c: Get rid of lots of unnecessary #includes.
* (gdbtk_init): Use ConnectionNumber macro instead of referencing
Display structure directly.
* gdbtk.tcl: Change exit button to quit button (makes shebs
happy).
Diffstat (limited to 'gdb/gdbtk.c')
-rw-r--r-- | gdb/gdbtk.c | 20 |
1 files changed, 5 insertions, 15 deletions
diff --git a/gdb/gdbtk.c b/gdb/gdbtk.c index e93471e..eefac93 100644 --- a/gdb/gdbtk.c +++ b/gdb/gdbtk.c @@ -25,20 +25,11 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ #include "symfile.h" #include "objfiles.h" #include "target.h" -#include <sys/types.h> -#include <sys/time.h> -#include <sys/param.h> -#include <varargs.h> -#include <sys/stat.h> -#include <fcntl.h> -#include <sys/filio.h> -#include <setjmp.h> -#include <signal.h> -#include <sys/errno.h> -#include <termios.h> -#include <string.h> #include <tcl.h> #include <tk.h> +#include <varargs.h> +#include <signal.h> +#include <fcntl.h> #include <unistd.h> /* Non-zero means that we're doing the gdbtk interface. */ @@ -514,10 +505,9 @@ gdbtk_init () if (Tcl_EvalFile (interp, gdbtk_filename) != TCL_OK) error ("Failure reading %s: %s", gdbtk_filename, interp->result); - /* XXX - Get the file descriptor for the network socket. This is not Kosher - as it involves looking at data private to Xlib. */ + /* Get the file descriptor for the X server */ - x_fd = Tk_Display (mainWindow) -> fd; + x_fd = ConnectionNumber (Tk_Display (mainWindow)); /* Setup for I/O interrupts */ |