From: Andrew Cagney Date: Thu, 6 Nov 1997 05:00:09 +0000 (+0000) Subject: Allow separate single character and long options. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=864519b9fdc3e1a14cbff8af20d7055f617233cd;p=binutils-gdb.git Allow separate single character and long options. Avoid overflow of options buffer. Provide examples of sim-options use. --- diff --git a/sim/common/ChangeLog b/sim/common/ChangeLog index a75e522d1ab..ddb182a3453 100644 --- a/sim/common/ChangeLog +++ b/sim/common/ChangeLog @@ -1,3 +1,20 @@ +Thu Nov 6 12:06:46 1997 Andrew Cagney + + * sim-options.c (STANDARD_OPTIONS): Change OPTION_* to an enum. + (standard_option_handler): Update. + + * sim-options.h: Clarify documentation. + (OPTION_LONG_ONLY_P): Delete definition. + (OPTION_VALID_P): Define. + + * sim-options.c (sim_print_help): Allow short only options. + (sim_parse_args): Ditto. + (sim_args_command): Skip short only options. + (sim_parse_args): Allocate space for NUM_OPTS not just 256. Make + separate entries for short and long options in the HANDLERS and + ORIG_VAL tables. + (sim_parse_args): Disable argument permutation. + Wed Nov 5 13:40:31 1997 Andrew Cagney * sim-core.h (DECLARE_SIM_CORE_WRITE_N. DECLARE_SIM_CORE_READ_N):