diff options
author | Mark Alexander <marka@cygnus> | 1996-10-22 01:26:20 +0000 |
---|---|---|
committer | Mark Alexander <marka@cygnus> | 1996-10-22 01:26:20 +0000 |
commit | d8831024480595b93fa9c54f87478cf29f6a7508 (patch) | |
tree | 6c854ef090c48c19f4cd469cec03dcb41f4b8cf9 /gdb/mdebugread.c | |
parent | bf39474f1526af4e7b1b105a4c11d77fb1db7ad7 (diff) | |
download | gdb-d8831024480595b93fa9c54f87478cf29f6a7508.zip gdb-d8831024480595b93fa9c54f87478cf29f6a7508.tar.gz gdb-d8831024480595b93fa9c54f87478cf29f6a7508.tar.bz2 |
* mdebugread.c (parse_partial_symbols): Fix 64-bit
sign-extension problems in calculating psymtab addresses.
* buildsym.c (end_symtab): Use macro to pop context.
Diffstat (limited to 'gdb/mdebugread.c')
-rw-r--r-- | gdb/mdebugread.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gdb/mdebugread.c b/gdb/mdebugread.c index 49db557..3f67503 100644 --- a/gdb/mdebugread.c +++ b/gdb/mdebugread.c @@ -2567,7 +2567,7 @@ parse_partial_symbols (objfile, section_offsets) { if (sh.st == stProc || sh.st == stStaticProc) { - long procaddr; + CORE_ADDR procaddr; long isym; sh.value += ANOFFSET (section_offsets, SECT_OFF_TEXT); @@ -2594,7 +2594,7 @@ parse_partial_symbols (objfile, section_offsets) &sh); if (sh.st == stEnd) { - long high = procaddr + sh.value; + CORE_ADDR high = procaddr + sh.value; /* Kludge for Irix 5.2 zero fh->adr. */ if (!relocatable @@ -2708,8 +2708,8 @@ parse_partial_symbols (objfile, section_offsets) switch (sh.st) { - long high; - long procaddr; + CORE_ADDR high; + CORE_ADDR procaddr; int new_sdx; case stStaticProc: |