If you have previously installed 6.8 or other versions, please delete the following directories first
Rm-rf/usr/local/insight
Rm-rf/usr/share/tcltk
If you have previously set an environment variable, please also delete
Unset tcl_library
Unset itcl_library
Install Insight,ubuntu 10 can not apt-get install installation, only download the source code compiled installation,
: ftp://sourceware.org/pub/insight/releases
To do this, follow these steps:
Ubuntu can be used directly
sudo apt-get Install Insight
1) Install x Interface Development Library sudo apt-get install Libx11-dev (Baoqi in Libgd2-xpm-dev)
2) Install and install the termcap Library (gdb requires) sudo apt-get install Libncurses5-dev
3) Compile the source code
./configure --prefix=/usr/local/insight (the installation path must be specified, or there will be many errors that could not be found for the library)
Make
sudo make install
During compilation, if the following error occurs,
- elf32-arm.c:in function ' Record_vfp11_erratum_veneer ':
- Elf32-arm.c:2980:7: error:variable ' ErrCount ' set but not used [-werror=unused-but-set-variable]
- elf32-arm.c:in function ' Bfd_elf32_arm_vfp11_erratum_scan ':
- Elf32-arm.c:3904:23:error:variable ' ErrCount ' set but not used [-werror=unused-but-set-variable]
- elf32-arm.c:in function ' elf32_arm_final_link_relocate ':
- Elf32-arm.c:4681:33:error:variable ' sym_hashes ' set but not used [-werror=unused-but-set-variable]
- Elf32-arm.c:4680:33:error:variable ' SYMTAB_HDR ' set but not used [-werror=unused-but-set-variable]
- elf32-arm.c:in function ' elf32_arm_relocate_section ':
- Elf32-arm.c:6586:16:error:variable ' warned ' set but not used [-werror=unused-but-set-variable]
- elf32-arm.c:in function ' Elf32_arm_check_relocs ':
- Elf32-arm.c:7664:12:error:variable ' local_got_offsets ' set but not used [-werror=unused-but-set-variable]
- elf32-arm.c:in function ' Elf32_arm_ouput_plt_map_sym ':
- Elf32-arm.c:9753:37:error:variable ' Htab ' set but not used [-werror=unused-but-set-variable]
./configure --prefix=/usr/local/insight --disable-werror can be resolved
Insight Instructions for use
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 has been able to perform most of GDB's powerful functions.
The purpose of writing this entry is not to really teach you how to use this software, because this software has been quite perfect, do not need to introduce can be easy to get started, mainly for those who blindly search the Internet under Linux c,c++ development with what debugger good people to provide a hint! Lest they go fruitless, or even see GdB's single-board debugging interface to flinch, even from the people who left Linux. I can be very responsible, compared to XXGDB,DDD and other GDB-based GUI debugger, Insight is absolutely the best, most easy to use.
Of course, developing c,c++ applications under Linux does not have to be debugged with GDB, and with the advent of Java today, many Java Ides offer c,c++ development capabilities, known as Eclipse (the IBM-sponsored Java IDE), NetBeans (Sun's Java official IDE), of course, when installing Eclipse and NetBeans you should choose the C/D + + development module.
But for those who like to use Emacs for a one-stop development, but also a great criticism of GDB, Insight is definitely your best choice, and I naturally is such a person:)
If you usually use the GDB debugger, then see the following screen may be excited, first of all a few pictures.
This is a separate interface between the source code and the assembly code.
A more complete function diagram
start
Well, the installation is over, want to use insight, very simple, directly into the command line insight can be, after entering insight, you can select the program name to debug under his File menu, or
Insight./foo
By following the method of the program name, you can directly debug the given program.
4) Since Insight 6.8-1 is looking for the TCKTK library in a relative path, it must be run in full-path mode, and you can build a script under/usr/local/bin:
Vim/usr/local/bin/insight, input
/usr/local/insight/bin/insight $
chmod +x Insight
Debug program
Insight Exefile