This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[PATCH] Fix line numbers in mi-var-child.exp
- From: Keith Seitz <keiths at redhat dot com>
- To: gdb-patches at sources dot redhat dot com
- Date: Fri, 13 Sep 2002 14:34:21 -0700 (PDT)
- Subject: [PATCH] Fix line numbers in mi-var-child.exp
HI,
My fault... When I submitted and committed this patch just a few minutes
ago, I had all the line numbers off by one because of an experiment to
test a patch I was working on...
I've committed the fix so that this test will run properly again.
Sorry.
Keith
ChangeLog
2002-09-13 Keith Seitz <keiths@redhat.com>
* mi-var-child.exp: Use mi_step_to and mi_execute_to instead
of a bunch of repeated send_gdb/gdb_expect statements.
Fix line numbers.
Patch
Index: mi-var-child.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.mi/mi-var-child.exp,v
retrieving revision 1.10
retrieving revision 1.11
diff -p -r1.10 -r1.11
*** mi-var-child.exp 13 Sep 2002 21:03:33 -0000 1.10
--- mi-var-child.exp 13 Sep 2002 21:29:42 -0000 1.11
*************** mi_gdb_test "-var-info-num-children stru
*** 555,561 ****
# Step to "struct_declarations.integer = 123;"
! set line 193
mi_step_to do_children_tests {} {.*var-cmd.c} $line "step to line $line"
# Test: c_variable-4.81
--- 555,561 ----
# Step to "struct_declarations.integer = 123;"
! set line 192
mi_step_to do_children_tests {} {.*var-cmd.c} $line "step to line $line"
# Test: c_variable-4.81
*************** mi_gdb_test "-var-update *" \
*** 754,760 ****
"update all vars. None changed"
# Step over "struct_declarations.integer = 123;"
! set line 194
mi_step_to do_children_tests {} {.*var-cmd.c} $line "step $line"
# Test: c_variable-5.2
--- 754,760 ----
"update all vars. None changed"
# Step over "struct_declarations.integer = 123;"
! set line 193
mi_step_to do_children_tests {} {.*var-cmd.c} $line "step $line"
# Test: c_variable-5.2
*************** mi_gdb_test "-var-update *" \
*** 767,773 ****
# weird->char_ptr = "hello";
# bar = 2121;
# foo = &bar;
! set line 197
mi_execute_to "exec-step 3" "end-stepping-range" do_children_tests {} {.*var-cmd.c} $line {} "step $line"
# Test: c_variable-5.3
--- 767,773 ----
# weird->char_ptr = "hello";
# bar = 2121;
# foo = &bar;
! set line 196
mi_execute_to "exec-step 3" "end-stepping-range" do_children_tests {} {.*var-cmd.c} $line {} "step $line"
# Test: c_variable-5.3
*************** mi_gdb_test "-var-update *" \
*** 777,783 ****
"update all vars struct_declarations.char_ptr"
# Step over "struct_declarations.int_ptr_ptr = &foo;"
! set line 198
mi_step_to do_children_tests {} {.*var-cmd.c} $line "step $line"
# Test: c_variable-5.4
--- 777,783 ----
"update all vars struct_declarations.char_ptr"
# Step over "struct_declarations.int_ptr_ptr = &foo;"
! set line 197
mi_step_to do_children_tests {} {.*var-cmd.c} $line "step $line"
# Test: c_variable-5.4
*************** mi_gdb_test "-var-update *" \
*** 787,793 ****
"update all vars int_ptr_ptr and children changed"
# Step over "weird->long_array[0] = 1234;"
! set line 199
mi_step_to do_children_tests {} {.*var-cmd.c} $line "step $line"
# Test: c_variable-5.5
--- 787,793 ----
"update all vars int_ptr_ptr and children changed"
# Step over "weird->long_array[0] = 1234;"
! set line 198
mi_step_to do_children_tests {} {.*var-cmd.c} $line "step $line"
# Test: c_variable-5.5
*************** mi_gdb_test "-var-update *" \
*** 797,803 ****
"update all vars struct_declarations.long_array.0 changed"
# Step over "struct_declarations.long_array[1] = 2345;"
! set line 200
mi_step_to do_children_tests {} {.*var-cmd.c} $line "step $line"
# Test: c_variable-5.6
--- 797,803 ----
"update all vars struct_declarations.long_array.0 changed"
# Step over "struct_declarations.long_array[1] = 2345;"
! set line 199
mi_step_to do_children_tests {} {.*var-cmd.c} $line "step $line"
# Test: c_variable-5.6
*************** mi_gdb_test "-var-update *" \
*** 807,813 ****
"update all vars struct_declarations.long_array.1 changed"
# Step over "weird->long_array[2] = 3456;"
! set line 201
mi_step_to do_children_tests {} {.*var-cmd.c} $line "step $line"
# Test: c_variable-5.7
--- 807,813 ----
"update all vars struct_declarations.long_array.1 changed"
# Step over "weird->long_array[2] = 3456;"
! set line 200
mi_step_to do_children_tests {} {.*var-cmd.c} $line "step $line"
# Test: c_variable-5.7
*************** mi_gdb_test "-var-update *" \
*** 824,830 ****
# struct_declarations.long_array[7] = 8901;
# weird->long_array[8] = 9012;
# struct_declarations.long_array[9] = 1234;
! set line 209
mi_execute_to "exec-step 7" "end-stepping-range" do_children_tests {} {.*var-cmd.c} $line {} "step $line"
# Test: c_variable-5.8
--- 824,830 ----
# struct_declarations.long_array[7] = 8901;
# weird->long_array[8] = 9012;
# struct_declarations.long_array[9] = 1234;
! set line 208
mi_execute_to "exec-step 7" "end-stepping-range" do_children_tests {} {.*var-cmd.c} $line {} "step $line"
# Test: c_variable-5.8
*************** mi_gdb_test "-var-update *" \
*** 835,841 ****
# Step over "weird->func_ptr = nothing;"
! set line 212
mi_step_to do_children_tests {} {.*var-cmd.c} $line "step $line"
# Test: c_variable-5.9
--- 835,841 ----
# Step over "weird->func_ptr = nothing;"
! set line 211
mi_step_to do_children_tests {} {.*var-cmd.c} $line "step $line"
# Test: c_variable-5.9
*************** mi_gdb_test "-var-delete weird->int_ptr_
*** 856,862 ****
# Step over all lines:
# ...
# psnp = &snp0;
! set line 255
mi_execute_to "exec-step 43" "end-stepping-range" do_children_tests {} {.*var-cmd.c} $line {} "step $line"
# Test: c_variable-5.10
--- 856,862 ----
# Step over all lines:
# ...
# psnp = &snp0;
! set line 254
mi_execute_to "exec-step 43" "end-stepping-range" do_children_tests {} {.*var-cmd.c} $line {} "step $line"
# Test: c_variable-5.10
*************** mi_gdb_test "-var-list-children psnp->pt
*** 1127,1133 ****
"get children of psnp->ptrs.0.next.next.ptrs"
# Step over "snp0.char_ptr = &b3;"
! set line 256
mi_step_to do_children_tests {} {.*var-cmd.c} $line "step $line"
# Test: c_variable-5.47
--- 1127,1133 ----
"get children of psnp->ptrs.0.next.next.ptrs"
# Step over "snp0.char_ptr = &b3;"
! set line 255
mi_step_to do_children_tests {} {.*var-cmd.c} $line "step $line"
# Test: c_variable-5.47
*************** mi_gdb_test "-var-update *" \
*** 1137,1143 ****
"update all vars psnp->char_ptr (and 0.char_ptr) changed"
# Step over "snp1.char_ptr = &c3;"
! set line 257
mi_step_to do_children_tests {} {.*var-cmd.c} $line "step $line"
# Test: c_variable-5.48
--- 1137,1143 ----
"update all vars psnp->char_ptr (and 0.char_ptr) changed"
# Step over "snp1.char_ptr = &c3;"
! set line 256
mi_step_to do_children_tests {} {.*var-cmd.c} $line "step $line"
# Test: c_variable-5.48
*************** mi_gdb_test "-var-update *" \
*** 1148,1154 ****
# Step over "snp2.char_ptr = &a3;"
! set line 258
mi_step_to do_children_tests {} {.*var-cmd.c} $line "step $line"
# Test: c_variable-5.49
--- 1148,1154 ----
# Step over "snp2.char_ptr = &a3;"
! set line 257
mi_step_to do_children_tests {} {.*var-cmd.c} $line "step $line"
# Test: c_variable-5.49
*************** mi_gdb_test "-var-update *" \
*** 1159,1165 ****
# Step over "snp0.long_ptr = &y3;"
! set line 259
mi_step_to do_children_tests {} {.*var-cmd.c} $line "step $line"
# Test: c_variable-5.50
--- 1159,1165 ----
# Step over "snp0.long_ptr = &y3;"
! set line 258
mi_step_to do_children_tests {} {.*var-cmd.c} $line "step $line"
# Test: c_variable-5.50
*************** mi_gdb_test "-var-update *" \
*** 1170,1176 ****
# Step over "snp1.long_ptr = &x3;"
! set line 260
mi_step_to do_children_tests {} {.*var-cmd.c} $line "step $line"
# Test: c_variable-5.51
--- 1170,1176 ----
# Step over "snp1.long_ptr = &x3;"
! set line 259
mi_step_to do_children_tests {} {.*var-cmd.c} $line "step $line"
# Test: c_variable-5.51
*************** clear_xfail *-*-*
*** 1187,1193 ****
#
# Step over "snp2.long_ptr = &z3;"
! set line 261
mi_step_to do_children_tests {} {.*var-cmd.c} $line "step $line"
# Test: c_variable-5.52
--- 1187,1193 ----
#
# Step over "snp2.long_ptr = &z3;"
! set line 260
mi_step_to do_children_tests {} {.*var-cmd.c} $line "step $line"
# Test: c_variable-5.52