X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=gdb%2Fminidebug.c;h=e21353df3e1ba7f3e5080ab8544c56802fd613d3;hb=f311ba7ed84d66ae2cd77bd969747d7ab959d866;hp=d4687dda09d803d77495fbf85cae0a42e294e036;hpb=192b62ce0b4bb5c61188f570e127a26d2c32f716;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/minidebug.c b/gdb/minidebug.c index d4687dda09..e21353df3e 100644 --- a/gdb/minidebug.c +++ b/gdb/minidebug.c @@ -1,6 +1,6 @@ /* Read MiniDebugInfo data from an objfile. - Copyright (C) 2012-2017 Free Software Foundation, Inc. + Copyright (C) 2012-2018 Free Software Foundation, Inc. This file is part of GDB. @@ -83,7 +83,6 @@ lzma_open (struct bfd *nbfd, void *open_closure) gdb_byte footer[LZMA_STREAM_HEADER_SIZE]; gdb_byte *indexdata; lzma_index *index; - int ret; uint64_t memlimit = UINT64_MAX; struct gdb_lzma_stream *lstream; size_t pos; @@ -270,7 +269,10 @@ find_separate_debug_file_in_section (struct objfile *objfile) return NULL; #ifdef HAVE_LIBLZMA - abfd = gdb_bfd_openr_iovec (objfile_name (objfile), gnutarget, lzma_open, + std::string filename = string_printf (_(".gnu_debugdata for %s"), + objfile_name (objfile)); + + abfd = gdb_bfd_openr_iovec (filename.c_str (), gnutarget, lzma_open, section, lzma_pread, lzma_close, lzma_stat); if (abfd == NULL) return NULL;