diff options
author | Peter Schauer <Peter.Schauer@mytum.de> | 2000-09-28 07:53:41 +0000 |
---|---|---|
committer | Peter Schauer <Peter.Schauer@mytum.de> | 2000-09-28 07:53:41 +0000 |
commit | a95ac8b608ed2c97e69826561aa3d35b29d4ab78 (patch) | |
tree | fbdfd3b7b1c32f19e660d67b73c55cc1b455b255 | |
parent | 5ef227419afb623fdefbf072d66c0e330bff9b3d (diff) | |
download | gdb-a95ac8b608ed2c97e69826561aa3d35b29d4ab78.zip gdb-a95ac8b608ed2c97e69826561aa3d35b29d4ab78.tar.gz gdb-a95ac8b608ed2c97e69826561aa3d35b29d4ab78.tar.bz2 |
* sol-thread.c (ps_pdmodel): Return PR_MODEL_UNKNOWN instead of
PS_ERR if exec_bfd is not yet open.
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/sol-thread.c | 5 |
2 files changed, 7 insertions, 3 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 1677114..f5b0dea 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,10 @@ 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): Add support for Solaris realtime signals. diff --git a/gdb/sol-thread.c b/gdb/sol-thread.c index aa909ad..5e0b1da 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; |