diff options
author | Michael Snyder <msnyder@specifix.com> | 2002-01-07 19:45:14 +0000 |
---|---|---|
committer | Michael Snyder <msnyder@specifix.com> | 2002-01-07 19:45:14 +0000 |
commit | 57c20a3d14b5b52ce3620fb78269c21621b59e16 (patch) | |
tree | 83859374fb33aaed6d4b311b7ce7d10ff355b8f0 /gdb/solib-legacy.c | |
parent | 3762106cfb00cd43edbe69ffb01066433b639913 (diff) | |
download | gdb-57c20a3d14b5b52ce3620fb78269c21621b59e16.tar.gz |
2002-01-07 Michael Snyder <msnyder@redhat.com>
* solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
Don't use exec_bfd if it's NULL.
Diffstat (limited to 'gdb/solib-legacy.c')
-rw-r--r-- | gdb/solib-legacy.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/gdb/solib-legacy.c b/gdb/solib-legacy.c index 2e32e187f0a..a7a4f7e043c 100644 --- a/gdb/solib-legacy.c +++ b/gdb/solib-legacy.c @@ -130,7 +130,12 @@ legacy_svr4_fetch_link_map_offsets (void) #endif /* defined (HAVE_STRUCT_LINK_MAP32) */ #if defined (HAVE_STRUCT_LINK_MAP32) - if (bfd_get_arch_size (exec_bfd) == 32) + if (exec_bfd != NULL) + { + if (bfd_get_arch_size (exec_bfd) == 32) + return lmp32; + } + else if (TARGET_PTR_BIT == 32) return lmp32; else #endif |