diff options
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/m2-typeprint.c | 3 | ||||
-rw-r--r-- | gdb/p-typeprint.c | 2 |
3 files changed, 8 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 0b1d771..0a1ccdf 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2012-09-24 Siddhesh Poyarekar <siddhesh@redhat.com> + + * m2-typeprint.c (m2_enum): Expand LASTVAL to LONGEST. + * p-valprint.c (pascal_type_print_base): Likewise. + 2012-09-22 Yao Qi <yao@codesourcery.com> * remote.c (remote_get_trace_status): Remove setting default diff --git a/gdb/m2-typeprint.c b/gdb/m2-typeprint.c index fb3d49c..c735eb7 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 fceb97a..794d09c 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 |