diff options
author | Peter Schauer <pes@regent.e-technik.tu-muenchen.de> | 2000-09-28 07:53:41 +0000 |
---|---|---|
committer | Peter Schauer <pes@regent.e-technik.tu-muenchen.de> | 2000-09-28 07:53:41 +0000 |
commit | f3e0f25aa29b0ce91ed65ffc50cc09954d874521 (patch) | |
tree | b7d55b2f46c31e2cef188a0890f0f614ab0e5d15 /gdb/sol-thread.c | |
parent | c050bda9a1a6ae6974cdcb3a5b59ae527286511c (diff) | |
download | gdb-f3e0f25aa29b0ce91ed65ffc50cc09954d874521.tar.gz |
* sol-thread.c (ps_pdmodel): Return PR_MODEL_UNKNOWN instead of
PS_ERR if exec_bfd is not yet open.
Diffstat (limited to 'gdb/sol-thread.c')
-rw-r--r-- | gdb/sol-thread.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/gdb/sol-thread.c b/gdb/sol-thread.c index aa909adcba7..5e0b1da9898 100644 --- a/gdb/sol-thread.c +++ b/gdb/sol-thread.c @@ -1321,9 +1321,8 @@ ps_err_e ps_pdmodel (gdb_ps_prochandle_t ph, int *data_model) { if (exec_bfd == 0) - return PS_ERR; - - if (bfd_get_arch_size (exec_bfd) == 32) + *data_model = PR_MODEL_UNKNOWN; + else if (bfd_get_arch_size (exec_bfd) == 32) *data_model = PR_MODEL_ILP32; else *data_model = PR_MODEL_LP64; |