diff options
author | Daniel Jacobowitz <drow@false.org> | 2010-02-16 21:13:10 +0000 |
---|---|---|
committer | Daniel Jacobowitz <drow@false.org> | 2010-02-16 21:13:10 +0000 |
commit | 70362913a3298c64642c51fa561406ab2fe2f409 (patch) | |
tree | 5064049adbcbace37a3c88de8a78e840abda762c | |
parent | 493f3c00fe05de7ea8328027eb585ac89ca61b97 (diff) | |
download | gdb-70362913a3298c64642c51fa561406ab2fe2f409.zip gdb-70362913a3298c64642c51fa561406ab2fe2f409.tar.gz gdb-70362913a3298c64642c51fa561406ab2fe2f409.tar.bz2 |
* gdb.python/py-value.exp (test_value_in_inferior): Skip arg0 test
if arguments are not supported.
-rw-r--r-- | gdb/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/testsuite/gdb.python/py-value.exp | 4 |
2 files changed, 8 insertions, 1 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 333637f..4f0e069 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,5 +1,10 @@ 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com> + * gdb.python/py-value.exp (test_value_in_inferior): Skip arg0 test + if arguments are not supported. + +2010-02-16 Daniel Jacobowitz <dan@codesourcery.com> + * gdb.cp/overload.exp: Allow foo::overload1arg's "this" pointer to be const or non-const. diff --git a/gdb/testsuite/gdb.python/py-value.exp b/gdb/testsuite/gdb.python/py-value.exp index aa4e519..d980a3d 100644 --- a/gdb/testsuite/gdb.python/py-value.exp +++ b/gdb/testsuite/gdb.python/py-value.exp @@ -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" |