X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=gdb%2Fi386-nto-tdep.c;h=4a1eaace82877c63ff892d77b496433b88edd6d5;hb=71bd6bd4140e48a003268c31ca6ea9251cdff604;hp=4047f42b0173206f8eb37209f7112da62e69b606;hpb=46019f27748f9bfd2f50cee4e281d57c82da791b;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/i386-nto-tdep.c b/gdb/i386-nto-tdep.c index 4047f42b01..4a1eaace82 100644 --- a/gdb/i386-nto-tdep.c +++ b/gdb/i386-nto-tdep.c @@ -87,9 +87,9 @@ static void i386nto_supply_fpregset (char *fpregs) { if (nto_cpuinfo_valid && nto_cpuinfo_flags | X86_CPU_FXSR) - i387_supply_fxsave (fpregs); + i387_supply_fxsave (current_regcache, -1, fpregs); else - i387_supply_fsave (fpregs); + i387_supply_fsave (current_regcache, -1, fpregs); } static void @@ -240,7 +240,7 @@ static CORE_ADDR i386nto_sigcontext_addr (struct frame_info *next_frame) { char buf[4]; - unsigned sp; + CORE_ADDR sp; frame_unwind_register (next_frame, SP_REGNUM, buf); sp = extract_unsigned_integer (buf, 4); @@ -270,7 +270,8 @@ i386nto_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch) /* NTO uses ELF. */ i386_elf_init_abi (info, gdbarch); - /* Neutrino rewinds to look more normal. */ + /* Neutrino rewinds to look more normal. Need to override the i386 + default which is [unfortunatly] to decrement the PC. */ set_gdbarch_decr_pc_after_break (gdbarch, 0); /* NTO has shared libraries. */