From: Joel Brobecker Date: Thu, 27 Sep 2012 12:53:57 +0000 (+0000) Subject: sol-thread.c: Remove commented-out code. X-Git-Url: http://git.efficios.com/?a=commitdiff_plain;h=807160da3c24f9a8adfb0c2b04352ab56ebc1d61;p=deliverable%2Fbinutils-gdb.git sol-thread.c: Remove commented-out code. gdb/ChangeLog: * sol-thread.c (sol_thread_fetch_registers) (sol_thread_store_registers): Delete commented out code. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index aba3e0fd20..8faa029878 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2012-09-27 Joel Brobecker + + * sol-thread.c (sol_thread_fetch_registers) + (sol_thread_store_registers): Delete commented out code. + 2012-09-27 Joel Brobecker * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs): diff --git a/gdb/sol-thread.c b/gdb/sol-thread.c index 585a77f3b6..bd31f4f115 100644 --- a/gdb/sol-thread.c +++ b/gdb/sol-thread.c @@ -443,11 +443,6 @@ sol_thread_fetch_registers (struct target_ops *ops, gdb_fpregset_t *fpregset_p = &fpregset; struct target_ops *beneath = find_target_beneath (ops); -#if 0 - int xregsize; - caddr_t xregset; -#endif - if (!is_thread (inferior_ptid)) { /* It's an LWP; pass the request on to the layer beneath. */ @@ -488,23 +483,6 @@ sol_thread_fetch_registers (struct target_ops *ops, 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. */ - val = td_thr_getxregsize (&thandle, &xregsize); - if (val != TD_OK && val != TD_NOXREGS) - error (_("sol_thread_fetch_registers: td_thr_getxregsize %s"), - td_err_string (val)); - - if (val == TD_OK) - { - xregset = alloca (xregsize); - val = td_thr_getxregs (&thandle, xregset); - if (val != TD_OK) - error (_("sol_thread_fetch_registers: td_thr_getxregs %s"), - td_err_string (val)); - } -#endif } static void @@ -516,10 +494,6 @@ sol_thread_store_registers (struct target_ops *ops, td_err_e val; prgregset_t gregset; prfpregset_t fpregset; -#if 0 - int xregsize; - caddr_t xregset; -#endif if (!is_thread (inferior_ptid)) { @@ -557,23 +531,6 @@ sol_thread_store_registers (struct target_ops *ops, /* Restore new register value. */ regcache_raw_supply (regcache, regnum, old_value); - -#if 0 - /* FIXME: libthread_db doesn't seem to handle this right. */ - val = td_thr_getxregsize (&thandle, &xregsize); - if (val != TD_OK && val != TD_NOXREGS) - error (_("sol_thread_store_registers: td_thr_getxregsize %s"), - td_err_string (val)); - - if (val == TD_OK) - { - xregset = alloca (xregsize); - val = td_thr_getxregs (&thandle, xregset); - if (val != TD_OK) - error (_("sol_thread_store_registers: td_thr_getxregs %s"), - td_err_string (val)); - } -#endif } fill_gregset (regcache, (gdb_gregset_t *) &gregset, regnum); @@ -587,17 +544,6 @@ sol_thread_store_registers (struct target_ops *ops, if (val != TD_OK) error (_("sol_thread_store_registers: td_thr_setfpregs %s"), td_err_string (val)); - -#if 0 - /* FIXME: libthread_db doesn't seem to handle this right. */ - val = td_thr_getxregsize (&thandle, &xregsize); - if (val != TD_OK && val != TD_NOXREGS) - error (_("sol_thread_store_registers: td_thr_getxregsize %s"), - td_err_string (val)); - - /* ??? Should probably do something about writing the xregs here, - but what are they? */ -#endif } /* Perform partial transfers on OBJECT. See target_read_partial and