|
Lines 1023-1033
i386_frame_cache (struct frame_info *nex
Link Here
|
| 1023 |
/* This will be added back below. */ |
1023 |
/* This will be added back below. */ |
| 1024 |
cache->saved_regs[I386_EIP_REGNUM] -= cache->base; |
1024 |
cache->saved_regs[I386_EIP_REGNUM] -= cache->base; |
| 1025 |
} |
1025 |
} |
| 1026 |
else |
1026 |
else if (cache->pc) |
| 1027 |
{ |
1027 |
{ |
| 1028 |
frame_unwind_register (next_frame, I386_ESP_REGNUM, buf); |
1028 |
frame_unwind_register (next_frame, I386_ESP_REGNUM, buf); |
| 1029 |
cache->base = extract_unsigned_integer (buf, 4) + cache->sp_offset; |
1029 |
cache->base = extract_unsigned_integer (buf, 4) + cache->sp_offset; |
| 1030 |
} |
1030 |
} |
|
|
1031 |
else |
| 1032 |
cache->saved_regs[I386_EBP_REGNUM] = 0; |
| 1031 |
} |
1033 |
} |
| 1032 |
|
1034 |
|
| 1033 |
/* Now that we have the base address for the stack frame we can |
1035 |
/* Now that we have the base address for the stack frame we can |