diff options
author | Joel Brobecker <brobecker@gnat.com> | 2012-09-27 12:53:13 +0000 |
---|---|---|
committer | Joel Brobecker <brobecker@gnat.com> | 2012-09-27 12:53:13 +0000 |
commit | d292a9723dae9eb829d077bc8d3d76a87f75553f (patch) | |
tree | 44b85a32304a691c2d0f67bcc2afc8a05ca93031 /gdb/sol-thread.c | |
parent | 8c3da00317320cff5cadbf340c3a0f4da7c40fd1 (diff) | |
download | gdb-d292a9723dae9eb829d077bc8d3d76a87f75553f.zip gdb-d292a9723dae9eb829d077bc8d3d76a87f75553f.tar.gz gdb-d292a9723dae9eb829d077bc8d3d76a87f75553f.tar.bz2 |
sol-thread.c: Remove #if 0-ed code.
gdb/ChangeLog:
* sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
Remove commented-out code.
Diffstat (limited to 'gdb/sol-thread.c')
-rw-r--r-- | gdb/sol-thread.c | 50 |
1 files changed, 0 insertions, 50 deletions
diff --git a/gdb/sol-thread.c b/gdb/sol-thread.c index c93498f..d948e9c 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; } |