Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 13 Aug 2011 12:57:48 +0000 (UTC)
From:      Marius Strobl <marius@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org
Subject:   svn commit: r224830 - in stable/8/contrib/gdb: . gdb
Message-ID:  <201108131257.p7DCvmWH016982@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: marius
Date: Sat Aug 13 12:57:48 2011
New Revision: 224830
URL: http://svn.freebsd.org/changeset/base/224830

Log:
  MFC: r224686
  
  Implement functions necessary for compiling fbsd-threads.c.
  
  Reviewed by:	marcel

Modified:
  stable/8/contrib/gdb/FREEBSD-diffs
  stable/8/contrib/gdb/gdb/sparc64fbsd-tdep.c
Directory Properties:
  stable/8/contrib/gdb/   (props changed)

Modified: stable/8/contrib/gdb/FREEBSD-diffs
==============================================================================
--- stable/8/contrib/gdb/FREEBSD-diffs	Sat Aug 13 12:50:39 2011	(r224829)
+++ stable/8/contrib/gdb/FREEBSD-diffs	Sat Aug 13 12:57:48 2011	(r224830)
@@ -927,3 +927,39 @@ diff -N gdb/config/ia64/tm-fbsd.h
 +#include "ia64/tm-ia64.h"
 +
 +#endif /* TM_FBSD_H */
+Index: gdb/sparc64fbsd-tdep.c
+===================================================================
+--- gdb/sparc64fbsd-tdep.c	(revision 223862)
++++ gdb/sparc64fbsd-tdep.c	(working copy)
+@@ -64,6 +64,31 @@ sparc64fbsd_supply_fpregset (const struct regset *
+ {
+   sparc64_supply_fpregset (regcache, regnum, fpregs);
+ }
++
++void
++supply_gregset (const void *gregs)
++{
++  sparc64_supply_gregset (&sparc64fbsd_gregset, current_regcache, -1, gregs);
++}
++
++void
++supply_fpregset (const void *fpregs)
++{
++  sparc64_supply_fpregset (current_regcache, -1, fpregs);
++}
++
++void
++fill_gregset (void *gregs, int regnum)
++{
++  sparc64_collect_gregset (&sparc64fbsd_gregset, current_regcache, regnum,
++			   gregs);
++}
++
++void
++fill_fpregset (void *fpregs, int regnum)
++{
++  sparc64_collect_fpregset (current_regcache, regnum, fpregs);
++}
+ 
+ 
+ /* Signal trampolines.  */

Modified: stable/8/contrib/gdb/gdb/sparc64fbsd-tdep.c
==============================================================================
--- stable/8/contrib/gdb/gdb/sparc64fbsd-tdep.c	Sat Aug 13 12:50:39 2011	(r224829)
+++ stable/8/contrib/gdb/gdb/sparc64fbsd-tdep.c	Sat Aug 13 12:57:48 2011	(r224830)
@@ -64,6 +64,31 @@ sparc64fbsd_supply_fpregset (const struc
 {
   sparc64_supply_fpregset (regcache, regnum, fpregs);
 }
+
+void
+supply_gregset (const void *gregs)
+{
+  sparc64_supply_gregset (&sparc64fbsd_gregset, current_regcache, -1, gregs);
+}
+
+void
+supply_fpregset (const void *fpregs)
+{
+  sparc64_supply_fpregset (current_regcache, -1, fpregs);
+}
+
+void
+fill_gregset (void *gregs, int regnum)
+{
+  sparc64_collect_gregset (&sparc64fbsd_gregset, current_regcache, regnum,
+			   gregs);
+}
+
+void
+fill_fpregset (void *fpregs, int regnum)
+{
+  sparc64_collect_fpregset (current_regcache, regnum, fpregs);
+}
 
 
 /* Signal trampolines.  */



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201108131257.p7DCvmWH016982>