This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: Build regression on 32-bit hosts [Re: [PATCH] fix PR symtab/15597]
- From: Tom Tromey <tromey at redhat dot com>
- To: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- Cc: Hans-Peter Nilsson <hp at bitrange dot com>, gdb-patches at sourceware dot org, binutils at sourceware dot org
- Date: Wed, 09 Oct 2013 09:46:00 -0600
- Subject: Re: Build regression on 32-bit hosts [Re: [PATCH] fix PR symtab/15597]
- Authentication-results: sourceware.org; auth=none
- References: <1375983426-19308-1-git-send-email-tromey at redhat dot com> <87pprfft9c dot fsf at fleche dot redhat dot com> <alpine dot BSF dot 2 dot 02 dot 1310081759320 dot 53669 at arjuna dot pair dot com> <8738obfd3q dot fsf at fleche dot redhat dot com> <878uy2edtz dot fsf at fleche dot redhat dot com> <20131009145403 dot GA8005 at host2 dot jankratochvil dot net>
>>>>> "Jan" == Jan Kratochvil <jan.kratochvil@redhat.com> writes:
Jan> opncls.c: In function âget_alt_debug_link_info_shimâ:
Jan> opncls.c:1485:3: error: passing argument 2 of âbfd_get_alt_debug_link_infoâ from incompatible pointer type [-Werror]
Jan> opncls.c:1211:1: note: expected âbfd_size_type *â but argument is of type âsize_t *â
I see my BFD record still stands.
Here's a follow-up.
Tom
2013-10-09 Tom Tromey <tromey@redhat.com>
* opncls.c (get_alt_debug_link_info_shim): Update type of 'len'.
Index: opncls.c
===================================================================
RCS file: /cvs/src/src/bfd/opncls.c,v
retrieving revision 1.84
diff -u -r1.84 opncls.c
--- opncls.c 9 Oct 2013 14:26:26 -0000 1.84
+++ opncls.c 9 Oct 2013 15:45:36 -0000
@@ -1480,7 +1480,7 @@
static char *
get_alt_debug_link_info_shim (bfd * abfd, unsigned long *crc32_out)
{
- size_t len;
+ bfd_size_type len;
bfd_byte *buildid = NULL;
char *result = bfd_get_alt_debug_link_info (abfd, &len, &buildid);