ports/devel/gdb/files/patch-gdb-corelow.c
Olivier Cochard 32d3b42a57 Update to 7.12.1
Updating gdb to the last stable version and cleaning it up.

PR:		217090
Submitted by:	luca.pizzamiglio@gmail.com (maintainer)

PR:		216027
  - Recognizing the compiler to adopt options properly
  Reported by:   julian@FreeBSD.org

PR:		216132
  - Fixing the segmentation fault, but arm core dump not yet usable
  Reported by:   Mark Millard
2017-02-14 10:29:38 +00:00

12 lines
484 B
C

--- gdb/corelow.c.orig 2017-01-16 10:40:23.118428000 +0100
+++ gdb/corelow.c 2017-01-17 22:39:10.524216000 +0100
@@ -541,7 +541,8 @@
warning (_("Section `%s' in core file too small."), section_name);
return;
}
- if (size != min_size && !(regset->flags & REGSET_VARIABLE_SIZE))
+ if (size != min_size && regset != NULL &&
+ !(regset->flags & REGSET_VARIABLE_SIZE))
{
warning (_("Unexpected size of section `%s' in core file."),
section_name);