Until the release of the NetBeans C/C++ Development pack 5.5, it has
never been a requirement for programs compiled with Sun compilers to
be debuggable with gdb. Because of this, there had been only minimal
testing of Sun Studio compiled programs and gdb.
We've done very preliminary testing of Sun Studio compiled applications
with gdb and have included our results below. The current release of
the Sun compilers is Sun Studio 11. It is a Solaris only release. Sun
has recently provided an early access release called Sun Studio Express
2, with preliminary Linux compilers. All Sun Studio and Sun Studio Express
releases are downloadable for free from the Sun Studio web page.
- Linux 32-bit, Sun Studio Express 2:
- gdb 6.1: "does not work" (gdb does not report full filename)
-
gdb 6.4: "almost works" (function breakpoint does not work
properly - it is set 3 lines below the beginning of function)
- Linux 64-bit, Sun Studio Express 2:
- gdb 6.1: does not work
- gdb 6.4: does not work
- gdb 6.5: does not work
- Solaris 10 x86 32-bit, Sun Studio 11:
- gdb 6.1: "does not work" (gdb does not report full filename)
-
gdb 6.4: "almost works" (function breakpoint does not work
properly- it is set 3 lines below the beginning of function)
- gdb 6.5: No Solaris port was found
- Solaris 10 x64 64-bit, Sun Studio 11:
Not tested yet (don't have a 64-bit gdb)
- Solaris 10 Sparc 32-bit, Sun Studio 11:
- gdb 6.1: "does not work" (gdb does not report full filename)
- gdb 6.4: No Solaris port was found
- gdb 6.5: No Solaris port was found
- Solaris 10 Sparc 64-bit, Sun Studio 11:
Not tested yet (don't have a 64-bit gdb)
So, it looks like gdb 6.4 on 32-bit Linux and Solaris x86 can be used
as a workaround.