From: Peter Schauer Date: Thu, 28 Sep 2000 07:53:41 +0000 (+0000) Subject: * sol-thread.c (ps_pdmodel): Return PR_MODEL_UNKNOWN instead of X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a95ac8b608ed2c97e69826561aa3d35b29d4ab78;p=binutils-gdb.git * sol-thread.c (ps_pdmodel): Return PR_MODEL_UNKNOWN instead of PS_ERR if exec_bfd is not yet open. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 167711438a6..f5b0dea9511 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2000-09-28 Peter Schauer + + * 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 * target.c (target_signal_from_host, do_target_signal_to_host): 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;