This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[patch] Tweeks for HP/UX 10.20 gcc -Werror
- To: gdb-patches at sources dot redhat dot com
- Subject: [patch] Tweeks for HP/UX 10.20 gcc -Werror
- From: Andrew Cagney <ac131313 at cygnus dot com>
- Date: Tue, 23 Oct 2001 21:16:24 -0400
Hello,
The attached fixes a build on HP/UX 10.20 configured with
--enable-gdb-build-warnings=-Werror (not ,-Werror). It isn't trying to
fix any bugs.
I've checked it in as obvious.
Andrew
Tue Oct 23 14:16:10 2001 Andrew Cagney <cagney@redhat.com>
Fix -Werror problems.
* 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.
Index: hp-psymtab-read.c
===================================================================
RCS file: /cvs/src/src/gdb/hp-psymtab-read.c,v
retrieving revision 1.10
diff -p -r1.10 hp-psymtab-read.c
*** hp-psymtab-read.c 2001/03/20 01:37:09 1.10
--- hp-psymtab-read.c 2001/10/24 01:09:17
*************** static char main_string[] = "main";
*** 110,116 ****
Return value: 1 if ok, 0 if not */
int
! hpread_call_pxdb (char *file_name)
{
char *p;
int status;
--- 110,116 ----
Return value: 1 if ok, 0 if not */
int
! hpread_call_pxdb (const char *file_name)
{
char *p;
int status;
Index: somsolib.c
===================================================================
RCS file: /cvs/src/src/gdb/somsolib.c,v
retrieving revision 1.13
diff -p -r1.13 somsolib.c
*** somsolib.c 2001/07/19 04:58:17 1.13
--- somsolib.c 2001/10/24 01:09:17
*************** som_solib_add (char *arg_string, int fro
*** 715,721 ****
if (status != 0)
goto err;
! new_so->som_solib.next = (void *) 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.
--- 715,722 ----
if (status != 0)
goto err;
! 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.
*************** som_solib_desire_dynamic_linker_symbols
*** 1263,1270 ****
}
/* 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))
{
dld_cache.is_valid = 1;
break;
--- 1264,1273 ----
}
/* Did we find everything we were looking for? If so, stop. */
! 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;