File gdb-7.9-swo18929.patch of Package gdb.2428
---
gdb/cp-valprint.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
Index: gdb-7.9.1/gdb/cp-valprint.c
===================================================================
--- gdb-7.9.1.orig/gdb/cp-valprint.c
+++ gdb-7.9.1/gdb/cp-valprint.c
@@ -314,20 +314,20 @@ cp_print_value_fields (struct type *type
else if (field_is_static (&TYPE_FIELD (type, i)))
{
volatile struct gdb_exception ex;
- struct value *v = NULL;
TRY_CATCH (ex, RETURN_MASK_ERROR)
{
+ struct value *v = NULL;
v = value_static_field (type, i);
+ cp_print_static_field (TYPE_FIELD_TYPE (type, i),
+ v, stream, recurse + 1,
+ options);
}
if (ex.reason < 0)
fprintf_filtered (stream,
_("<error reading variable: %s>"),
ex.message);
- cp_print_static_field (TYPE_FIELD_TYPE (type, i),
- v, stream, recurse + 1,
- options);
}
else if (i == vptr_fieldno && type == vptr_basetype)
{