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: Tom Tromey <tromey at redhat dot com>
- To: "Pierre Muller" <pierre dot muller at ics-cnrs dot unistra dot fr>
- Cc: "'Iain Buclaw'" <ibuclaw at gdcproject dot org>, <gdb-patches at sourceware dot org>
- Date: Tue, 19 Nov 2013 14:03:00 -0700
- 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> <39451 dot 43601527$1384894769 at news dot gmane dot org>
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