From: Jim Ingham <jingham@apple.com>
To: Daniel Jacobowitz <drow@mvista.com>
Cc: gdb-patches@sources.redhat.com
Subject: Re: add set cp-abi command
Date: Fri, 15 Mar 2002 17:11:00 -0000 [thread overview]
Message-ID: <C98ACD96-387A-11D6-8354-000393540DDC@apple.com> (raw)
In-Reply-To: <20020314162627.A9503@nevyn.them.org>
Oops, I muffed one line in the patch I sent. The line:
static struct cp_abi_ops current_cp_abi;
should be:
static struct cp_abi_ops current_cp_abi = {"auto", NULL};
We do intend for auto to be the initial "current" abi, but we can't be
sure when this will be done (and currently the initializers for
gnu-v2-abi.c & gnu-v3-abi.c run BEFORE the cp-abi.c initializer). I
could fix this, but it is better to make the order not matter.
Jim
On Thursday, March 14, 2002, at 01:26 PM, Daniel Jacobowitz wrote:
> On Thu, Mar 14, 2002 at 01:14:09PM -0800, Jim Ingham wrote:
>> Thanks... I am not sure it is really worth the effort. It is not
>> really something we want to encourage folks to do, after all, and in
>> time the issue will fade away...
>
> Very true. And by definition, there should really only be one ABI...
> if it comes up as a bug again somewhere else, we can look into this.
>
>>>> ***************
>>>> *** 103,109 ****
>>>> --- 106,164 ----
>>>> int i;
>>>> for (i = 0; i < num_cp_abis; i++)
>>>> if (strcmp (cp_abis[i].shortname, short_name) == 0)
>>>> + {
>>>> current_cp_abi = cp_abis[i];
>>>> return 1;
>>>> + }
>>>> +
>>>> + return 0;
>>>> + }
>>>
>>> Indentation, of course.
>>
>> This is actually mailer mangling, it was right in the sources. $%#$#$$#
>> GUI mailers...
>
> Well, unless your mailer ate a "+" at the beginning of "return 1;", it
> wasn't right in the mail. That line is moving over. I'm sure you'll
> have it right when you commit it :)
>
>>> "currently selected C++ ABI", please.
>>
>> As you wish...
>
> Thanks. We may not have consistent grammar or spelling in our messages
> right now, but I'm still all over trying.
>
>>>> + ui_out_field_string (uiout, "cp-abi", current_cp_abi.shortname);
>>>> + ui_out_text (uiout, ".\n");
>>>> + }
>>>> +
>>>> + void
>>>> + show_cp_abis_cmd (char *args, int from_tty)
>>>> + {
>>>> + int i;
>>>> + ui_out_text (uiout, "The valid cplus abi's are:\n");
>>>
>>> "C++ ABIs" (or ABI's? ABIs, I think, if there isn't a precedent)
>>
>> We actually checked Strunk & White, and as of the mid 30's, this should
>> be ABIs...
>
> "ABIs" looks like what I remember, too, so let's use that.
>
>>> I believe 'show cp-abi' should show the available ABIs. That's more
>>> in
>>> keeping with existing code.
>>
>> How would you find out the current ABI, then? Probably better is to
>> chuck the show abis, and let "set cp-abi" (with no arguments) perform
>> this function. This is the way "set language" works, so it has
>> precedent. I was sure that there was another command that used the
>> singular lists current, plural lists all, but I can't find it so
>> maybe I
>> was just out of my mind...
>
> Shall we agree to mimic "set language", then?
>
> [For anyone following along:
>
> (gdb) set language
> The currently understood settings are:
>
> local or auto Automatic setting based on source file
> c Use the C language
> c++ Use the C++ language
> asm Use the Asm language
> chill Use the Chill language
> fortran Use the Fortran language
> java Use the Java language
> modula-2 Use the Modula-2 language
> pascal Use the Pascal language
> scheme Use the Scheme language
> (gdb) show language
> The current source language is "auto; currently c".
>
> ]
>
> --
> Daniel Jacobowitz Carnegie Mellon University
> MontaVista Software Debian GNU/Linux Developer
>
--
Jim Ingham jingham@apple.com
Developer Tools - gdb
Apple Computer
next prev parent reply other threads:[~2002-03-16 1:11 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-03-13 10:56 Jim Ingham
2002-03-13 12:11 ` Daniel Jacobowitz
2002-03-14 13:14 ` Jim Ingham
2002-03-14 13:26 ` Daniel Jacobowitz
2002-03-15 15:53 ` Jim Ingham
2002-03-15 19:41 ` Daniel Jacobowitz
2002-03-18 12:01 ` Jim Ingham
2002-03-20 15:19 ` Daniel Jacobowitz
2002-03-20 19:02 ` Jim Ingham
2002-03-22 10:34 ` Daniel Jacobowitz
2002-03-22 11:04 ` Andrew Cagney
2002-03-22 11:09 ` Daniel Jacobowitz
2002-03-22 11:29 ` Jim Ingham
2002-04-09 17:27 ` Jim Ingham
2002-04-09 17:54 ` Daniel Jacobowitz
2002-04-10 11:10 ` Jim Ingham
2002-04-10 11:58 ` Daniel Jacobowitz
2002-04-09 22:33 ` Eli Zaretskii
2002-04-10 11:14 ` Jim Ingham
2002-04-11 12:25 ` Eli Zaretskii
2002-03-15 17:11 ` Jim Ingham [this message]
2002-03-13 12:11 ` Eli Zaretskii
2002-03-14 15:29 ` Andrew Cagney
2002-03-15 10:33 ` Jim Ingham
2002-03-15 17:29 ` Andrew Cagney
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=C98ACD96-387A-11D6-8354-000393540DDC@apple.com \
--to=jingham@apple.com \
--cc=drow@mvista.com \
--cc=gdb-patches@sources.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