Insight Home page:the GDB GUI.
Insight is a graphical user interface of GDB written by TCL/TK, written by engineers in Red Hat and Cygnus. Red Hat generously donated it to the public and even provided the manpower to continue to improve its functionality. The Insight project, which began in 1994, has matured so far, and it is well-suited to the most powerful features of GDB.
:
Ftp://sourceware.org/pub/insight/releases |
Unzip:
TAR-JVXF insight-6.6a.tar.bz2 |
There are two files that need to be modified: Tk/generic/tk.h and TK/GENERIC/TKBIND.C.
Will (line 653)
#define Virtualevent (lastevent)
#define ACTIVATENOTIFY (lastevent + 1)
#define Deactivatenotify (lastevent + 2)
#define Mousewheelevent (lastevent + 3)
#define Tk_lastevent (lastevent + 4)
Change to :
#define Virtualevent (mappingnotify)
#define ACTIVATENOTIFY (mappingnotify + 1)
#define DEACTIVATENOTIFY ( Mappingnotify + 2)
#define Mousewheelevent (mappingnotify + 3)
#define Tk_lastevent (mappingnotify + 4)
and the subsequent # Define Tk_lastevent (Lastevent + 4) Delete (near line 661)
Tk.h: /* *--------------------------------------------------------------------------- * * Extensions to the X event set * *--------------------------------------------------------------------------- */ #define Virtualevent (mappingnotify) #define ACTIVATENOTIFY (mappingnotify + 1) #define DEACTIVATENOTIFY (mappingnotify + 2) #define Mousewheelevent (mappingnotify + 3) #define Tk_lastevent (mappingnotify + 4) #define MOUSEWHEELMASK (1L << 28) #define ACTIVATEMASK (1L << 29) #define VIRTUALEVENTMASK (1L << 30)
|
Added between line 586 and line 587
#ifdef genericevent
0,
#endif
/* Selectionnotify */0, /* colormapnotify */COLORMAP, /* Clientmessage */0, #ifdef genericevent 0, #endif /* Mappingnotify */0, /* virtualevent */VIRTUAL, |
./configure--enable-werror=no Make-j8 |
GDB debugging and the use of GUI tools insight