diff options
author | Joel Brobecker <brobecker@gnat.com> | 2012-09-27 12:52:53 +0000 |
---|---|---|
committer | Joel Brobecker <brobecker@gnat.com> | 2012-09-27 12:52:53 +0000 |
commit | 8c3da00317320cff5cadbf340c3a0f4da7c40fd1 (patch) | |
tree | 939a43efcf515ee796e524ea835f5500977119b6 | |
parent | f00482b6037e39ffc01e0e58e8d97c151857c8c6 (diff) | |
download | gdb-8c3da00317320cff5cadbf340c3a0f4da7c40fd1.zip gdb-8c3da00317320cff5cadbf340c3a0f4da7c40fd1.tar.gz gdb-8c3da00317320cff5cadbf340c3a0f4da7c40fd1.tar.bz2 |
sol-thread.c: conditionalize some sparc-specific libthread_db functions.
gdb/ChangeLog:
* sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
Enable this code for sparc hosts only.
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/sol-thread.c | 4 |
2 files changed, 9 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index eb35a8d..7dc5fa6 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,10 @@ 2012-09-27 Joel Brobecker <brobecker@adacore.com> + * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs): + Enable this code for sparc hosts only. + +2012-09-27 Joel Brobecker <brobecker@adacore.com> + * procfs.h (procfs_find_LDT_entry): Add declaration. * sol-thread.c (ps_lgetLDT): Delete local declaration of function procfs_find_LDT_entry. diff --git a/gdb/sol-thread.c b/gdb/sol-thread.c index cd37615..c93498f 100644 --- a/gdb/sol-thread.c +++ b/gdb/sol-thread.c @@ -959,6 +959,8 @@ ps_plog (const char *fmt, ...) vfprintf_filtered (gdb_stderr, fmt, args); } +#if defined (__sparc) || defined (__sparcv9) + /* Get size of extra register set. Currently a noop. */ ps_err_e @@ -1033,6 +1035,8 @@ ps_lsetxregs (gdb_ps_prochandle_t ph, lwpid_t lwpid, caddr_t xregset) return PS_OK; } +#endif /* defined (__sparc) || defined (__sparcv9) */ + /* Get floating-point registers for LWP. */ ps_err_e |