This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH] Support Fortran common blocks with addresses >INT_MAX.
- From: Chris January <chris dot january at allinea dot com>
- To: gdb-patches at sourceware dot org
- Date: Thu, 08 Mar 2012 14:30:37 +0000
- Subject: [PATCH] Support Fortran common blocks with addresses >INT_MAX.
The address of a Fortran common block may be >INT_MAX. fix_common_block
should be using CORE_ADDR, not int.
2012-03-08 Chris January <chris.january@allinea.com>
* stabsread.c (fix_common_block): Change type of valu argument
to CORE_ADDR.
---
Index: gdb/stabsread.c
===================================================================
--- gdb/stabsread.c.orig 2011-02-17 11:14:42.713081030 +0000
+++ gdb/stabsread.c 2011-02-17 11:15:14.414327296 +0000
@@ -104,7 +104,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 *);
@@ -4805,7 +4805,7 @@ common_block_end (struct objfile *objfil
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);