PS_ERR if exec_bfd is not yet open.
+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):
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;