diff options
author | Peter Schauer <Peter.Schauer@mytum.de> | 1995-08-26 07:35:13 +0000 |
---|---|---|
committer | Peter Schauer <Peter.Schauer@mytum.de> | 1995-08-26 07:35:13 +0000 |
commit | 080868b4662cf9f1930714d09ad1d446dfd3a196 (patch) | |
tree | 18515318b28c97cb5214cda2e171624382018314 /gdb/top.c | |
parent | 13ba8b69271683f5cc4c723a6dbd1070b9aa671f (diff) | |
download | gdb-080868b4662cf9f1930714d09ad1d446dfd3a196.zip gdb-080868b4662cf9f1930714d09ad1d446dfd3a196.tar.gz gdb-080868b4662cf9f1930714d09ad1d446dfd3a196.tar.bz2 |
* mdebugread.c (parse_symbol): Handle sh.value of zero for enums.
Determine signedness of enum type from enumerators.
(parse_type): Handle btIndirect types, handle fBitfield for
some non-member types.
(upgrade_type): Use TYPE_FLAG_TARGET_STUB for arrays with
unknown length.
(cross_ref): Handle stIndirect forward reference to btTypedef.
* stabsread.c (read_enum_type): Determine signedness of enum
type from enumerators.
* top.c (execute_command): Remove trailing whitespace from
command arguments, except for `set' and `complete' commands.
(validate_comname): Allow underscores in user defined command
names.
* values.c (modify_field): Change `Value does not fit in %d bits'
error to a warning. Exclude sign extension bits of negative field
values from fit check.
Diffstat (limited to 'gdb/top.c')
-rw-r--r-- | gdb/top.c | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -1152,6 +1152,15 @@ execute_command (p, from_tty) /* Pass null arg rather than an empty one. */ arg = *p ? p : 0; + /* Clear off trailing whitespace, except for set and complete command. */ + if (arg && c->type != set_cmd && c->function.cfunc != complete_command) + { + p = arg + strlen (arg) - 1; + while (p >= arg && (*p == ' ' || *p == '\t')) + p--; + *(p + 1) = '\0'; + } + /* If this command has been hooked, run the hook first. */ if (c->hook) execute_user_command (c->hook, (char *)0); @@ -2574,7 +2583,7 @@ validate_comname (comname) p = comname; while (*p) { - if (!isalnum(*p) && *p != '-') + if (!isalnum(*p) && *p != '-' && *p != '_') error ("Junk in argument list: \"%s\"", p); p++; } |