* remote-mips.c: Build fix
@ 2007-12-12 16:34 Maciej W. Rozycki
2007-12-12 18:36 ` Daniel Jacobowitz
0 siblings, 1 reply; 2+ messages in thread
From: Maciej W. Rozycki @ 2007-12-12 16:34 UTC (permalink / raw)
To: gdb-patches; +Cc: Nigel Stephens, Maciej W. Rozycki
Hello,
The deprecated_register_valid[] array has been removed and
regcache_set_valid_p() has to be used instead. Following is a fix that
makes remote-mips.c build again.
2007-12-12 Nigel Stephens <nigel@mips.com>
* remote-mips.c (mips_load): Use regcache_set_valid_p() instead
of setting deprecated_register_valid array directly.
OK to apply?
Maciej
14440-5.diff
Index: binutils-quilt/src/gdb/remote-mips.c
===================================================================
--- binutils-quilt.orig/src/gdb/remote-mips.c 2007-12-12 16:08:14.000000000 +0000
+++ binutils-quilt/src/gdb/remote-mips.c 2007-12-12 16:08:26.000000000 +0000
@@ -3274,7 +3274,8 @@
/* Work around problem where PMON monitor updates the PC after a load
to a different value than GDB thinks it has. The following ensures
that the write_pc() WILL update the PC value: */
- deprecated_register_valid[gdbarch_pc_regnum (current_gdbarch)] = 0;
+ regcache_set_valid_p (get_current_regcache (),
+ gdbarch_pc_regnum (current_gdbarch), 0);
}
if (exec_bfd)
write_pc (bfd_get_start_address (exec_bfd));
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: remote-mips.c: Build fix
2007-12-12 16:34 remote-mips.c: Build fix Maciej W. Rozycki
@ 2007-12-12 18:36 ` Daniel Jacobowitz
0 siblings, 0 replies; 2+ messages in thread
From: Daniel Jacobowitz @ 2007-12-12 18:36 UTC (permalink / raw)
To: Maciej W. Rozycki; +Cc: gdb-patches, Nigel Stephens, Maciej W. Rozycki
On Wed, Dec 12, 2007 at 04:26:13PM +0000, Maciej W. Rozycki wrote:
> Hello,
>
> The deprecated_register_valid[] array has been removed and
> regcache_set_valid_p() has to be used instead. Following is a fix that
> makes remote-mips.c build again.
>
> 2007-12-12 Nigel Stephens <nigel@mips.com>
>
> * remote-mips.c (mips_load): Use regcache_set_valid_p() instead
> of setting deprecated_register_valid array directly.
>
> OK to apply?
OK.
--
Daniel Jacobowitz
CodeSourcery
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-12-12 16:34 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-12-12 16:34 remote-mips.c: Build fix Maciej W. Rozycki
2007-12-12 18:36 ` Daniel Jacobowitz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox