aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2018-11-20 06:45:28 -0800
committerH.J. Lu <hjl.tools@gmail.com>2018-11-20 06:46:03 -0800
commitf92f9e8780f74c5084c59689f91d28b8a3471538 (patch)
tree2f548979b5cb059a1495ebdd1e9d233289a7533d
parent7b5227d1323e6ee2833f9ba44dea36f3c1c49179 (diff)
downloadgdb-f92f9e8780f74c5084c59689f91d28b8a3471538.zip
gdb-f92f9e8780f74c5084c59689f91d28b8a3471538.tar.gz
gdb-f92f9e8780f74c5084c59689f91d28b8a3471538.tar.bz2
readelf: Prune gaps warning in build notes
Since some object files may not have build notes, it is normal to have gaps in build notes. PR binutils/23898 * testsuite/lib/binutils-common.exp (prune_warnings_extra): Prune gaps in build notes.
-rw-r--r--binutils/ChangeLog6
-rw-r--r--binutils/testsuite/lib/binutils-common.exp2
2 files changed, 8 insertions, 0 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog
index 0d980b7..ed80459 100644
--- a/binutils/ChangeLog
+++ b/binutils/ChangeLog
@@ -1,3 +1,9 @@
+2018-11-20 H.J. Lu <hongjiu.lu@intel.com>
+
+ PR binutils/23898
+ * testsuite/lib/binutils-common.exp (prune_warnings_extra):
+ Prune gaps in build notes.
+
2018-11-13 Francois H. Theron <francois.theron@netronome.com>
* testsuite/binutils-all/nfp/test1.d: Test for swapped operand crc[].
diff --git a/binutils/testsuite/lib/binutils-common.exp b/binutils/testsuite/lib/binutils-common.exp
index f1a1531..bbbbfbe 100644
--- a/binutils/testsuite/lib/binutils-common.exp
+++ b/binutils/testsuite/lib/binutils-common.exp
@@ -442,6 +442,8 @@ proc prune_warnings_extra { text } {
# The "\\1" is to try to preserve a "\n" but only if necessary.
regsub -all "(^|\n)(\[^\n\]*: warning:\[^\n\]*unsupported GNU_PROPERTY_TYPE\[^\n\]*\n?)+" $text "\\1" text
}
+ # PR binutils/23898: It is OK to have gaps in build notes.
+ regsub -all "(^|\n)(\[^\n\]*: Warning: Gap in build notes detected from\[^\n\]*\n?)+" $text "\\1" text
return $text
}