This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Modernize solaris threads support.


On Thursday 26 February 2009 19:18:22, David Daney wrote:

> > On Monday 16 February 2009 05:49:48, Pedro Alves wrote:
> [...]
> >>         m68klinux-nat.c, m88kbsd-nat.c, mips-linux-nat.c,
> 
> Unfortunately I think your change to mips-linux-nat.c breaks things.
> 
> You added a struct target_ops * parameter to super_fetch_registers and 
> super_store_registers, but did not adjust the call sites.
> 

Indeed.  Fixed now.  Thanks.

-- 
Pedro Alves

2009-02-26  Pedro Alves  <pedro@codesourcery.com>

	* mips-linux-nat.c (mips64_linux_fetch_registers): Pass `ops' to
	call to super_fetch_registers.
	(mips64_linux_store_registers): Pass `ops' to call to
	super_store_registers.

---
 gdb/mips-linux-nat.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Index: src/gdb/mips-linux-nat.c
===================================================================
--- src.orig/gdb/mips-linux-nat.c	2009-02-26 19:35:26.000000000 +0000
+++ src/gdb/mips-linux-nat.c	2009-02-26 19:35:56.000000000 +0000
@@ -314,7 +314,7 @@ mips64_linux_fetch_registers (struct tar
   /* If we know, or just found out, that PTRACE_GETREGS does not work, fall
      back to PTRACE_PEEKUSER.  */
   if (!have_ptrace_regsets)
-    super_fetch_registers (regcache, regnum);
+    super_fetch_registers (ops, regcache, regnum);
 }
 
 /* Store REGNO (or all registers if REGNO == -1) to the target
@@ -331,7 +331,7 @@ mips64_linux_store_registers (struct tar
   /* If we know, or just found out, that PTRACE_GETREGS does not work, fall
      back to PTRACE_PEEKUSER.  */
   if (!have_ptrace_regsets)
-    super_store_registers (regcache, regnum);
+    super_store_registers (ops, regcache, regnum);
 }
 
 /* Return the address in the core dump or inferior of register


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]