aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSiddhesh Poyarekar <siddhesh@sourceware.org>2012-09-24 10:25:09 +0000
committerSiddhesh Poyarekar <siddhesh@sourceware.org>2012-09-24 10:25:09 +0000
commitb4aa388a2099d88f1d521a79bdfabb0501a03f1a (patch)
tree08bede6db2aa03df3989f16af4345ebdffaf1f87
parentb6b05ca2740cb638a0465f9c07b71a731026e40c (diff)
downloadfsf-binutils-gdb-b4aa388a2099d88f1d521a79bdfabb0501a03f1a.zip
fsf-binutils-gdb-b4aa388a2099d88f1d521a79bdfabb0501a03f1a.tar.gz
fsf-binutils-gdb-b4aa388a2099d88f1d521a79bdfabb0501a03f1a.tar.bz2
* m2-typeprint.c (m2_enum): Expand LASTVAL to LONGEST.
* p-valprint.c (pascal_type_print_base): Likewise.
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/m2-typeprint.c3
-rw-r--r--gdb/p-typeprint.c2
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