diff options
author | Jeff Law <law@redhat.com> | 1995-10-03 03:48:32 +0000 |
---|---|---|
committer | Jeff Law <law@redhat.com> | 1995-10-03 03:48:32 +0000 |
commit | a25ffb081fe412c933d59383add68d831e03e5f2 (patch) | |
tree | ee55336907d50caa733042b0b10fcffffd1d4e8d /gdb/top.c | |
parent | 3994972d62e654c0b26559c7cf39c350e3d1ee19 (diff) | |
download | gdb-a25ffb081fe412c933d59383add68d831e03e5f2.zip gdb-a25ffb081fe412c933d59383add68d831e03e5f2.tar.gz gdb-a25ffb081fe412c933d59383add68d831e03e5f2.tar.bz2 |
* top.c (build_command_line): Demand arguments for if/while
commands.
Diffstat (limited to 'gdb/top.c')
-rw-r--r-- | gdb/top.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -649,6 +649,9 @@ build_command_line (type, args) { struct command_line *cmd; + if (args == NULL) + error ("if/while commands require arguments.\n"); + cmd = (struct command_line *)xmalloc (sizeof (struct command_line)); cmd->next = NULL; cmd->control_type = type; |