diff options
author | Joel Brobecker <brobecker@gnat.com> | 2008-03-12 20:00:21 +0000 |
---|---|---|
committer | Joel Brobecker <brobecker@gnat.com> | 2008-03-12 20:00:21 +0000 |
commit | 965b60eecbf5def589aea7c6359dcf48fdadce26 (patch) | |
tree | 78589e53e12c767dd6a122408ae5fb53ec183479 /gdb/sol-thread.c | |
parent | 83116857a35fc5125d098984fae29a549a2b29f3 (diff) | |
download | gdb-965b60eecbf5def589aea7c6359dcf48fdadce26.zip gdb-965b60eecbf5def589aea7c6359dcf48fdadce26.tar.gz gdb-965b60eecbf5def589aea7c6359dcf48fdadce26.tar.bz2 |
* sol-thread.c: Replace use of TM_I386SOL2_H by an expression
that is true only on x86-solaris and x86_64-solaris.
* procfs.c: Likewise. Move procfs_find_LDT_entry up together
with proc_get_LDT_entry.
Diffstat (limited to 'gdb/sol-thread.c')
-rw-r--r-- | gdb/sol-thread.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/gdb/sol-thread.c b/gdb/sol-thread.c index 796065d..bf31fa0 100644 --- a/gdb/sol-thread.c +++ b/gdb/sol-thread.c @@ -1283,9 +1283,12 @@ ps_pdmodel (gdb_ps_prochandle_t ph, int *data_model) } #endif /* PR_MODEL_LP64 */ -#ifdef TM_I386SOL2_H +#if (defined(__i386__) || defined(__x86_64__)) && defined (sun) -/* Reads the local descriptor table of a LWP. */ +/* Reads the local descriptor table of a LWP. + + This function is necessary on x86-solaris only. Without it, the loading + of libthread_db would fail because of ps_lgetLDT being undefined. */ ps_err_e ps_lgetLDT (gdb_ps_prochandle_t ph, lwpid_t lwpid, @@ -1311,7 +1314,7 @@ ps_lgetLDT (gdb_ps_prochandle_t ph, lwpid_t lwpid, /* LDT not found. */ return PS_ERR; } -#endif /* TM_I386SOL2_H */ +#endif /* Convert PTID to printable form. */ |