aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElena Zannoni <ezannoni@kwikemart.cygnus.com>2002-11-05 15:43:18 +0000
committerElena Zannoni <ezannoni@kwikemart.cygnus.com>2002-11-05 15:43:18 +0000
commit6afa27b08c2aba9310bb8ab1f40816ee1d6ed783 (patch)
tree038bfb057d8ba9eaa7ac555c5434781514118631 /gdb/testsuite/gdb.mi/mi-read-memory.exp
parentCorrect the ChangeLog entry for 2002-10-11 from: (diff)
downloadbinutils-gdb-6afa27b08c2aba9310bb8ab1f40816ee1d6ed783.tar.gz
binutils-gdb-6afa27b08c2aba9310bb8ab1f40816ee1d6ed783.tar.bz2
binutils-gdb-6afa27b08c2aba9310bb8ab1f40816ee1d6ed783.zip
2002-11-04 Elena Zannoni <ezannoni@redhat.com>
* mi-console.exp: Use mi_runto, mi_run_to_main, mi_next_to, mi_step_to wherever possible. Update copyright notices. * mi-disassemble.exp: Ditto. * mi-eval.exp: Ditto. * mi-read-memory.exp: Ditto. * mi-regs.exp: Ditto. * mi-return.exp: Ditto. * mi-stack.exp: Ditto. * mi-stepi.exp: Ditto. * mi-var-block.exp: Ditto. * mi-var-cmd.exp: Ditto. * mi-watch.exp: Ditto. * mi1-console.exp: Ditto. * mi1-disassemble.exp: Ditto. * mi1-eval.exp: Ditto. * mi1-read-memory.exp: Ditto. * mi1-regs.exp: Ditto. * mi1-return.exp: Ditto. * mi1-stack.exp: Ditto. * mi1-stepi.exp: Ditto. * mi1-var-block.exp: Ditto. * mi1-var-cmd.exp: Ditto. * mi1-watch.exp: Ditto.
Diffstat (limited to 'gdb/testsuite/gdb.mi/mi-read-memory.exp')
-rw-r--r--gdb/testsuite/gdb.mi/mi-read-memory.exp18
1 files changed, 2 insertions, 16 deletions
diff --git a/gdb/testsuite/gdb.mi/mi-read-memory.exp b/gdb/testsuite/gdb.mi/mi-read-memory.exp
index b4f0c35955f..573c8964c22 100644
--- a/gdb/testsuite/gdb.mi/mi-read-memory.exp
+++ b/gdb/testsuite/gdb.mi/mi-read-memory.exp
@@ -1,4 +1,4 @@
-# Copyright 1999, 2000 Free Software Foundation, Inc.
+# Copyright 1999, 2000, 2002 Free Software Foundation, Inc.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@@ -46,21 +46,7 @@ if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {deb
mi_run_to_main
-
-#mi_next "do initialization"
-send_gdb "101-exec-next\n"
-gdb_expect {
- -re "101\\^running\r\n$mi_gdb_prompt" {
- gdb_expect {
- -re "\[\r\n\]*101\\*stopped,reason=\"end-stepping-range\",thread-id=\"\[01\]\",frame=\{addr=\"$hex\",func=\"main\",args=\\\[\\\],file=\".*mi-read-memory.c\",line=\"20\"\}.*$mi_gdb_prompt$" \
- { pass "do initialization" }
- -re ".*$mi_gdb_prompt$" {fail "do initialization (2)"}
- timeout {fail "do initialization (timeout 2)"}
- }
- }
- -re ".*$mi_gdb_prompt$" {fail "do initialization (1)"}
- timeout {fail "do initialization (timeout 1)"}
-}
+mi_next_to "main" "" "mi-read-memory.c" "20" "next at main"
mi_gdb_test "1-data-read-memory" \
"1\\^error,msg=\".*\"" \