From: Joel Brobecker Date: Mon, 16 Mar 2009 21:12:46 +0000 (+0000) Subject: * remote-mips.c (mips_load): Replace call to regcache_set_valid_p, X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=9f3ba2c986b1dfcbef83e207b04b7a8c36813e22;p=pf3gnuchains%2Fpf3gnuchains3x.git * remote-mips.c (mips_load): Replace call to regcache_set_valid_p, which is undefined, by call to regcache_invalidate, which should do what the original author wanted to do. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 0ba4dcc0f1..b6474deb38 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,11 @@ 2009-03-16 Joel Brobecker + * remote-mips.c (mips_load): Replace call to regcache_set_valid_p, + which is undefined, by call to regcache_invalidate, which should + do what the original author wanted to do. + +2009-03-16 Joel Brobecker + * remote-mips.c (mips_mourn_inferior): Add missing ops parameter. (mips_create_inferior): Likewise. diff --git a/gdb/remote-mips.c b/gdb/remote-mips.c index 348a63cc81..9b514b13ca 100644 --- a/gdb/remote-mips.c +++ b/gdb/remote-mips.c @@ -3276,9 +3276,9 @@ mips_load (char *file, int from_tty) to a different value than GDB thinks it has. The following ensures that the write_pc() WILL update the PC value: */ struct regcache *regcache = get_current_regcache (); - regcache_set_valid_p (regcache, - gdbarch_pc_regnum (get_regcache_arch (regcache)), - 0); + + regcache_invalidate (regcache, + gdbarch_pc_regnum (get_regcache_arch (regcache))); } if (exec_bfd) write_pc (bfd_get_start_address (exec_bfd));