02-18-04 12:33 AM
"¤£À´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
--
[ Post a follow-up to this message ]
|