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 | 45d1b5f6d9a806d364bacac094da35e8e3d23669 (patch) | |
tree | f0d5e40c9846ab6fa4c94a867323397a9c6f585a | |
parent | 0abb177ca2b43f3756f1cda7a0adee993c081f0c (diff) | |
download | gdb-45d1b5f6d9a806d364bacac094da35e8e3d23669.tar.gz |
Tweeks for HP/UX and -Werror.
-rw-r--r-- | gdb/ChangeLog | 7 | ||||
-rw-r--r-- | gdb/hp-psymtab-read.c | 2 | ||||
-rw-r--r-- | gdb/somsolib.c | 9 |
3 files changed, 14 insertions, 4 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 723b6572e4c..7d2ee0ad56d 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,10 @@ +Tue Oct 23 14:16:10 2001 Andrew Cagney <cagney@redhat.com> + + * somsolib.c (som_solib_add): Use core_addr_to_host_pointer. + (som_solib_desire_dynamic_linker_symbols): Compare integers with + zero not NULL. + * hp-psymtab-read.c (hpread_call_pxdb): Make parameter constant. + 2001-10-21 Andrew Cagney <ac131313@redhat.com> * top.c (print_gdb_version): Do not print ``(MI_OUT)''. MI diff --git a/gdb/hp-psymtab-read.c b/gdb/hp-psymtab-read.c index ad001d300d6..4ffc0b3b230 100644 --- a/gdb/hp-psymtab-read.c +++ b/gdb/hp-psymtab-read.c @@ -110,7 +110,7 @@ static char main_string[] = "main"; Return value: 1 if ok, 0 if not */ int -hpread_call_pxdb (char *file_name) +hpread_call_pxdb (const char *file_name) { char *p; int status; diff --git a/gdb/somsolib.c b/gdb/somsolib.c index 4b93fdecf38..77c54e1218e 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; |