Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [PATCH] Support Fortran common blocks with addresses >INT_MAX.
@ 2012-03-08 14:31 Chris January
  2012-03-09 19:39 ` Joel Brobecker
  0 siblings, 1 reply; 9+ messages in thread
From: Chris January @ 2012-03-08 14:31 UTC (permalink / raw)
  To: gdb-patches

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);
 



^ permalink raw reply	[flat|nested] 9+ messages in thread
* [PATCH] Support Fortran common blocks with addresses >INT_MAX.
@ 2012-03-08 14:31 Chris January
  0 siblings, 0 replies; 9+ messages in thread
From: Chris January @ 2012-03-08 14:31 UTC (permalink / raw)
  To: gdb-patches

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);
 




^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2012-03-13 16:50 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-03-08 14:31 [PATCH] Support Fortran common blocks with addresses >INT_MAX Chris January
2012-03-09 19:39 ` Joel Brobecker
2012-03-12  8:45   ` Chris January
2012-03-12 15:30     ` Joel Brobecker
2012-03-12 19:30       ` Tom Tromey
2012-03-13 15:17       ` Chris January
2012-03-13 16:50         ` Joel Brobecker
2012-03-12 19:28     ` Tom Tromey
  -- strict thread matches above, loose matches on Subject: below --
2012-03-08 14:31 Chris January

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox