This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] Fix parameters to bfd_get_section_name


This patch fixes a compilation failure when compiling with zlib disabled.

/Marcus

2012-07-24 Marcus Shawcroft <marcus.shawcroft@arm.com>

        * gdb_bfd.c (zlib_decompress_section): Adjust
        parameters to bfd_get_section_name.
diff --git a/gdb/gdb_bfd.c b/gdb/gdb_bfd.c
index aa222b9..1e6af49 100644
--- a/gdb/gdb_bfd.c
+++ b/gdb/gdb_bfd.c
@@ -312,7 +312,7 @@ zlib_decompress_section (asection *sectp,
   error (_("Support for zlib-compressed data (from '%s', section '%s') "
            "is disabled in this copy of GDB"),
          bfd_get_filename (abfd),
-	 bfd_get_section_name (sectp));
+	 bfd_get_section_name (abfd, sectp));
 #else
   bfd_size_type compressed_size = bfd_get_section_size (sectp);
   gdb_byte *compressed_buffer = xmalloc (compressed_size);

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]