diff options
author | Geoffrey Noer <noer@cygnus> | 1997-01-28 23:43:36 +0000 |
---|---|---|
committer | Geoffrey Noer <noer@cygnus> | 1997-01-28 23:43:36 +0000 |
commit | 52c8eceee05c146e5252fa63455712c351238ff3 (patch) | |
tree | 72c9693bf88595adbb47d64e17e1381a3047e33c /gdb/mn10200-tdep.c | |
parent | 20d430180173f00e57c7a920d41d08e6d9227fce (diff) | |
download | gdb-52c8eceee05c146e5252fa63455712c351238ff3.zip gdb-52c8eceee05c146e5252fa63455712c351238ff3.tar.gz gdb-52c8eceee05c146e5252fa63455712c351238ff3.tar.bz2 |
Tue Jan 28 15:39:50 1997 Geoffrey Noer <noer@cygnus.com>
* mn10200-tdep.c (mn10200_frame_chain): get basic backtracing
working
Diffstat (limited to 'gdb/mn10200-tdep.c')
-rw-r--r-- | gdb/mn10200-tdep.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/gdb/mn10200-tdep.c b/gdb/mn10200-tdep.c index 03f3cd2..a1f3a11 100644 --- a/gdb/mn10200-tdep.c +++ b/gdb/mn10200-tdep.c @@ -72,7 +72,6 @@ mn10200_frame_chain (fi) /* current pc is fi->pc */ /* current fp is fi->frame */ - /* current sp is: */ curr_sp = read_register (SP_REGNUM); @@ -95,22 +94,22 @@ mn10200_frame_chain (fi) { /* printf("scanning prologue\n"); */ /* FIXME -- fill out this case later */ - return 0x666; /* bogus value */ + return 0x0; /* bogus value */ } if (past_prologue) /* if we don't need to scan the prologue */ { -/* printf("we're past the prologue\n"); */ callers_pc = fi->frame - REGISTER_SIZE; - callers_fp = fi->frame - ((n_movm_args + 1) * REGISTER_SIZE); -/* + callers_fp = fi->frame - (4 * REGISTER_SIZE); + +#if 0 printf("callers_pc = 0x%x ; callers_fp = 0x%x\n", callers_pc, callers_fp); - printf("*callers_pc = 0x%x ; *callers_fp = 0x%x\n", read_memory_integer(callers_pc, REGISTER_SIZE), read_memory_integer(callers_fp, REGISTER_SIZE)); -*/ +#endif + return read_memory_integer(callers_fp, REGISTER_SIZE); } |