3 Dec 2011 11:05
GDB 7.3.1 not working with GCC 4.6.2 on OS X 10.7.2
Hans Aberg <haberg-news <at> telia.com>
2011-12-03 10:05:56 GMT
2011-12-03 10:05:56 GMT
[I am not on this list, so please cc me.] GDB 7.3.1 on OS X 10.7.2 is not working. The link below suggests that in late October, it worked. Debugging some code as normal user, I get the first output below: first some complaints from BFD, and then a statement "Unable to find Mach task port" suggesting the problem has to do woth it not being codesigned. However, attempts with codesigning it did not help, the /usr/bin/gdb 6.3.50-20050815 (Apple version gdb-1708) that comes with Xcode 4.2 is not codesigned. When debugging as root (sudo), I get the second output below. The difference is that the Mach task port error has been replaced by Cannot insert breakpoint 1. Error accessing memory address 0x10000495b: Input/output error. So it seems broken anyway. The code was compiled using Apple clang version 3.0 (tags/Apple/clang-211.12). However, the errors are the same when compiled with gcc 4.6.2; the output is the same as normal user, and as root the same type of memory access error is output twice. Attempting to use the gdb 6.3.50 mentioned above gives the fourth output below, "Dwarf Error: Cannot find type of die", which I think it means it is too old to handle the debugging info of gcc 4.6.2. Hans http://groups.google.com/group/golang-nuts/browse_thread/thread/b2b9719f057c7673 ----- $ gdb test GNU gdb (GDB) 7.3.1 ...(Continue reading)
RSS Feed