www.digitalmars.com         C & C++   DMDScript  

D.gnu - Mac GDB progress

Making some progress in updating / providing
the patched GDB for Mac OS X (Tiger for now).

http://svn.dsource.org/projects/gdb-patches/downloads/gdb6.3/
http://www.opensource.apple.com/darwinsource/DevToolsNov2005/gdb-434/

Will post the final patch to gdcmac, as usual.
(need to backport it to GDB 5.3, for Panther)

--anders


BEFORE: (system gdb)

Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_PROTECTION_FAILURE at address: 0x00000000
0x0000f0b8 in _D3std6format8doFormatFDFwZvAC8TypeInfoPaPvZv9formatArgFaZv ()
(gdb) bt

_D3std6format8doFormatFDFwZvAC8TypeInfoPaPvZv9formatArgFaZv ()


_D3std5stdio7writefxFPS3std1c5stdio6_iobufAC8TypeInfoPaiZv ()





AFTER: (patched gdb)

Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_PROTECTION_FAILURE at address: 0x00000000
0x0000f0b8 in _D3std6format8doFormatFDFwZvAC8TypeInfoPaPvZv9formatArgFaZv ()
(gdb) bt

_D3std6format8doFormatFDFwZvAC8TypeInfoPaPvZv9formatArgFaZv ()


char*, int) ()






crash.d:
========

import std.stdio;


void test(Object o)
{
   writefln(o);
}

int main(char[][] args)
{
   test(null);

   return 0;
}
Jan 19 2006