D-Programming-Language/dmd — pull request #526 by dawgfoto (2011-11-23 23:04:25+00:00)
Title: Ddwarf

- emit debug infos for dynamic arrays as
struct _Array_T { size_t length; T* ptr; }

- emit debug infos for delegates as
struct _Delegate{ void* ctxptr; Function* funcptr; }

- emit debug infos for aarrays as
struct _AArray_KeyT_ValueT { void* ptr; }

- remove D DWARF extensions

- remove dead code in toctype.c which changed the ctype to
structs, the backend could not handle them

- emit same debug infos for -gc as the info is common C

Specifically the _Array_T type will hook to gdb's D support.
That is with gdb >= 2010-04-29 this will add full dynamic
array printing support.

The function pointer in _Delegate is correctly typed and
will be resolved to the actual symbol name during debugging.

For AAs we can't really add debug infos as their implementation
is hidden in druntime.