# The warning below appears multiple times for .reg2 when debugging a core # file on x86. Can't set REGSET_VARIABLE_SIZE flag, so # just remove the warning. # Note: this patch may not be appropriate for upstream; # it may eventually be removed. --- gdb-14.2/gdb/corelow.c.orig +++ gdb-14.2/gdb/corelow.c @@ -863,11 +863,14 @@ section_name.c_str ()); return; } +#if !defined(__sun) && !defined(__SVR4) + /* skip this warning for illumos */ if (size != section_min_size && !variable_size_section) { warning (_("Unexpected size of section `%s' in core file."), section_name.c_str ()); } +#endif gdb::byte_vector contents (size); if (!bfd_get_section_contents (core_bfd, section, contents.data (),