[PATCH] Add d_main_name to dlang.c

Iain Buclaw ibuclaw@gdcproject.org
Fri Jan 3 18:18:00 GMT 2014


On 19 November 2013 21:03, Tom Tromey <tromey@redhat.com> wrote:
> Pierre>   I thought that in general, using the mangled name
> Pierre> would allow to find main even if you do not generate
> Pierre> any debug information, as long as you do not remove the
> Pierre> assembler symbols from the executable.
> Pierre>   This seems like a valid reason to prefer mangled name
> Pierre> over demangled, no?
>
> The demangled name ends up in the minimal symbol table as well.
> It's convoluted but it ends up in symbol_find_demangled_name, which has
> a case for language_d.
>
> Tom

Hi Tom,

(I've just realised that I my last reply was not cc'd into gdb-patches)

The assignments should now be processed.

Since November, I've made a few more changes that are reflected in
this new patch.

I would add some more tests for D, but I feel that should write a
complete parser for D expressions first (d-exp.y) - this will be done
at a later date.

Regards
Iain.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dsupport.patch
Type: text/x-diff
Size: 55263 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/gdb-patches/attachments/20140103/f92b5844/attachment.bin>


More information about the Gdb-patches mailing list