Installing GDB Insight (6.8.1)

Source: Internet
Author: User
Tags netbeans gdb debugger

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,

  1. elf32-arm.c:in function ' Record_vfp11_erratum_veneer ':
  2. Elf32-arm.c:2980:7: error:variable ' ErrCount ' set but not used [-werror=unused-but-set-variable]
  3. elf32-arm.c:in function ' Bfd_elf32_arm_vfp11_erratum_scan ':
  4. Elf32-arm.c:3904:23:error:variable ' ErrCount ' set but not used [-werror=unused-but-set-variable]
  5. elf32-arm.c:in function ' elf32_arm_final_link_relocate ':
  6. Elf32-arm.c:4681:33:error:variable ' sym_hashes ' set but not used [-werror=unused-but-set-variable]
  7. Elf32-arm.c:4680:33:error:variable ' SYMTAB_HDR ' set but not used [-werror=unused-but-set-variable]
  8. elf32-arm.c:in function ' elf32_arm_relocate_section ':
  9. Elf32-arm.c:6586:16:error:variable ' warned ' set but not used [-werror=unused-but-set-variable]
  10. elf32-arm.c:in function ' Elf32_arm_check_relocs ':
  11. Elf32-arm.c:7664:12:error:variable ' local_got_offsets ' set but not used [-werror=unused-but-set-variable]
  12. elf32-arm.c:in function ' Elf32_arm_ouput_plt_map_sym ':
  13. 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


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.