[PATCH 3/5] Add d_main_name to dlang.c

Iain Buclaw ibuclaw@gdcproject.org
Thu Jan 9 13:09:00 GMT 2014


The main program in D is _Dmain (demangled as 'D main') not C 'main'.
So the logical entry point of the program should be set accordingly.

2014-01-09  Iain Buclaw  <ibuclaw@gdcproject.org>

        * d-lang.h (d_main_name): Add declaration.
        * d-lang.c (d_main_name): New function.
        * symtab.c (find_main_name): Add call to d_main_name.

---
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dlang-p3.patch
Type: text/x-patch
Size: 1859 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/gdb-patches/attachments/20140109/df88005a/attachment.bin>


More information about the Gdb-patches mailing list