[stabs] The address of Fortran common blocks may be > INT_MAX.
authorJoel Brobecker <brobecker@gnat.com>
Tue, 13 Mar 2012 16:29:16 +0000 (16:29 +0000)
committerJoel Brobecker <brobecker@gnat.com>
Tue, 13 Mar 2012 16:29:16 +0000 (16:29 +0000)
gdb/
2012-03-08  Chris January  <chris.january@allinea.com>

        * stabsread.c (fix_common_block): Change type of valu argument
        to CORE_ADDR.

gdb/ChangeLog
gdb/stabsread.c

index 32b4480..ccb66a1 100644 (file)
@@ -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.
 
index afcfe06..ac82652 100644 (file)
@@ -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);