diff options
author | Jason Molenda <jmolenda@apple.com> | 1999-08-31 01:14:27 +0000 |
---|---|---|
committer | Jason Molenda <jmolenda@apple.com> | 1999-08-31 01:14:27 +0000 |
commit | 104c1213b4821a4b8664e66db4643a951b461576 (patch) | |
tree | d77adb32fcf044a485e1d4e0bb58e9da0ce39671 /gdb/arm-tdep.c | |
parent | fd485a97b145f7b8abe7c5f5ec63edd8268a4182 (diff) | |
download | gdb-104c1213b4821a4b8664e66db4643a951b461576.zip gdb-104c1213b4821a4b8664e66db4643a951b461576.tar.gz gdb-104c1213b4821a4b8664e66db4643a951b461576.tar.bz2 |
import gdb-1999-08-30 snapshot
Diffstat (limited to 'gdb/arm-tdep.c')
-rw-r--r-- | gdb/arm-tdep.c | 31 |
1 files changed, 18 insertions, 13 deletions
diff --git a/gdb/arm-tdep.c b/gdb/arm-tdep.c index 7598a8d..b3ad024 100644 --- a/gdb/arm-tdep.c +++ b/gdb/arm-tdep.c @@ -833,18 +833,23 @@ arm_init_extra_frame_info (fromleaf, fi) { arm_scan_prologue (fi); - if (!fi->next) /* this is the innermost frame? */ + if (!fi->next) + /* this is the innermost frame? */ fi->frame = read_register (fi->framereg); - else /* not the innermost frame */ + else + /* not the innermost frame */ /* If we have an FP, the callee saved it. */ if (fi->framereg == FP_REGNUM || fi->framereg == THUMB_FP_REGNUM) - if (fi->next->fsr.regs[fi->framereg] != 0) - fi->frame = read_memory_integer (fi->next->fsr.regs[fi->framereg], - 4); - else if (fromleaf) /* If we were called by a frameless fn. - then our frame is still in the frame pointer - register on the board... */ - fi->frame = read_fp (); + { + if (fi->next->fsr.regs[fi->framereg] != 0) + fi->frame = + read_memory_integer (fi->next->fsr.regs[fi->framereg], 4); + else if (fromleaf) + /* If we were called by a frameless fn. then our frame + is still in the frame pointer register on the + board... */ + fi->frame = read_fp (); + } /* Calculate actual addresses of saved registers using offsets determined by arm_scan_prologue. */ @@ -1246,17 +1251,17 @@ arm_othernames () void convert_from_extended (ptr, dbl) void *ptr; - double *dbl; + void *dbl; { - *dbl = *(double *) ptr; + *(double *) dbl = *(double *) ptr; } void convert_to_extended (dbl, ptr) void *ptr; - double *dbl; + void *dbl; { - *(double *) ptr = *dbl; + *(double *) ptr = *(double *) dbl; } static int |