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
#0  0x0000f0b8 in 
_D3std6format8doFormatFDFwZvAC8TypeInfoPaPvZv9formatArgFaZv ()
#1  0x0000e038 in _D3std6format8doFormatFDFwZvAC8TypeInfoPaPvZv ()
#2  0x0000d1f8 in 
_D3std5stdio7writefxFPS3std1c5stdio6_iobufAC8TypeInfoPaiZv ()
#3  0x0000d304 in _D3std5stdio8writeflnFYv ()
#4  0x00003108 in _D5crash4testFC6ObjectZv (o= 0x0) at crash.d:7
#5  0x00003140 in _Dmain (args={length = 1, ptr = 0x3003c0}) at crash.d:12
#6  0x0001a3a8 in _d_run_main ()

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
#0  0x0000f0b8 in 
_D3std6format8doFormatFDFwZvAC8TypeInfoPaPvZv9formatArgFaZv ()
#1  0x0000e038 in _D3std6format8doFormatFDFwZvAC8TypeInfoPaPvZv ()
#2  0x0000d1f8 in std.stdio.writefx(std.c.stdio._iobuf*, TypeInfo[], 
char*, int) ()
#3  0x0000d304 in std.stdio.writefln(unknown, void) ()
#4  0x00003108 in crash.test(Object) (o= 0x0) at crash.d:7
#5  0x00003140 in D main (args={length = 1, ptr = 0x3003c0}) at crash.d:12
#6  0x0001a3a8 in _d_run_main ()


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

import std.stdio;


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

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

   return 0;
}
Jan 19 2006