|
Download and Installation
Installing from Binary Packages
Debian and RedHat binary packages are available in the download
section. The binary packages install gdb-cris under /usr/local/gdb-cris
so as not to conflict with your host debugger.
To install on a Debian system:
dpkg --install <filename>.deb
To install on a RedHat system:
rpm --install <filename>.rpm
After installing, add /usr/local/gdb-cris to your PATH
variable.
Installing from Source
Source tar balls can be found in the download
section.
First, you need to unpack the source tar ball someplace
safe, like this:
tar zxvf <filename>.tar.gz
Now, make a separate
build directory at the same level as the source directory:
mkdir gdb-cris-linux
Now your directory structure should look like this:
<source dir>/
gdb-cris-linux/
Then,
cd gdb-cris-linux
../<source dir>/configure --target=cris && make
The path to
the resulting gdb executable is gdb-cris-linux/gdb/gdb. The
benefit of building gdb in a separate directory is that you can build several debuggers from the same source code (a
cross-debugger and a native debugger, for example). Note that
you probably don't want to 'make install' when building
gdb-cris since this will replace whatever gdb (probably
native) you already have installed on your system.
Instead, add a link to the gdb executable so that gdb-cris is
reachable via your PATH variable.
|