This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: add set cp-abi command


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 <tab>
>
> works.
>
> Andrew
>
>
--
Jim Ingham                                   jingham@apple.com
Developer Tools - gdb
Apple Computer


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]