View | Details | Raw Unified | Return to bug 390722
Collapse All | Expand All

(-)gdb/i386-tdep.c (-1 / +3 lines)
Lines 963-973 i386_frame_cache (struct frame_info *nex Link Here
963
	  /* This will be added back below.  */
963
	  /* This will be added back below.  */
964
	  cache->saved_regs[I386_EIP_REGNUM] -= cache->base;
964
	  cache->saved_regs[I386_EIP_REGNUM] -= cache->base;
965
	}
965
	}
966
      else
966
      else if (cache->pc)
967
	{
967
	{
968
	  frame_unwind_register (next_frame, I386_ESP_REGNUM, buf);
968
	  frame_unwind_register (next_frame, I386_ESP_REGNUM, buf);
969
	  cache->base = extract_unsigned_integer (buf, 4) + cache->sp_offset;
969
	  cache->base = extract_unsigned_integer (buf, 4) + cache->sp_offset;
970
	}
970
	}
971
      else
972
	cache->saved_regs[I386_EBP_REGNUM] = 0;
971
    }
973
    }
972
974
973
  /* Now that we have the base address for the stack frame we can
975
  /* Now that we have the base address for the stack frame we can

Return to bug 390722