Patch to gdb-5.2 to enable ngpt-2.0.2 and ngpt-2.0.3
debugging.
To build:
- Load a clean gdb-5.2 source tree
- Apply the patch with:
patch -p1 < patch-gdb-5.2
It should apply cleanly.
- Build gdb as normal and install
- If your version of ngpt-2.0.2+ doesn't use the standard
install paths for libthread_db.so.1 (/usr/lib),
edit /usr/bin/gdb-ngpt and fix the GDB_LIBTHREAD_DB
pathname for your system.
To run the new gdb with ngpt-2.0.1 pre's:
- Build and install ngpt-2.0.2
- Either:
exportGDB_LIBTHREAD_DB=path
where path is the pathname to libthread_db.so.1 for
NGPT. This should be /usr/lib/libthread_db.so.1 after
the ngpt-2.0.2+ install. Use gdb as normal from this
point.
-- or --
Use gdb-ngpt, which is a script file to specify the
location of the ngpt libthread_db.so.1 runtime.
Known problems:
- Occasionally I have seen cases where an application
is live but the 'info threads' command returns 'Generic
error', usually after one of the threads terminates. This
is in debug now.
Please report any issues that you see to me ASAP as
we would like to close on a stable gdb-5.2 version for
ngpt-2.0.2+ ASAP. If possible a test case and script for
reproducing the bug would be best.
(david.p.howell@intel.com)
Patch file, install per Description