From: "Pierre Muller" <muller@ics.u-strasbg.fr>
To: "'Eli Zaretskii'" <eliz@gnu.org>,
"'Jonas Maebe'" <jonas@freepascal.org>
Cc: <gdb-patches@sourceware.org>
Subject: RE: [PATCH] Fix PR pascal/2283
Date: Wed, 26 Sep 2007 14:26:00 -0000 [thread overview]
Message-ID: <003801c80049$238c29a0$6aa47ce0$@u-strasbg.fr> (raw)
In-Reply-To: <utzph5xl6.fsf@gnu.org>
I think that the idea is that these functions
are exported and might be used by
other similar languages, but that this tiny
part is really specific and should not be
used in the case it is called by some
other language code.
c_val_print is used in several other
language specific XXX-lang.c files.
If pascal_val_print gets used
one day by some other language, the
behavior would be different for pascal and for XXX language.
But I agree that this is all pretty
hypothetical for now.
Should we remove it altogether?
It seems that it is the only location
inside pascal specific code
where such a test is performed.
There are three references to
another language (language_cplus)
inside p-valprint, but this is because
pascal code has no demangler and the C++
demangler is used there.
Pierre
> -----Original Message-----
> From: gdb-patches-owner@sourceware.org [mailto:gdb-patches-
> owner@sourceware.org] On Behalf Of Eli Zaretskii
> Sent: Wednesday, September 26, 2007 4:08 PM
> To: Jonas Maebe
> Cc: muller@ics.u-strasbg.fr; gdb-patches@sourceware.org
> Subject: Re: [PATCH] Fix PR pascal/2283
>
> > Cc: "Pierre Muller" <muller@ics.u-strasbg.fr>,
> > gdb-patches@sourceware.org
> > From: Jonas Maebe <jonas@freepascal.org>
> > Date: Wed, 26 Sep 2007 16:03:13 +0200
> >
> > In fact, I have no idea why that code (in both the Pascal and
> > Modula-2 cases) even checks the current language, as those routines
> > are obviously language-specific.
>
> Exactly! If this code is Pascal-specific, you shouldn't be checking
> the language at all.
prev parent reply other threads:[~2007-09-26 14:26 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-09-26 12:25 Pierre Muller
2007-09-26 13:49 ` Eli Zaretskii
2007-09-26 14:02 ` Jonas Maebe
2007-09-26 14:08 ` Eli Zaretskii
2007-09-26 14:12 ` Jonas Maebe
2007-09-26 14:26 ` Pierre Muller [this message]
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='003801c80049$238c29a0$6aa47ce0$@u-strasbg.fr' \
--to=muller@ics.u-strasbg.fr \
--cc=eliz@gnu.org \
--cc=gdb-patches@sourceware.org \
--cc=jonas@freepascal.org \
/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