bfd
authorTom Tromey <tromey@redhat.com>
Wed, 9 Oct 2013 14:26:26 +0000 (14:26 +0000)
committerTom Tromey <tromey@redhat.com>
Wed, 9 Oct 2013 14:26:26 +0000 (14:26 +0000)
* bfd-in2.h: Rebuild.
* opncls.c (bfd_get_alt_debug_link_info): Change type of
buildid_len to bfd_size_type.
gdb
* dwarf2read.c (dwarf2_get_dwz_file): Update for type change in
bfd_get_alt_debug_link_info.

bfd/ChangeLog
bfd/bfd-in2.h
bfd/opncls.c
gdb/ChangeLog
gdb/dwarf2read.c

index a0110199fea9b5001429cbf0cf4df8478df73332..9b7a032d61f187807cf2d2771b80d7f1380eb08a 100644 (file)
@@ -1,3 +1,9 @@
+2013-10-09  Tom Tromey  <tromey@redhat.com>
+
+       * bfd-in2.h: Rebuild.
+       * opncls.c (bfd_get_alt_debug_link_info): Change type of
+       buildid_len to bfd_size_type.
+
 2013-10-09  Sergio Durigan Junior  <sergiodj@redhat.com>
 
        PR binutils/15993
index 67eb7da2e34a478b645c02f07fd6dd595b1f4673..810e1729c06025f1ed8be566fd94ae92795d41f6 100644 (file)
@@ -1067,7 +1067,8 @@ unsigned long bfd_calc_gnu_debuglink_crc32
 
 char *bfd_get_debug_link_info (bfd *abfd, unsigned long *crc32_out);
 
-char *bfd_get_alt_debug_link_info (bfd * abfd, size_t *buildid_len,
+char *bfd_get_alt_debug_link_info (bfd * abfd,
+    bfd_size_type *buildid_len,
     bfd_byte **buildid_out);
 
 char *bfd_follow_gnu_debuglink (bfd *abfd, const char *dir);
index f29b2c8a3715e721685b4d3451194e2b9be785ed..08f6c5b1e04e80099a18c3730ae4787e8da920b5 100644 (file)
@@ -1194,7 +1194,8 @@ FUNCTION
        bfd_get_alt_debug_link_info
 
 SYNOPSIS
-       char *bfd_get_alt_debug_link_info (bfd * abfd, size_t *buildid_len,
+       char *bfd_get_alt_debug_link_info (bfd * abfd,
+                                          bfd_size_type *buildid_len,
                                           bfd_byte **buildid_out);
 
 DESCRIPTION
@@ -1207,7 +1208,7 @@ DESCRIPTION
 */
 
 char *
-bfd_get_alt_debug_link_info (bfd * abfd, size_t *buildid_len,
+bfd_get_alt_debug_link_info (bfd * abfd, bfd_size_type *buildid_len,
                             bfd_byte **buildid_out)
 {
   asection *sect;
index c2e87d65fd21e29b149b42d1408738bc74b8c66a..51f9b43c8c7c73b4e5bdf19758fa5f8f70c2664e 100644 (file)
@@ -1,3 +1,8 @@
+2013-10-09  Tom Tromey  <tromey@redhat.com>
+
+       * dwarf2read.c (dwarf2_get_dwz_file): Update for type change in
+       bfd_get_alt_debug_link_info.
+
 2013-10-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
 
        New flag OBJF_NOT_FILENAME.
index 4cb66db85a2a51d90d8f657fbb106d1aa9f660c3..aa109e0080b1e028330b0764b350664220c6b83f 100644 (file)
@@ -2365,6 +2365,7 @@ dwarf2_get_dwz_file (void)
   struct cleanup *cleanup;
   const char *filename;
   struct dwz_file *result;
+  bfd_size_type buildid_len_arg;
   size_t buildid_len;
   bfd_byte *buildid;
 
@@ -2373,7 +2374,7 @@ dwarf2_get_dwz_file (void)
 
   bfd_set_error (bfd_error_no_error);
   data = bfd_get_alt_debug_link_info (dwarf2_per_objfile->objfile->obfd,
-                                     &buildid_len, &buildid);
+                                     &buildid_len_arg, &buildid);
   if (data == NULL)
     {
       if (bfd_get_error () == bfd_error_no_error)
@@ -2384,6 +2385,8 @@ dwarf2_get_dwz_file (void)
   cleanup = make_cleanup (xfree, data);
   make_cleanup (xfree, buildid);
 
+  buildid_len = (size_t) buildid_len_arg;
+
   filename = (const char *) data;
   if (!IS_ABSOLUTE_PATH (filename))
     {