forked from Imagelibrary/binutils-gdb
gdb/ChangeLog
2001-12-13 Jackie Smith Cashion <jsmith@redhat.com> * cli/cli-script.c (print_command_lines): Remove extra "if", "else", "while", and "end" from show user output. testsuite/ChangeLog 2001-12-13 Jackie Smith Cashion <jsmith@redhat.com> * gdb.base/commands.exp (user_defined_command_test): Make "show user" test expect string more specific.
This commit is contained in:
@@ -1,3 +1,8 @@
|
|||||||
|
2001-12-13 Jackie Smith Cashion <jsmith@redhat.com>
|
||||||
|
|
||||||
|
* cli/cli-script.c (print_command_lines): Remove extra
|
||||||
|
"if", "else", "while", and "end" from show user output.
|
||||||
|
|
||||||
2001-12-13 Kevin Buettner <kevinb@redhat.com>
|
2001-12-13 Kevin Buettner <kevinb@redhat.com>
|
||||||
|
|
||||||
* i387-nat.c (i387_fill_fxsave): Change type of ``val'' from char
|
* i387-nat.c (i387_fill_fxsave): Change type of ``val'' from char
|
||||||
|
|||||||
@@ -171,14 +171,13 @@ print_command_lines (struct ui_out *uiout, struct command_line *cmd,
|
|||||||
/* A while command. Recursively print its subcommands and continue. */
|
/* A while command. Recursively print its subcommands and continue. */
|
||||||
if (list->control_type == while_control)
|
if (list->control_type == while_control)
|
||||||
{
|
{
|
||||||
ui_out_text (uiout, "while ");
|
|
||||||
ui_out_field_fmt (uiout, NULL, "while %s", list->line);
|
ui_out_field_fmt (uiout, NULL, "while %s", list->line);
|
||||||
ui_out_text (uiout, "\n");
|
ui_out_text (uiout, "\n");
|
||||||
print_command_lines (uiout, *list->body_list, depth + 1);
|
print_command_lines (uiout, *list->body_list, depth + 1);
|
||||||
ui_out_field_string (uiout, NULL, "end");
|
|
||||||
if (depth)
|
if (depth)
|
||||||
ui_out_spaces (uiout, 2 * depth);
|
ui_out_spaces (uiout, 2 * depth);
|
||||||
ui_out_text (uiout, "end\n");
|
ui_out_field_string (uiout, NULL, "end");
|
||||||
|
ui_out_text (uiout, "\n");
|
||||||
list = list->next;
|
list = list->next;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
@@ -186,7 +185,6 @@ print_command_lines (struct ui_out *uiout, struct command_line *cmd,
|
|||||||
/* An if command. Recursively print both arms before continueing. */
|
/* An if command. Recursively print both arms before continueing. */
|
||||||
if (list->control_type == if_control)
|
if (list->control_type == if_control)
|
||||||
{
|
{
|
||||||
ui_out_text (uiout, "if ");
|
|
||||||
ui_out_field_fmt (uiout, NULL, "if %s", list->line);
|
ui_out_field_fmt (uiout, NULL, "if %s", list->line);
|
||||||
ui_out_text (uiout, "\n");
|
ui_out_text (uiout, "\n");
|
||||||
/* The true arm. */
|
/* The true arm. */
|
||||||
@@ -198,14 +196,14 @@ print_command_lines (struct ui_out *uiout, struct command_line *cmd,
|
|||||||
if (depth)
|
if (depth)
|
||||||
ui_out_spaces (uiout, 2 * depth);
|
ui_out_spaces (uiout, 2 * depth);
|
||||||
ui_out_field_string (uiout, NULL, "else");
|
ui_out_field_string (uiout, NULL, "else");
|
||||||
ui_out_text (uiout, "else\n");
|
ui_out_text (uiout, "\n");
|
||||||
print_command_lines (uiout, list->body_list[1], depth + 1);
|
print_command_lines (uiout, list->body_list[1], depth + 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
ui_out_field_string (uiout, NULL, "end");
|
|
||||||
if (depth)
|
if (depth)
|
||||||
ui_out_spaces (uiout, 2 * depth);
|
ui_out_spaces (uiout, 2 * depth);
|
||||||
ui_out_text (uiout, "end\n");
|
ui_out_field_string (uiout, NULL, "end");
|
||||||
|
ui_out_text (uiout, "\n");
|
||||||
list = list->next;
|
list = list->next;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,3 +1,8 @@
|
|||||||
|
2001-12-13 Jackie Smith Cashion <jsmith@redhat.com>
|
||||||
|
|
||||||
|
* gdb.base/commands.exp (user_defined_command_test): Make "show user"
|
||||||
|
test expect string more specific.
|
||||||
|
|
||||||
2001-12-13 Corinna Vinschen <vinschen@redhat.com>
|
2001-12-13 Corinna Vinschen <vinschen@redhat.com>
|
||||||
|
|
||||||
* gdb.asm/asm-source.exp: Add support for xstormy16.
|
* gdb.asm/asm-source.exp: Add support for xstormy16.
|
||||||
|
|||||||
@@ -261,7 +261,7 @@ proc user_defined_command_test {} {
|
|||||||
"\\\$\[0-9\]* = 0xdeadbeef\[^\n\]*\n\\\$\[0-9\]* = 0xfeedface\[^\n\]*\n\\\$\[0-9\]* = 0xdeadbeef\[^\n\]*\n\\\$\[0-9\]* = 0xfeedface" \
|
"\\\$\[0-9\]* = 0xdeadbeef\[^\n\]*\n\\\$\[0-9\]* = 0xfeedface\[^\n\]*\n\\\$\[0-9\]* = 0xdeadbeef\[^\n\]*\n\\\$\[0-9\]* = 0xfeedface" \
|
||||||
"execute user defined command in user_defined_command_test"
|
"execute user defined command in user_defined_command_test"
|
||||||
gdb_test "show user mycommand" \
|
gdb_test "show user mycommand" \
|
||||||
"while.*set.*if.*p/x.*else.*p/x.*end.*" \
|
" while \\\$arg0.*set.* if \\\(\\\$arg0.*p/x.* else\[^\n\].*p/x.* end\[^\n\].* end\[^\n\].*" \
|
||||||
"display user command in user_defined_command_test"
|
"display user command in user_defined_command_test"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user