This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[commit/testsuite] Fix py-value.exp for ARM EABI
- From: Daniel Jacobowitz <dan at codesourcery dot com>
- To: gdb-patches at sourceware dot org
- Date: Tue, 16 Feb 2010 16:13:50 -0500
- Subject: [commit/testsuite] Fix py-value.exp for ARM EABI
This target sets gdb,noargs in its board file. And for good reason:
argv[0] == NULL. The test should be skipped.
Tested on arm-none-eabi and x86_64-linux; committed to trunk.
--
Daniel Jacobowitz
CodeSourcery
2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
gdb/testsuite/
* gdb.python/py-value.exp (test_value_in_inferior): Skip arg0 test
if arguments are not supported.
diff -urp gdb-merged-orig/gdb/testsuite/gdb.python/py-value.exp gdb-merged/gdb/testsuite/gdb.python/py-value.exp
--- gdb-merged-orig/gdb/testsuite/gdb.python/py-value.exp 2010-02-10 14:54:35.000000000 -0800
+++ gdb-merged/gdb/testsuite/gdb.python/py-value.exp 2010-02-15 16:45:26.000000000 -0800
@@ -227,7 +227,9 @@ proc test_value_in_inferior {} {
gdb_py_test_silent_cmd "python arg0 = argv.dereference ()" "dereference value" 1
# Check that the dereferenced value is sane
- gdb_test "python print arg0" "0x.*$testfile\"" "verify dereferenced value"
+ if { ! [target_info exists noargs] } {
+ gdb_test "python print arg0" "0x.*$testfile\"" "verify dereferenced value"
+ }
# Smoke-test is_optimized_out attribute
gdb_test "python print 'result =', arg0.is_optimized_out" "= False" "Test is_optimized_out attribute"