diff options
author | Michael Snyder <msnyder@vmware.com> | 2000-09-05 17:40:57 +0000 |
---|---|---|
committer | Michael Snyder <msnyder@vmware.com> | 2000-09-05 17:40:57 +0000 |
commit | 23715f2973fc808ca7defa4d7b60704d7b24a61e (patch) | |
tree | 9d6943def24b924044c92b4677be97614a9b4a9e | |
parent | 2809b4b9c62134ab75db4bea65a8c86a51af29db (diff) | |
download | binutils-gdb-23715f2973fc808ca7defa4d7b60704d7b24a61e.tar.gz |
2000-09-05 Michael Snyder <msnyder@cleaver.cygnus.com>
* sol-thread.c (ps_pdmodel): Protect with an ifdef.
-rw-r--r-- | gdb/ChangeLog | 4 | ||||
-rw-r--r-- | gdb/sol-thread.c | 10 |
2 files changed, 12 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 2f56452baba..3575217f802 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2000-09-05 Michael Snyder <msnyder@cleaver.cygnus.com> + + * sol-thread.c (ps_pdmodel): Protect with an ifdef. + Mon Sep 4 16:21:31 2000 Andrew Cagney <cagney@amy.cygnus.com> * gdbarch.sh: Use printf instead of echo. diff --git a/gdb/sol-thread.c b/gdb/sol-thread.c index dc90979d15c..156c15285cc 100644 --- a/gdb/sol-thread.c +++ b/gdb/sol-thread.c @@ -452,8 +452,12 @@ static void sol_thread_attach (char *args, int from_tty) { procfs_ops.to_attach (args, from_tty); - /* Must get symbols from solibs before libthread_db can run! */ - SOLIB_ADD ((char *) 0, from_tty, (struct target_ops *) 0); + + if (auto_solib_add) + { + /* Must get symbols from solibs before libthread_db can run! */ + SOLIB_ADD ((char *) 0, from_tty, (struct target_ops *) 0); + } if (sol_thread_active) { printf_filtered ("sol-thread active.\n"); @@ -1309,6 +1313,7 @@ ps_lsetfpregs (gdb_ps_prochandle_t ph, lwpid_t lwpid, return PS_OK; } +#ifdef PR_MODEL_LP64 /* Identify process as 32-bit or 64-bit. At the moment I'm using bfd to do this. There might be a more solaris-specific (eg. procfs) method, @@ -1327,6 +1332,7 @@ ps_pdmodel (gdb_ps_prochandle_t ph, int *data_model) return PS_OK; } +#endif /* PR_MODEL_LP64 */ #ifdef TM_I386SOL2_H |