This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
RE: [PATCH] Add d_main_name to dlang.c
- From: "Pierre Muller" <pierre dot muller at ics-cnrs dot unistra dot fr>
- To: "'Tom Tromey'" <tromey at redhat dot com>, "'Iain Buclaw'" <ibuclaw at gdcproject dot org>
- Cc: <gdb-patches at sourceware dot org>
- Date: Tue, 19 Nov 2013 18:58:54 -0200
- Subject: RE: [PATCH] Add d_main_name to dlang.c
- Authentication-results: sourceware.org; auth=none
- References: <CABOHX+fBVoYBcaUS95pT-19jeuWiN21SiWWGUC5Y6O-A-3Pj_g at mail dot gmail dot com> <87mwl0mlsa dot fsf at fleche dot redhat dot com> <CABOHX+f2y2J3RFScZ2AjLgmamO4DEdzErW4B8ZbjiUYMWQkAfA at mail dot gmail dot com> <874n78mge2 dot fsf at fleche dot redhat dot com>
> -----Message d'origine-----
> De : gdb-patches-owner@sourceware.org [mailto:gdb-patches-
> owner@sourceware.org] De la part de Tom Tromey
> Envoyé : mardi 19 novembre 2013 15:49
> À : Iain Buclaw
> Cc : gdb-patches@sourceware.org
> Objet : Re: [PATCH] Add d_main_name to dlang.c
>
> >>>>> "Iain" == Iain Buclaw <ibuclaw@gdcproject.org> writes:
>
> Iain> By the way, it is more preferable to use the mangled name of the
> D
> Iain> main function (_Dmain), or the pretty debug de-mangled name?
> Both
> Iain> work just as well in achieving the job.
>
> I don't think it matters.
I thought that in general, using the mangled name
would allow to find main even if you do not generate
any debug information, as long as you do not remove the
assembler symbols from the executable.
This seems like a valid reason to prefer mangled name
over demangled, no?
Pierre