GDB is a bug debugging tool Http://ftp.gnu.org/gnu/gdb/ The installed platform is ppc64 ppc64 ppc64 GNU/Linux, and the system is Red Hat Enterprise Linux Server Release 5.1 (tikanga ); The installation was normal before, but after use, it was found that the core file could not be identified. After reading README, it was found that GDB should first identify the machine. Decompress gdb-6.5.tar.gz, CD gdb-6.5, first we recommend that you view the README content Readme for GNU development tools This directory contains varous GNU compilers, schedulers, linkers, Debuggers, Etc., plus their support routines, definitions, and documentation. If you are inserting ing this as part of a GDB release, see the file GDB/readme. If with a binutils release, see binutils/readme; if with a libg ++ release, See libg ++/readme, etc. That'll give you info about this Package -- supported targets, how to use it, how to report bugs, etc. It is now possible to automatically configure and build a variety Tools with one command. To build all of the tools contained herein, Run the ''configure ''script here, e.g .: ./Configure Make To install them (by default in/usr/local/bin,/usr/local/lib, etc ), Then do: Make install (If the configure script can't determine your type of computer, give it The name as an argument, for instance ''./configure sun4''. You can Use the script ''config. sub'' to test whether a name is recognized; if It is, config. sub translates it to a triplet specifying CPU, vendor, And OS .) If you have more than one compiler on your system, it is often best Explicitly set CC in the environment before running configure, and Also set CC when running make. For example (assuming sh/bash/KSh ): Cc = GCC./configure Make A similar example using CSH: Setenv CC gcc ./Configure Make Much of the code and documentation enclosed is copyright The Free Software Foundation, Inc. See the file copying or Copying. Lib in the various directories, for a description of GNU General Public License terms under which you can copy the files. Reporting bugs: Again, see GDB/readme, binutils/readme, Etc., for info On where and how to report problems. Check the content of GDB/configure. TGT and find the target option for your machine, such as the CPU and System ID. My server is ppc64 and redhatlinux is installed. Therefore, it corresponds to powerpc64-*-Linux *) gdb_target = Linux. Now make preparations before compilation and go back to the gdb-6.5 directory Run the./config. sub powerpc64-redhat-linux. If everything works, the following results will be returned: Powerpc64-redhat-linux-gnu Now you can perform the installation steps. First, compile ./Configure ppc64-redhat-linux However, the officially recommended compiler is GCC, so the above command is changed to this HTTP = GCC./configure ppc64-redhat-linux Next, make and make install. If everything is normal, the installation of GDB is complete. GDB usage and command GDB parameter Core File This is the case for my programs. GDB owccm core. XXXXX |