+2002-07-22 Keith Seitz <keiths@redhat.com>
+
+ * mi-cli.exp: Use mi_run_to_main to get to main. Don't use "run".
+ Refine result string for "-interpreter-exec console bougs" test.
+
2002-06-25 Keith Seitz <keiths@redhat.com>
* mi-cli.exp: Add tests to check if list_command in the console
{\^error,msg="mi_cmd_interpreter_exec: could not find interpreter \\\"bogus\\\""} \
"-interpreter-exec with bogus interpreter"
+set msg {Undefined command: \\\"bogus\\\"\. Try \\\"help\\\"\.}
mi_gdb_test "-interpreter-exec console bogus" \
- {\^error,msg="Undefined command: \"bogus\". Try \"help\"\."} \
+ "&\\\"$msg\\\\n\\\".*\\^error,msg=\\\"$msg\\\".*" \
"-interpreter-exec console bogus"
mi_gdb_test "-interpreter-exec console \"file $binfile\"" \
{\~"Num[ \t]*Type[ \t]*Disp[ \t]*Enb[ \t]*Address[ \t]*What\\n".*~"1[ \t]*breakpoint[ \t]*keep[ \t]*y[ \t]*0x[0-9A-Fa-f]+[ \t]*in main at .*basics.c:[0-9]+\\n".*\^done} \
"-interpreter-exec console \"info break\""
-# FIXME: Is this right? This doesn't work right now anyway...
-mi_gdb_test "-interpreter-exec console run" \
- {\^running.*(=.*)*\*stopped,reason="breakpoint-hit",.*\^done} \
- "-interpreter-exec console run"
+mi_run_to_main
mi_gdb_test "-interpreter-exec console \"set listsize 1\"" \
{\^done} \