Unix Programming - About GDB debuger

This is Interesting: Free IT Magazines  
Home > Archive > Unix Programming > February 2004 > About GDB debuger





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author About GDB debuger
不懂unix的網管

2004-02-17, 7:33 pm

Where can get the GDB debug? And how to install GDB debuger in the Solaris.
Thanks.


Victor Wagner

2004-02-17, 7:33 pm

"不懂unix的網管" <lfb@vlsi.el.cycu.edu.tw> wrote:
: Where can get the GDB debug? And how to install GDB debuger in the Solaris.
: Thanks.

There are two ways to do it:

1. Get ready-to-use package for your version of Solaris from
www.sunfreeware.com.

Download gdb-<version>-sol<os-version>-<arch>-local.gz

gunzip it and run pkgadd -d gdb-<version>-sol<os-version>-<arch>-local

2. Get the latest version of source distribution from
http://www.gnu.org/directory/devel/debug/gdb.html

compile and install as described in the INSTALL file in the source
archive.

Note, that if you want to debug 64-bit sparcv9 executables, you need
to build GDB from sources and configure it special way. Pretend that
you are cross-compiling on 32-bit sparc for 64-bit sparc target.

Typically, gdb doesn't need any files besides gdb executable itself.
So I have two gdb executables - one from sunfreware package and other
I compiled myself for 64-bit target, and installed as
/usr/local/bin/gdb64


--
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com