From b4aa388a2099d88f1d521a79bdfabb0501a03f1a Mon Sep 17 00:00:00 2001 From: Siddhesh Poyarekar Date: Mon, 24 Sep 2012 10:25:09 +0000 Subject: [PATCH] * m2-typeprint.c (m2_enum): Expand LASTVAL to LONGEST. * p-valprint.c (pascal_type_print_base): Likewise. --- gdb/ChangeLog | 5 +++++ gdb/m2-typeprint.c | 3 ++- gdb/p-typeprint.c | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 0b1d7718e1..0a1ccdff41 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2012-09-24 Siddhesh Poyarekar + + * m2-typeprint.c (m2_enum): Expand LASTVAL to LONGEST. + * p-valprint.c (pascal_type_print_base): Likewise. + 2012-09-22 Yao Qi * remote.c (remote_get_trace_status): Remove setting default diff --git a/gdb/m2-typeprint.c b/gdb/m2-typeprint.c index fb3d49c6de..c735eb79d9 100644 --- a/gdb/m2-typeprint.c +++ b/gdb/m2-typeprint.c @@ -587,7 +587,8 @@ m2_record_fields (struct type *type, struct ui_file *stream, int show, void m2_enum (struct type *type, struct ui_file *stream, int show, int level) { - int lastval, i, len; + LONGEST lastval; + int i, len; if (show < 0) { diff --git a/gdb/p-typeprint.c b/gdb/p-typeprint.c index fceb97a07e..794d09c759 100644 --- a/gdb/p-typeprint.c +++ b/gdb/p-typeprint.c @@ -440,7 +440,7 @@ pascal_type_print_base (struct type *type, struct ui_file *stream, int show, { int i; int len; - int lastval; + LONGEST lastval; enum { s_none, s_public, s_private, s_protected -- 2.34.1