aboutsummaryrefslogtreecommitdiff
path: root/gdb/dwarfread.c
diff options
context:
space:
mode:
authorDavid Edelsohn <dje.gcc@gmail.com>1995-03-03 06:26:25 +0000
committerDavid Edelsohn <dje.gcc@gmail.com>1995-03-03 06:26:25 +0000
commit306d27ca4e438a566681de9accced06b424a496e (patch)
tree42f05ba23172b5dbb81f11b18e575cbe3ce0196f /gdb/dwarfread.c
parent462df1228c2918258892a603ee3269658c23d9c3 (diff)
downloadgdb-306d27ca4e438a566681de9accced06b424a496e.zip
gdb-306d27ca4e438a566681de9accced06b424a496e.tar.gz
gdb-306d27ca4e438a566681de9accced06b424a496e.tar.bz2
* dwarfread.c (struct dieinfo): Use CORE_ADDR for at_{low,high}_pc.
(target_to_host): Change result type to CORE_ADDR.
Diffstat (limited to 'gdb/dwarfread.c')
-rw-r--r--gdb/dwarfread.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/gdb/dwarfread.c b/gdb/dwarfread.c
index ec6182d..c059ad9 100644
--- a/gdb/dwarfread.c
+++ b/gdb/dwarfread.c
@@ -300,8 +300,8 @@ struct dieinfo {
unsigned long at_bit_size;
BLOCK * at_element_list;
unsigned long at_stmt_list;
- unsigned long at_low_pc;
- unsigned long at_high_pc;
+ CORE_ADDR at_low_pc;
+ CORE_ADDR at_high_pc;
unsigned long at_language;
unsigned long at_member;
unsigned long at_discr;
@@ -451,7 +451,7 @@ static const struct language_defn *cu_language_defn;
static int
attribute_size PARAMS ((unsigned int));
-static unsigned long
+static CORE_ADDR
target_to_host PARAMS ((char *, int, int, struct objfile *));
static void
@@ -3797,16 +3797,18 @@ NOTES
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.
+ 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)
char *from;
int nbytes;
int signextend; /* FIXME: Unused */
struct objfile *objfile;
{
- unsigned long rtnval;
+ CORE_ADDR rtnval;
switch (nbytes)
{