* dwarfread.c (struct dieinfo): Use CORE_ADDR for at_{low,high}_pc.

(target_to_host): Change result type to CORE_ADDR.
This commit is contained in:
David Edelsohn 1995-03-03 06:26:25 +00:00
parent 462df1228c
commit 306d27ca4e
2 changed files with 16 additions and 5 deletions

View File

@ -1,3 +1,12 @@
Thu Mar 2 22:20:22 1995 Doug Evans <dje@canuck.cygnus.com>
* dwarfread.c (struct dieinfo): Use CORE_ADDR for at_{low,high}_pc.
(target_to_host): Change result type to CORE_ADDR.
Thu Mar 2 15:13:04 1995 Jim Kingdon (kingdon@lioth.cygnus.com)
* rs6000-tdep.c: Fix byte-swapping sins.
Thu Mar 2 16:48:45 1995 Michael Meissner <meissner@cygnus.com> Thu Mar 2 16:48:45 1995 Michael Meissner <meissner@cygnus.com>
* rs6000-tdep.c (branch_dest): Minor code cleanup, don't share * rs6000-tdep.c (branch_dest): Minor code cleanup, don't share

View File

@ -300,8 +300,8 @@ struct dieinfo {
unsigned long at_bit_size; unsigned long at_bit_size;
BLOCK * at_element_list; BLOCK * at_element_list;
unsigned long at_stmt_list; unsigned long at_stmt_list;
unsigned long at_low_pc; CORE_ADDR at_low_pc;
unsigned long at_high_pc; CORE_ADDR at_high_pc;
unsigned long at_language; unsigned long at_language;
unsigned long at_member; unsigned long at_member;
unsigned long at_discr; unsigned long at_discr;
@ -451,7 +451,7 @@ static const struct language_defn *cu_language_defn;
static int static int
attribute_size PARAMS ((unsigned int)); attribute_size PARAMS ((unsigned int));
static unsigned long static CORE_ADDR
target_to_host PARAMS ((char *, int, int, struct objfile *)); target_to_host PARAMS ((char *, int, int, struct objfile *));
static void static void
@ -3797,16 +3797,18 @@ NOTES
use it as signed data, then we need to explicitly sign extend the use it as signed data, then we need to explicitly sign extend the
result until the bfd library is able to do this for us. result until the bfd library is able to do this for us.
FIXME: Would a 32 bit target ever need an 8 byte result?
*/ */
static unsigned long static CORE_ADDR
target_to_host (from, nbytes, signextend, objfile) target_to_host (from, nbytes, signextend, objfile)
char *from; char *from;
int nbytes; int nbytes;
int signextend; /* FIXME: Unused */ int signextend; /* FIXME: Unused */
struct objfile *objfile; struct objfile *objfile;
{ {
unsigned long rtnval; CORE_ADDR rtnval;
switch (nbytes) switch (nbytes)
{ {