From: "Pierre Muller" <pierre.muller@ics-cnrs.unistra.fr>
To: "'sami wagiaalla'" <swagiaal@redhat.com>, <gdb-patches@sourceware.org>
Subject: RE: [patch] create and use symbol_set_language
Date: Wed, 04 Aug 2010 07:27:00 -0000 [thread overview]
Message-ID: <000c01cb33a6$89450260$9bcf0720$@muller@ics-cnrs.unistra.fr> (raw)
In-Reply-To: <4C582E25.1030505@redhat.com>
Hi Sami,
I just looked at your patch, which seems
quite straightforward.
Nevertheless, it seems that
it contains a change that is not commented:
@@ -393,13 +393,11 @@ symbol_get_demangled_name (const struct
general_symbol_info *gsymbol)
/* Initialize the language dependent portion of a symbol
depending upon the language for the symbol. */
void
-symbol_init_language_specific (struct general_symbol_info *gsymbol,
- enum language language)
+symbol_set_language (struct general_symbol_info *gsymbol,
+ enum language language)
{
-
gsymbol->language = language;
- if (gsymbol->language == language_cplus
- || gsymbol->language == language_d
+ if (gsymbol->language == language_d
|| gsymbol->language == language_java
|| gsymbol->language == language_objc
|| gsymbol->language == language_fortran)
The removal of the 'gsymbol->language == language_cplus'
condition seems to be outside of the scope of the patch you
describe, which seems otherwise quite straightforward.
Could you please comment on the reason of that specific change?
Is it really part of that patch or shouldn't it be submitted
separately? I must confess that I didn't even try to
look at the source code after the 'if', but just reacted quickly
on something that seem 'off topic' as compared to
your patch description.
Pierre
> -----Message d'origine-----
> De : gdb-patches-owner@sourceware.org [mailto:gdb-patches-
> owner@sourceware.org] De la part de sami wagiaalla
> Envoyé : Tuesday, August 03, 2010 4:57 PM
> À : gdb-patches@sourceware.org
> Objet : [patch] create and use symbol_set_language
>
> This patch renames SYMBOL_INIT_LANGUAGE_SPECIFIC to SYMBOL_SET_LANGUAGE
> and symbol_init_language_specific to symbol_set_language, and uses them
> everywhere the language of a symbol is set. Usually through
> SYMBOL_LANGUAGE (sym) = language
>
> This was tested by running the test suit on F13 with gcc 4.4.4 on x8664
> no regressions.
>
> Let me know what you think.
>
>
> Sami
next prev parent reply other threads:[~2010-08-04 7:27 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-08-03 14:56 sami wagiaalla
2010-08-04 7:27 ` Pierre Muller [this message]
2010-08-05 15:36 ` sami wagiaalla
[not found] ` <6308127460174723176@unknownmsgid>
2010-08-04 21:56 ` Doug Evans
2010-08-04 22:01 ` Doug Evans
2010-08-05 19:05 ` sami wagiaalla
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='000c01cb33a6$89450260$9bcf0720$@muller@ics-cnrs.unistra.fr' \
--to=pierre.muller@ics-cnrs.unistra.fr \
--cc=gdb-patches@sourceware.org \
--cc=swagiaal@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox