|
Lines 1234-1244
i386_frame_cache (struct frame_info *thi
Link Here
|
| 1234 |
/* This will be added back below. */ |
1234 |
/* This will be added back below. */ |
| 1235 |
cache->saved_regs[I386_EIP_REGNUM] -= cache->base; |
1235 |
cache->saved_regs[I386_EIP_REGNUM] -= cache->base; |
| 1236 |
} |
1236 |
} |
| 1237 |
else |
1237 |
else if (cache->pc) |
| 1238 |
{ |
1238 |
{ |
| 1239 |
get_frame_register (this_frame, I386_ESP_REGNUM, buf); |
1239 |
get_frame_register (this_frame, I386_ESP_REGNUM, buf); |
| 1240 |
cache->base = extract_unsigned_integer (buf, 4) + cache->sp_offset; |
1240 |
cache->base = extract_unsigned_integer (buf, 4) + cache->sp_offset; |
| 1241 |
} |
1241 |
} |
|
|
1242 |
else |
| 1243 |
cache->saved_regs[I386_EBP_REGNUM] = 0; |
| 1242 |
} |
1244 |
} |
| 1243 |
|
1245 |
|
| 1244 |
/* Now that we have the base address for the stack frame we can |
1246 |
/* Now that we have the base address for the stack frame we can |