From e71c308dd3f25fef1c86b397bb330e6629098daf Mon Sep 17 00:00:00 2001 From: Daniel Jacobowitz Date: Wed, 24 Oct 2007 13:57:58 +0000 Subject: 2007-10-24 Pedro Alves PR gdb/2341 * sol-thread.c (sol_thread_fetch_registers): Work around gcc 3.4 alias warning bug. --- gdb/sol-thread.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'gdb/sol-thread.c') diff --git a/gdb/sol-thread.c b/gdb/sol-thread.c index bd4f1b2..bf40696 100644 --- a/gdb/sol-thread.c +++ b/gdb/sol-thread.c @@ -484,6 +484,9 @@ sol_thread_fetch_registers (struct regcache *regcache, int regnum) td_err_e val; prgregset_t gregset; prfpregset_t fpregset; + gdb_gregset_t *gregset_p = &gregset; + gdb_fpregset_t *fpregset_p = &fpregset; + #if 0 int xregsize; caddr_t xregset; @@ -530,8 +533,8 @@ sol_thread_fetch_registers (struct regcache *regcache, int regnum) calling the td routines because the td routines call ps_lget* which affect the values stored in the registers array. */ - supply_gregset (regcache, (const gdb_gregset_t *) &gregset); - supply_fpregset (regcache, (const gdb_fpregset_t *) &fpregset); + supply_gregset (regcache, (const gdb_gregset_t *) gregset_p); + supply_fpregset (regcache, (const gdb_fpregset_t *) fpregset_p); #if 0 /* FIXME: libthread_db doesn't seem to handle this right. */ -- cgit v1.1