aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoel Brobecker <brobecker@gnat.com>2012-11-27 14:09:13 +0000
committerJoel Brobecker <brobecker@gnat.com>2012-11-27 14:09:13 +0000
commitb8293cc8fbeb761fee3ea7e4258ef85d4f50d3df (patch)
treecc0271aa84da14e1e466ceb8240a3d7e71ea88da
parent8c2b9656fa3178519c007ed4c1a2a3da6b61bcaa (diff)
downloadgdb-b8293cc8fbeb761fee3ea7e4258ef85d4f50d3df.zip
gdb-b8293cc8fbeb761fee3ea7e4258ef85d4f50d3df.tar.gz
gdb-b8293cc8fbeb761fee3ea7e4258ef85d4f50d3df.tar.bz2
Fix sparc-solaris build failure (sparc-sol2-nat.c)
Hello, The recent patch for %fsr handling had a couple of tiny mistakes that cause the build to fail on sparc-solaris. Fixed thusly. gdb/ChangeLog: * sparc-sol2-nat.c (supply_gregset): Fix first parameter in call to sparc_supply_fpregset. (fill_fpregset): Fix first parameter in call to sparc_collect_fpregset. Tested on sparc-solaris by rebuilding GDB. Will check it in. Thanks, -- Joel
-rw-r--r--gdb/ChangeLog7
-rw-r--r--gdb/sparc-sol2-nat.c4
2 files changed, 9 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 0d8cad2..9f2ed17 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,10 @@
+2012-11-27 Joel Brobecker <brobecker@adacore.com>
+
+ * sparc-sol2-nat.c (supply_gregset): Fix first parameter in
+ call to sparc_supply_fpregset.
+ (fill_fpregset): Fix first parameter in call to
+ sparc_collect_fpregset.
+
2012-11-27 Daniel Jacobowitz <dan@codesourcery.com>
Kazu Hirata <kazu@codesourcery.com>
Yao Qi <yao@codesourcery.com>
diff --git a/gdb/sparc-sol2-nat.c b/gdb/sparc-sol2-nat.c
index 1972383..45efc0b 100644
--- a/gdb/sparc-sol2-nat.c
+++ b/gdb/sparc-sol2-nat.c
@@ -82,7 +82,7 @@ supply_gregset (struct regcache *regcache, const prgregset_t *gregs)
void
supply_fpregset (struct regcache *regcache, const prfpregset_t *fpregs)
{
- sparc_supply_fpregset (sparc_sol2_fpregset, regcache, -1, fpregs);
+ sparc_supply_fpregset (&sparc_sol2_fpregset, regcache, -1, fpregs);
}
void
@@ -95,7 +95,7 @@ void
fill_fpregset (const struct regcache *regcache,
prfpregset_t *fpregs, int regnum)
{
- sparc_collect_fpregset (sparc_sol2_fpregset, regcache, regnum, fpregs);
+ sparc_collect_fpregset (&sparc_sol2_fpregset, regcache, regnum, fpregs);
}
/* Provide a prototype to silence -Wmissing-prototypes. */