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]

[commit] 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

---
 gdb/sparc-sol2-nat.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

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.  */
-- 
1.7.0.4


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