6521N/A# The warning below appears multiple times for .reg2 when debugging a core
6521N/A# file on x86. Can't set REGSET_VARIABLE_SIZE flag, so
6521N/A# just remove the warning.
6521N/A# Note: this patch may not be appropriate for upstream;
6521N/A# it may eventually be removed.
6521N/A
6521N/A--- gdb-7.11-orig/gdb/corelow.c Tue Feb 9 19:19:39 2016
6521N/A+++ gdb-7.11/gdb/corelow.c Fri Apr 1 18:47:17 2016
6521N/A@@ -541,11 +541,13 @@
6521N/A warning (_("Section `%s' in core file too small."), section_name);
6521N/A return;
6521N/A }
6521N/A+#ifndef SOLARIS /* skip this warning for Solaris */
6521N/A if (size != min_size && !(regset->flags & REGSET_VARIABLE_SIZE))
6521N/A {
6521N/A warning (_("Unexpected size of section `%s' in core file."),
6521N/A section_name);
6521N/A }
6521N/A+#endif
6521N/A
6521N/A contents = (char *) alloca (size);
6521N/A if (! bfd_get_section_contents (core_bfd, section, contents,