aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Kingdon <jkingdon@engr.sgi.com>1993-07-09 21:19:17 +0000
committerJim Kingdon <jkingdon@engr.sgi.com>1993-07-09 21:19:17 +0000
commitc4f8f209e79ee0b2d9e10f82e73f26f65bab17eb (patch)
tree16da6a0c6356205c13d13f2409a96d0384ba1fac
parent19bdd57f75a9868e0c66468eea9737e9bea53537 (diff)
downloadgdb-c4f8f209e79ee0b2d9e10f82e73f26f65bab17eb.zip
gdb-c4f8f209e79ee0b2d9e10f82e73f26f65bab17eb.tar.gz
gdb-c4f8f209e79ee0b2d9e10f82e73f26f65bab17eb.tar.bz2
* config/sparc/tm-sparc.h: Add comment suggesting that removing
ins and locals from the registers array might clean things up.
-rw-r--r--gdb/config/sparc/tm-sparc.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/gdb/config/sparc/tm-sparc.h b/gdb/config/sparc/tm-sparc.h
index 07c8cde..b6c376d 100644
--- a/gdb/config/sparc/tm-sparc.h
+++ b/gdb/config/sparc/tm-sparc.h
@@ -162,7 +162,15 @@ extern CORE_ADDR sparc_pc_adjust();
#define CPS_REGNUM 71 /* Coprocessor status register */
/* Total amount of space needed to store our copies of the machine's
- register state, the array `registers'. */
+ register state, the array `registers'. On the sparc, `registers'
+ contains the ins and locals, even though they are saved on the
+ stack rather than with the other registers, and this causes hair
+ and confusion in places like pop_frame. It probably would be
+ better to remove the ins and locals from `registers', make sure
+ that get_saved_register can get them from the stack (even in the
+ innermost frame), and make this the way to access them. For the
+ frame pointer we would do that via TARGET_READ_FP. */
+
#define REGISTER_BYTES (32*4+32*4+8*4)
/* Index within `registers' of the first byte of the space for