summaryrefslogtreecommitdiff
path: root/gdb/mdebugread.c
diff options
context:
space:
mode:
authorMark Alexander <marka@cygnus>1996-10-22 01:26:20 +0000
committerMark Alexander <marka@cygnus>1996-10-22 01:26:20 +0000
commitd8831024480595b93fa9c54f87478cf29f6a7508 (patch)
tree6c854ef090c48c19f4cd469cec03dcb41f4b8cf9 /gdb/mdebugread.c
parentbf39474f1526af4e7b1b105a4c11d77fb1db7ad7 (diff)
downloadbinutils-gdb-d8831024480595b93fa9c54f87478cf29f6a7508.tar.gz
* 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.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gdb/mdebugread.c b/gdb/mdebugread.c
index 49db55778a9..3f67503e151 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: