summaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorJoel Brobecker <brobecker@gnat.com>2012-03-13 16:29:15 +0000
committerJoel Brobecker <brobecker@gnat.com>2012-03-13 16:29:15 +0000
commitd2b433de6faa61355736bc72318f929fd4ca98f5 (patch)
treea627ade55c3e75a05af52de73110c509b1e53518 /gdb
parentc7412c9f6c1bdbbb8e4fcc20313994cc243accec (diff)
downloadgdb-d2b433de6faa61355736bc72318f929fd4ca98f5.tar.gz
[stabs] The address of Fortran common blocks may be > INT_MAX.
gdb/ 2012-03-08 Chris January <chris.january@allinea.com> * stabsread.c (fix_common_block): Change type of valu argument to CORE_ADDR.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/stabsread.c4
2 files changed, 7 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 32b4480823f..ccb66a19444 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,10 @@
2012-03-13 Chris January <chris.january@allinea.com>
+ * stabsread.c (fix_common_block): Change type of valu argument
+ to CORE_ADDR.
+
+2012-03-13 Chris January <chris.january@allinea.com>
+
* rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0
instruction.
diff --git a/gdb/stabsread.c b/gdb/stabsread.c
index afcfe0676f3..ac82652bac6 100644
--- a/gdb/stabsread.c
+++ b/gdb/stabsread.c
@@ -98,7 +98,7 @@ static void
patch_block_stabs (struct pending *, struct pending_stabs *,
struct objfile *);
-static void fix_common_block (struct symbol *, int);
+static void fix_common_block (struct symbol *, CORE_ADDR);
static int read_type_number (char **, int *);
@@ -4397,7 +4397,7 @@ common_block_end (struct objfile *objfile)
the common block name). */
static void
-fix_common_block (struct symbol *sym, int valu)
+fix_common_block (struct symbol *sym, CORE_ADDR valu)
{
struct pending *next = (struct pending *) SYMBOL_TYPE (sym);