Update the path arm-*.xml files for aarch64
[deliverable/binutils-gdb.git] / gdb / testsuite / gdb.dwarf2 / dw2-var-zero-addr.exp
index 462a5f85c707be06f65a0213166cf77f4f5f098f..0e4bd743e2006247d7d472b046df439dc07a955b 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 2011-2014 Free Software Foundation, Inc.
+# Copyright 2011-2016 Free Software Foundation, Inc.
 #
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -26,6 +26,19 @@ if [prepare_for_testing ${testfile}.exp ${testfile} \
     return -1
 }
 
-# FAIL was: = (int *) 0x0
-# Such DIE record can be produced using: gcc -fdata-sections -Wl,-gc-sections
-gdb_test "print &var" {No symbol "var" in current context\.}
+proc test { } {
+    # FAIL was: = (int *) 0x0
+    # Such DIE record can be produced using: gcc -fdata-sections -Wl,-gc-sections
+    gdb_test "print &var" {No symbol "var" in current context\.}
+}
+
+test
+
+set saved_gdbflags $GDBFLAGS
+set GDBFLAGS "$GDBFLAGS --readnow"
+clean_restart ${binfile}
+set GDBFLAGS $saved_gdbflags
+
+with_test_prefix "readnow" {
+    test
+}
This page took 0.025106 seconds and 4 git commands to generate.