From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1851 invoked by alias); 15 Mar 2002 18:33:22 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 1684 invoked from network); 15 Mar 2002 18:33:09 -0000 Received: from unknown (HELO mail-out1.apple.com) (17.254.0.52) by sources.redhat.com with SMTP; 15 Mar 2002 18:33:09 -0000 Received: from mailgate1.apple.com (A17-128-100-225.apple.com [17.128.100.225]) by mail-out1.apple.com (8.11.3/8.11.3) with ESMTP id g2FIX8Q13565 for ; Fri, 15 Mar 2002 10:33:08 -0800 (PST) Received: from scv1.apple.com (scv1.apple.com) by mailgate1.apple.com (Content Technologies SMTPRS 4.2.1) with ESMTP id ; Fri, 15 Mar 2002 10:32:44 -0800 Received: from inghji (inghji.apple.com [17.202.40.220]) by scv1.apple.com (8.11.3/8.11.3) with ESMTP id g2FIX7v21788; Fri, 15 Mar 2002 10:33:07 -0800 (PST) Date: Fri, 15 Mar 2002 10:33:00 -0000 Subject: Re: add set cp-abi command Content-Type: text/plain; charset=US-ASCII; format=flowed Mime-Version: 1.0 (Apple Message framework v481) Cc: gdb-patches@sources.redhat.com To: Andrew Cagney From: Jim Ingham In-Reply-To: <3C91267F.4050803@cygnus.com> Message-Id: <186A1078-3843-11D6-8354-000393540DDC@apple.com> Content-Transfer-Encoding: 7bit X-Mailer: Apple Mail (2.481) X-SW-Source: 2002-03/txt/msg00244.txt.bz2 Andrew, No, I can't do it this way, because the cp-abi.c file where the command is defined doesn't know what all the available abi's are. They are added dynamically by the other *-abi.c files. The same is true with the set language command in language.c, for example... I would have to add a special completer function to get this to work, and I must admit that is a little beyond the merits of this command, which is, after all, only needed in emergencies, rather than being a workaday type command. Jim On Thursday, March 14, 2002, at 02:38 PM, Andrew Cagney wrote: > Jim, an aside. The code should use: > > extern struct cmd_list_element *add_set_enum_cmd (); > > so that: > > (gdb) set cp-abi > > works. > > Andrew > > -- Jim Ingham jingham@apple.com Developer Tools - gdb Apple Computer