diff options
author | Andrew Cagney <cagney@redhat.com> | 2001-10-24 01:19:12 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2001-10-24 01:19:12 +0000 |
commit | 8f236061d95d934a70b505449f6235bbfaa90270 (patch) | |
tree | a3696d5e2f9a95cb4c863b41e3ddc3c47e0b28c1 /gdb/somsolib.c | |
parent | db328227fa5ed6896b1251b6c702e8a67ba9b20b (diff) | |
download | gdb-8f236061d95d934a70b505449f6235bbfaa90270.zip gdb-8f236061d95d934a70b505449f6235bbfaa90270.tar.gz gdb-8f236061d95d934a70b505449f6235bbfaa90270.tar.bz2 |
Tweeks for HP/UX and -Werror.
Diffstat (limited to 'gdb/somsolib.c')
-rw-r--r-- | gdb/somsolib.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/gdb/somsolib.c b/gdb/somsolib.c index 4b93fde..77c54e1 100644 --- a/gdb/somsolib.c +++ b/gdb/somsolib.c @@ -715,7 +715,8 @@ som_solib_add (char *arg_string, int from_tty, struct target_ops *target) if (status != 0) goto err; - new_so->som_solib.next = (void *) extract_unsigned_integer (buf, 4); + new_so->som_solib.next = + address_to_host_pointer (extract_unsigned_integer (buf, 4)); /* Note that we don't re-set "addr" to the next pointer * until after we've read the trailing data. @@ -1263,8 +1264,10 @@ som_solib_desire_dynamic_linker_symbols (void) } /* Did we find everything we were looking for? If so, stop. */ - if ((dld_cache.load.address != NULL) && (dld_cache.load_stub.address != NULL) - && (dld_cache.unload.address != NULL) && (dld_cache.unload_stub.address != NULL)) + if ((dld_cache.load.address != 0) + && (dld_cache.load_stub.address != 0) + && (dld_cache.unload.address != 0) + && (dld_cache.unload_stub.address != 0)) { dld_cache.is_valid = 1; break; |