From d292a9723dae9eb829d077bc8d3d76a87f75553f Mon Sep 17 00:00:00 2001 From: Joel Brobecker Date: Thu, 27 Sep 2012 12:53:13 +0000 Subject: [PATCH] sol-thread.c: Remove #if 0-ed code. gdb/ChangeLog: * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs): Remove commented-out code. --- gdb/ChangeLog | 5 +++++ gdb/sol-thread.c | 50 ------------------------------------------------ 2 files changed, 5 insertions(+), 50 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 7dc5fa675d4..fe6bc6038a1 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2012-09-27 Joel Brobecker + + * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs): + Remove 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 c93498ff220..d948e9ca760 100644 --- a/gdb/sol-thread.c +++ b/gdb/sol-thread.c @@ -966,26 +966,6 @@ ps_plog (const char *fmt, ...) ps_err_e ps_lgetxregsize (gdb_ps_prochandle_t ph, lwpid_t lwpid, int *xregsize) { -#if 0 - int lwp_fd; - int regsize; - ps_err_e val; - - val = get_lwp_fd (ph, lwpid, &lwp_fd); - if (val != PS_OK) - return val; - - if (ioctl (lwp_fd, PIOCGXREGSIZE, ®size)) - { - if (errno == EINVAL) - return PS_NOFREGS; /* XXX Wrong code, but this is the closest - thing in proc_service.h */ - - print_sys_errmsg ("ps_lgetxregsize (): PIOCGXREGSIZE", errno); - return PS_ERR; - } -#endif - return PS_OK; } @@ -994,21 +974,6 @@ ps_lgetxregsize (gdb_ps_prochandle_t ph, lwpid_t lwpid, int *xregsize) ps_err_e ps_lgetxregs (gdb_ps_prochandle_t ph, lwpid_t lwpid, caddr_t xregset) { -#if 0 - int lwp_fd; - ps_err_e val; - - val = get_lwp_fd (ph, lwpid, &lwp_fd); - if (val != PS_OK) - return val; - - if (ioctl (lwp_fd, PIOCGXREG, xregset)) - { - print_sys_errmsg ("ps_lgetxregs (): PIOCGXREG", errno); - return PS_ERR; - } -#endif - return PS_OK; } @@ -1017,21 +982,6 @@ ps_lgetxregs (gdb_ps_prochandle_t ph, lwpid_t lwpid, caddr_t xregset) ps_err_e ps_lsetxregs (gdb_ps_prochandle_t ph, lwpid_t lwpid, caddr_t xregset) { -#if 0 - int lwp_fd; - ps_err_e val; - - val = get_lwp_fd (ph, lwpid, &lwp_fd); - if (val != PS_OK) - return val; - - if (ioctl (lwp_fd, PIOCSXREG, xregset)) - { - print_sys_errmsg ("ps_lsetxregs (): PIOCSXREG", errno); - return PS_ERR; - } -#endif - return PS_OK; } -- 2.30.2