mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-23 03:29:47 +08:00
2010-06-02 Michael Snyder <msnyder@vmware.com>
* gdb.dwarf2/dw2-basic.exp: Use gdb_test_no_output. * gdb.dwarf2/dw2-compressed.exp: Ditto. * gdb.dwarf2/dw2-intercu.exp: Ditto. * gdb.dwarf2/dw2-intermix.exp: Ditto. * gdb.dwarf2/dw2-producer.exp: Ditto. * gdb.dwarf2/mac-fileno.exp: Ditto. * gdb.gdb/observer.exp: Use gdb_test_no_output. * gdb.gdb/selftest.exp: Ditto. * gdb.multi/base.exp: Use gdb_test_no_output. * gdb.opt/inline-cmds.exp: Use gdb_test_no_output.
This commit is contained in:
@ -1,3 +1,19 @@
|
|||||||
|
2010-06-02 Michael Snyder <msnyder@vmware.com>
|
||||||
|
|
||||||
|
* gdb.dwarf2/dw2-basic.exp: Use gdb_test_no_output.
|
||||||
|
* gdb.dwarf2/dw2-compressed.exp: Ditto.
|
||||||
|
* gdb.dwarf2/dw2-intercu.exp: Ditto.
|
||||||
|
* gdb.dwarf2/dw2-intermix.exp: Ditto.
|
||||||
|
* gdb.dwarf2/dw2-producer.exp: Ditto.
|
||||||
|
* gdb.dwarf2/mac-fileno.exp: Ditto.
|
||||||
|
|
||||||
|
* gdb.gdb/observer.exp: Use gdb_test_no_output.
|
||||||
|
* gdb.gdb/selftest.exp: Ditto.
|
||||||
|
|
||||||
|
* gdb.multi/base.exp: Use gdb_test_no_output.
|
||||||
|
|
||||||
|
* gdb.opt/inline-cmds.exp: Use gdb_test_no_output.
|
||||||
|
|
||||||
2010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
|
2010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
|
||||||
|
|
||||||
* gdb.cp/ref-types.exp (print value of UI): Remove excessive newline.
|
* gdb.cp/ref-types.exp (print value of UI): Remove excessive newline.
|
||||||
|
@ -50,7 +50,7 @@ gdb_load ${binfile}
|
|||||||
|
|
||||||
set remote_dwarf_srcfile [remote_download host ${srcdir}/${subdir}/${dwarf_srcfile}]
|
set remote_dwarf_srcfile [remote_download host ${srcdir}/${subdir}/${dwarf_srcfile}]
|
||||||
|
|
||||||
gdb_test "set listsize 1" ""
|
gdb_test_no_output "set listsize 1"
|
||||||
gdb_test "list func_cu1" "4\[ \t\]+File 1 Line 4"
|
gdb_test "list func_cu1" "4\[ \t\]+File 1 Line 4"
|
||||||
gdb_test "ptype func_cu1" "type = int \\(\\)"
|
gdb_test "ptype func_cu1" "type = int \\(\\)"
|
||||||
|
|
||||||
|
@ -50,7 +50,7 @@ gdb_load ${binfile}
|
|||||||
|
|
||||||
set remote_dwarf_srcfile [remote_download host ${srcdir}/${subdir}/${dwarf_srcfile}]
|
set remote_dwarf_srcfile [remote_download host ${srcdir}/${subdir}/${dwarf_srcfile}]
|
||||||
|
|
||||||
gdb_test "set listsize 1" ""
|
gdb_test_no_output "set listsize 1"
|
||||||
gdb_test "list func_cu1" "4\[ \t\]+File 1 Line 4"
|
gdb_test "list func_cu1" "4\[ \t\]+File 1 Line 4"
|
||||||
gdb_test "ptype func_cu1" "type = int \\(\\)"
|
gdb_test "ptype func_cu1" "type = int \\(\\)"
|
||||||
|
|
||||||
|
@ -50,7 +50,7 @@ gdb_load ${binfile}
|
|||||||
|
|
||||||
set remote_dwarf_srcfile [remote_download host ${srcdir}/${subdir}/${dwarf_srcfile}]
|
set remote_dwarf_srcfile [remote_download host ${srcdir}/${subdir}/${dwarf_srcfile}]
|
||||||
|
|
||||||
gdb_test "set listsize 1" ""
|
gdb_test_no_output "set listsize 1"
|
||||||
gdb_test "list func_cu1" "4\[ \t\]+File 1 Line 4"
|
gdb_test "list func_cu1" "4\[ \t\]+File 1 Line 4"
|
||||||
gdb_test "ptype func_cu1" "type = int \\(\\)"
|
gdb_test "ptype func_cu1" "type = int \\(\\)"
|
||||||
|
|
||||||
|
@ -50,7 +50,7 @@ gdb_load ${binfile}
|
|||||||
|
|
||||||
set remote_dwarf_srcfile [remote_download host ${srcdir}/${subdir}/${dwarf_srcfile}]
|
set remote_dwarf_srcfile [remote_download host ${srcdir}/${subdir}/${dwarf_srcfile}]
|
||||||
|
|
||||||
gdb_test "set listsize 1" ""
|
gdb_test_no_output "set listsize 1"
|
||||||
gdb_test "list func_cu1" "4\[ \t\]+File 1 Line 4"
|
gdb_test "list func_cu1" "4\[ \t\]+File 1 Line 4"
|
||||||
gdb_test "ptype func_cu1" "type = int \\(\\)"
|
gdb_test "ptype func_cu1" "type = int \\(\\)"
|
||||||
|
|
||||||
|
@ -48,7 +48,7 @@ gdb_load ${binfile}
|
|||||||
|
|
||||||
set remote_dwarf_srcfile [remote_download host ${srcdir}/${subdir}/${dwarf_srcfile}]
|
set remote_dwarf_srcfile [remote_download host ${srcdir}/${subdir}/${dwarf_srcfile}]
|
||||||
|
|
||||||
gdb_test "set listsize 1" ""
|
gdb_test_no_output "set listsize 1"
|
||||||
gdb_test "list func_cu1" "4\[ \t\]+File 1 Line 4"
|
gdb_test "list func_cu1" "4\[ \t\]+File 1 Line 4"
|
||||||
gdb_test "ptype func_cu1" "type = int \\(\\)"
|
gdb_test "ptype func_cu1" "type = int \\(\\)"
|
||||||
|
|
||||||
|
@ -51,7 +51,7 @@ gdb_load ${binfile}
|
|||||||
|
|
||||||
set remote_dwarf_srcfile [remote_download host ${srcdir}/${subdir}/${dwarf_srcfile}]
|
set remote_dwarf_srcfile [remote_download host ${srcdir}/${subdir}/${dwarf_srcfile}]
|
||||||
|
|
||||||
gdb_test "set listsize 1" ""
|
gdb_test_no_output "set listsize 1"
|
||||||
gdb_test "list func_cu1" "4\[ \t\]+File 1 Line 4"
|
gdb_test "list func_cu1" "4\[ \t\]+File 1 Line 4"
|
||||||
gdb_test "ptype func_cu1" "type = int \\(\\)"
|
gdb_test "ptype func_cu1" "type = int \\(\\)"
|
||||||
|
|
||||||
|
@ -99,33 +99,33 @@ proc setup_test { executable } {
|
|||||||
}
|
}
|
||||||
|
|
||||||
proc attach_first_observer { message } {
|
proc attach_first_observer { message } {
|
||||||
gdb_test "set \$first_obs = observer_attach_test_notification (&observer_test_first_notification_function)" \
|
gdb_test_no_output "set \$first_obs = observer_attach_test_notification (&observer_test_first_notification_function)" \
|
||||||
"" "$message; attach first observer"
|
"$message; attach first observer"
|
||||||
}
|
}
|
||||||
|
|
||||||
proc attach_second_observer { message } {
|
proc attach_second_observer { message } {
|
||||||
gdb_test "set \$second_obs = observer_attach_test_notification (&observer_test_second_notification_function)" \
|
gdb_test_no_output "set \$second_obs = observer_attach_test_notification (&observer_test_second_notification_function)" \
|
||||||
"" "$message; attach second observer"
|
"$message; attach second observer"
|
||||||
}
|
}
|
||||||
|
|
||||||
proc attach_third_observer { message } {
|
proc attach_third_observer { message } {
|
||||||
gdb_test "set \$third_obs = observer_attach_test_notification (&observer_test_third_notification_function)" \
|
gdb_test_no_output "set \$third_obs = observer_attach_test_notification (&observer_test_third_notification_function)" \
|
||||||
"" "$message; attach third observer"
|
"$message; attach third observer"
|
||||||
}
|
}
|
||||||
|
|
||||||
proc detach_first_observer { message } {
|
proc detach_first_observer { message } {
|
||||||
gdb_test "call observer_detach_test_notification (\$first_obs)" \
|
gdb_test_no_output "call observer_detach_test_notification (\$first_obs)" \
|
||||||
"" "$message; detach first observer"
|
"$message; detach first observer"
|
||||||
}
|
}
|
||||||
|
|
||||||
proc detach_second_observer { message } {
|
proc detach_second_observer { message } {
|
||||||
gdb_test "call observer_detach_test_notification (\$second_obs)" \
|
gdb_test_no_output "call observer_detach_test_notification (\$second_obs)" \
|
||||||
"" "$message; detach second observer"
|
"$message; detach second observer"
|
||||||
}
|
}
|
||||||
|
|
||||||
proc detach_third_observer { message } {
|
proc detach_third_observer { message } {
|
||||||
gdb_test "call observer_detach_test_notification (\$third_obs)" \
|
gdb_test_no_output "call observer_detach_test_notification (\$third_obs)" \
|
||||||
"" "$message; detach third observer"
|
"$message; detach third observer"
|
||||||
}
|
}
|
||||||
|
|
||||||
proc check_counters { first second third message } {
|
proc check_counters { first second third message } {
|
||||||
@ -141,11 +141,11 @@ proc check_counters { first second third message } {
|
|||||||
}
|
}
|
||||||
|
|
||||||
proc reset_counters { message } {
|
proc reset_counters { message } {
|
||||||
gdb_test "set variable observer_test_first_observer = 0" "" \
|
gdb_test_no_output "set variable observer_test_first_observer = 0" \
|
||||||
"$message; reset first observer counter"
|
"$message; reset first observer counter"
|
||||||
gdb_test "set variable observer_test_second_observer = 0" "" \
|
gdb_test_no_output "set variable observer_test_second_observer = 0" \
|
||||||
"$message; reset second observer counter"
|
"$message; reset second observer counter"
|
||||||
gdb_test "set variable observer_test_third_observer = 0" "" \
|
gdb_test_no_output "set variable observer_test_third_observer = 0" \
|
||||||
"$message; reset third observer counter"
|
"$message; reset third observer counter"
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -158,7 +158,7 @@ proc test_notifications { first second third message args } {
|
|||||||
# Call observer_notify_test_notification. Note that this procedure
|
# Call observer_notify_test_notification. Note that this procedure
|
||||||
# takes one argument, but this argument is ignored by the observer
|
# takes one argument, but this argument is ignored by the observer
|
||||||
# callbacks we have installed. So we just pass an arbitrary value.
|
# callbacks we have installed. So we just pass an arbitrary value.
|
||||||
gdb_test "call observer_notify_test_notification (0)" "" \
|
gdb_test_no_output "call observer_notify_test_notification (0)" \
|
||||||
"$message; sending notification"
|
"$message; sending notification"
|
||||||
check_counters $first $second $third $message
|
check_counters $first $second $third $message
|
||||||
}
|
}
|
||||||
|
@ -299,7 +299,7 @@ proc test_with_self { executable } {
|
|||||||
# FIXME: If we put this after the run to main, the first list
|
# FIXME: If we put this after the run to main, the first list
|
||||||
# command doesn't print the same line as the current line where
|
# command doesn't print the same line as the current line where
|
||||||
# gdb is stopped.
|
# gdb is stopped.
|
||||||
gdb_test "set listsize 1" "" "set listsize to 1"
|
gdb_test_no_output "set listsize 1" "set listsize to 1"
|
||||||
|
|
||||||
# run yourself
|
# run yourself
|
||||||
# It may take a very long time for the inferior gdb to start (lynx),
|
# It may take a very long time for the inferior gdb to start (lynx),
|
||||||
|
@ -73,7 +73,7 @@ gdb_test "info functions commonfun" "${srcfile3}.*"
|
|||||||
|
|
||||||
gdb_test "inferior 1"
|
gdb_test "inferior 1"
|
||||||
|
|
||||||
gdb_test "set listsize 1" ""
|
gdb_test_no_output "set listsize 1"
|
||||||
|
|
||||||
gdb_test "list commonfun" "from hello.*"
|
gdb_test "list commonfun" "from hello.*"
|
||||||
|
|
||||||
|
@ -32,7 +32,7 @@ gdb_start
|
|||||||
gdb_reinitialize_dir $srcdir/$subdir
|
gdb_reinitialize_dir $srcdir/$subdir
|
||||||
gdb_load ${binfile}
|
gdb_load ${binfile}
|
||||||
|
|
||||||
gdb_test "set listsize 1" ""
|
gdb_test_no_output "set listsize 1"
|
||||||
|
|
||||||
runto_main
|
runto_main
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user