diff options
author | marius <marius@FreeBSD.org> | 2011-08-06 17:52:25 +0000 |
---|---|---|
committer | marius <marius@FreeBSD.org> | 2011-08-06 17:52:25 +0000 |
commit | 446800d1666d90b7e67f2537bd9013b98d6b39a8 (patch) | |
tree | 9fe6246eab9dcd3d43812ec8d5e61b616b3074fb | |
parent | 5f0df85e2bde5cd5ec7803dd66bc0ff15e318258 (diff) | |
download | FreeBSD-src-446800d1666d90b7e67f2537bd9013b98d6b39a8.zip FreeBSD-src-446800d1666d90b7e67f2537bd9013b98d6b39a8.tar.gz |
Implement functions necessary for compiling fbsd-threads.c.
Reviewed by: marcel
Approved by: re (kib)
MFC after: 1 week
-rw-r--r-- | contrib/gdb/FREEBSD-diffs | 36 | ||||
-rw-r--r-- | contrib/gdb/gdb/sparc64fbsd-tdep.c | 25 |
2 files changed, 61 insertions, 0 deletions
diff --git a/contrib/gdb/FREEBSD-diffs b/contrib/gdb/FREEBSD-diffs index 85eb8d8..3f84f9d 100644 --- a/contrib/gdb/FREEBSD-diffs +++ b/contrib/gdb/FREEBSD-diffs @@ -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. */ diff --git a/contrib/gdb/gdb/sparc64fbsd-tdep.c b/contrib/gdb/gdb/sparc64fbsd-tdep.c index 3c1335d..60d45b6 100644 --- a/contrib/gdb/gdb/sparc64fbsd-tdep.c +++ b/contrib/gdb/gdb/sparc64fbsd-tdep.c @@ -64,6 +64,31 @@ sparc64fbsd_supply_fpregset (const struct regset *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. */ |