]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
patch ../102425547.patch
authorDoug Evans <dje@google.com>
Thu, 10 Dec 2015 20:00:29 +0000 (12:00 -0800)
committerDoug Evans <dje@google.com>
Thu, 10 Dec 2015 20:00:29 +0000 (12:00 -0800)
README.google
gdb/testsuite/boards/fission.exp
gdb/testsuite/gdb.mi/mi-var-invalidate.exp
gdb/testsuite/gdb.python/py-prettyprint.exp

index 05adf7aa5269ff9929a2b8bf1bcc33da5ae840df..5a29e0d13854aeb40d2da2f11fbade50a3d7473f 100644 (file)
@@ -45,3 +45,18 @@ they are an ongoing maintenance burden.
 +
 +      * remote.c (readchar): Don't lengthen timeout value of 0,
 +      return immediately means return immediately.
+--- README.google      2015-09-05 15:13:05.000000000 -0700
++++ README.google      2015-09-05 15:16:13.000000000 -0700
++
++2015-09-05  Doug Evans  <dje@google.com>
++
++      Temporary hack to make these tests pass with Fission.
++      To be replaced with something that can be checked in upstream
++      when support for .dwp files is completed.
++      * gdb.python/py-prettyprint.exp: Do all C testing before any C++
++      testing.
++
++      * testsuite/gdb.mi/mi-var-invalidate.exp: Reorder compilations so
++      that var-cmd.dwo isn't clobbered.
++
++      * testsuite/boards/fission.exp: Add blaze support.
index af9c003601c93aac789cc96899b01eed54371bdc..b8cc2ec7da8ab29b02d67f86d47f4a834c4885f7 100644 (file)
@@ -35,3 +35,10 @@ set_board_info debug_flags "-gdwarf-4 -gsplit-dwarf -ggnu-pubnames -fdebug-types
 # Double blech: set_board_info only sets the value if not already set.
 unset_board_info isremote
 set_board_info isremote 0
+
+# Enable fission in blaze builds.
+if [info exists CROSSTOOL_ARGS] {
+    lappend CROSSTOOL_ARGS " --fission=dbg"
+} else {
+    set CROSSTOOL_ARGS "--fission=dbg"
+}
index 0df1fd3c3bab47518399a8f2227e0e5576b0f671..984d1bcc7734a4a7692549b240ff5402f2c598d6 100644 (file)
@@ -34,20 +34,6 @@ if  { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {deb
     untested mi-var-invalidate.exp
     return -1
 }
-# Just change the output binary.
-set binfile_bis [standard_output_file mi-var-invalidate_bis]
-if  { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile_bis}" executable {debug}] != "" } {
-    untested mi-var-invalidate.exp
-    return -1
-}
-
-set testfile2 "basics"
-set srcfile2 ${testfile2}.c
-set binfile2 [standard_output_file ${testfile2}]
-if  { [gdb_compile "${srcdir}/${subdir}/${srcfile2}" "${binfile2}" executable {debug}] != "" } {
-    untested mi-var-invalidate.exp
-    return -1
-}
 
 mi_delete_breakpoints
 mi_gdb_reinitialize_dir $srcdir/$subdir
@@ -68,6 +54,15 @@ mi_create_floating_varobj float_simple array "create floating variable"
 # Reload the same binary.
 # Global variable should remain, local should be invalidated.
 #
+
+# GOOGLE LOCAL: Don't clobber var-cmd.dwo.
+# Just change the output binary.
+set binfile_bis [standard_output_file mi-var-invalidate_bis]
+if  { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile_bis}" executable {debug}] != "" } {
+    untested mi-var-invalidate.exp
+    return -1
+}
+
 mi_delete_breakpoints
 mi_gdb_load ${binfile_bis}
 mi_runto main
@@ -101,6 +96,16 @@ mi_gdb_test "-var-info-type global_simple" \
 # Load an other binary.
 # All variables must be invalidated.
 #
+
+# GOOGLE LOCAL: Don't clobber var-cmd.dwo.
+set testfile2 "basics"
+set srcfile2 ${testfile2}.c
+set binfile2 [standard_output_file ${testfile2}]
+if  { [gdb_compile "${srcdir}/${subdir}/${srcfile2}" "${binfile2}" executable {debug}] != "" } {
+    untested mi-var-invalidate.exp
+    return -1
+}
+
 mi_delete_breakpoints
 mi_gdb_load ${binfile2}
 # Check local variable are "invalid"
index bbcee563127d74a5aac89d56fdce746041c14e4c..6f8f11813a9f8ea264ba73382e1a75a725009dc5 100644 (file)
@@ -115,7 +115,6 @@ proc run_lang_tests {exefile lang} {
 }
 
 run_lang_tests "${binfile}" "c"
-run_lang_tests "${binfile}-cxx" "c++"
 
 # Run various other tests.
 
@@ -157,3 +156,11 @@ gdb_test_no_output "python enable_lookup_function ()"
 
 gdb_test "print ss" " = a=< a=<1> b=<$hex>> b=< a=<2> b=<$hex>>" \
     "print ss enabled #2"
+
+# Now that we're done with C testing, test C++.
+# Note: This build must be done after all C testing because the .o file
+# used by the C and C++ versions are the same, and thus if we're testing
+# Fission then the .dwo files will be the same, and building the c++ file
+# will clobber the C .dwo file.
+
+run_lang_tests "${binfile}-cxx" "c++"