This is the mail archive of the mailing list for the GDB project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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

2010-02-16  Daniel Jacobowitz  <>

	* 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"

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]