* sol-thread.c (ps_pdmodel): Return PR_MODEL_UNKNOWN instead of
authorPeter Schauer <Peter.Schauer@mytum.de>
Thu, 28 Sep 2000 07:53:41 +0000 (07:53 +0000)
committerPeter Schauer <Peter.Schauer@mytum.de>
Thu, 28 Sep 2000 07:53:41 +0000 (07:53 +0000)
PS_ERR if exec_bfd is not yet open.

gdb/ChangeLog
gdb/sol-thread.c

index 167711438a6652752f0916cac8eb16bcc970b981..f5b0dea9511cf8a176b09ed69b557335edc57a9e 100644 (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):
index aa909adcba795c1d16ca41473230b1d4c55d8b98..5e0b1da9898069bc22dfb3528501ac7c4e21b21c 100644 (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;