- Add gdb-7.10-swo18929.patch to fix crash printing values. [bnc#971556]

[swo#18929]

OBS-URL: https://build.opensuse.org/package/show/devel:gcc/gdb?expand=0&rev=134
This commit is contained in:
Richard Biener 2016-03-21 15:04:38 +00:00 committed by Git OBS Bridge
parent d8d14d30fb
commit ed40f146bf
3 changed files with 45 additions and 0 deletions

37
gdb-7.10-swo18929.patch Normal file
View File

@ -0,0 +1,37 @@
https://sourceware.org/bugzilla/show_bug.cgi?id=18929
---
gdb/cp-valprint.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
Index: gdb-7.11/gdb/cp-valprint.c
===================================================================
--- gdb-7.11.orig/gdb/cp-valprint.c 2016-03-21 10:04:07.845131361 +0100
+++ gdb-7.11/gdb/cp-valprint.c 2016-03-21 10:04:49.089597879 +0100
@@ -313,11 +313,13 @@ cp_print_value_fields (struct type *type
}
else if (field_is_static (&TYPE_FIELD (type, i)))
{
- struct value *v = NULL;
-
TRY
{
+ struct value *v = NULL;
v = value_static_field (type, i);
+ cp_print_static_field (TYPE_FIELD_TYPE (type, i),
+ v, stream, recurse + 1,
+ options);
}
CATCH (ex, RETURN_MASK_ERROR)
@@ -327,10 +329,6 @@ cp_print_value_fields (struct type *type
ex.message);
}
END_CATCH
-
- cp_print_static_field (TYPE_FIELD_TYPE (type, i),
- v, stream, recurse + 1,
- options);
}
else if (i == vptr_fieldno && type == vptr_basetype)
{

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Mon Mar 21 09:02:11 UTC 2016 - rguenther@suse.com
- Add gdb-7.10-swo18929.patch to fix crash printing values. [bnc#971556]
[swo#18929]
-------------------------------------------------------------------
Mon Feb 29 18:50:39 UTC 2016 - matz@suse.de

View File

@ -214,6 +214,7 @@ Patch117: gdb-testsuite-readline63-sigint.patch
Patch1002: gdb-6.6-buildid-locate-rpm-suse.patch
Patch1003: gdb-pahole-python2.patch
Patch1004: gdb-fix-buf-overflow.diff
Patch1005: gdb-7.10-swo18929.patch
BuildRequires: bison
BuildRequires: flex
@ -481,6 +482,7 @@ find -name "*.info*"|xargs rm -f
%patch1002 -p1
%patch1003 -p1
%patch1004 -p1
%patch1005 -p1
find -name "*.orig" | xargs rm -f
! find -name "*.rej" # Should not happen.