GDB debugging and the use of GUI tools insight

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.