This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFA 2/3] Move filename extensions into language_defn
- From: Yao Qi <qiyaoltc at gmail dot com>
- To: Tom Tromey <tom at tromey dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Mon, 06 Jun 2016 14:23:07 +0100
- Subject: Re: [RFA 2/3] Move filename extensions into language_defn
- Authentication-results: sourceware.org; auth=none
- References: <1465051760-25840-1-git-send-email-tom at tromey dot com> <1465051760-25840-3-git-send-email-tom at tromey dot com>
Tom Tromey <tom@tromey.com> writes:
> This moves filename extensions from a function in symfile.c out to
> each language_defn. I think this is an improvement because it means
> less digging around when writing a new language port.
Patch is good to me. Note that we can improve it further by moving
language related stuff out of symfile.c to language.c. Then, we can
remove filename_language_table in symfile.c, and use array languages in
language.c as a replacement.
--
Yao (éå)