* sol-thread.c (ps_pdmodel): Return PR_MODEL_UNKNOWN instead of

PS_ERR if exec_bfd is not yet open.
This commit is contained in:
Peter Schauer 2000-09-28 07:53:41 +00:00
parent 5ef227419a
commit a95ac8b608
2 changed files with 7 additions and 3 deletions

View File

@ -1,3 +1,8 @@
2000-09-28 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
* sol-thread.c (ps_pdmodel): Return PR_MODEL_UNKNOWN instead of
PS_ERR if exec_bfd is not yet open.
2000-09-28 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
* target.c (target_signal_from_host, do_target_signal_to_host):

View File

@ -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;