projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
PR25351 .ARM.attributes not found for symbol
[deliverable/binutils-gdb.git]
/
gdb
/
minidebug.c
diff --git
a/gdb/minidebug.c
b/gdb/minidebug.c
index 43232945b9df963dce8aa2bb4c598159e458abc2..a56a822628e3e297262794d4be9c030e3e9c653c 100644
(file)
--- a/
gdb/minidebug.c
+++ b/
gdb/minidebug.c
@@
-1,6
+1,6
@@
/* Read MiniDebugInfo data from an objfile.
/* Read MiniDebugInfo data from an objfile.
- Copyright (C) 2012-20
16
Free Software Foundation, Inc.
+ Copyright (C) 2012-20
20
Free Software Foundation, Inc.
This file is part of GDB.
This file is part of GDB.
@@
-83,12
+83,11
@@
lzma_open (struct bfd *nbfd, void *open_closure)
gdb_byte footer[LZMA_STREAM_HEADER_SIZE];
gdb_byte *indexdata;
lzma_index *index;
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;
uint64_t memlimit = UINT64_MAX;
struct gdb_lzma_stream *lstream;
size_t pos;
- size = bfd_
get_
section_size (section);
+ size = bfd_section_size (section);
offset = section->filepos + size - LZMA_STREAM_HEADER_SIZE;
if (size < LZMA_STREAM_HEADER_SIZE
|| bfd_seek (section->owner, offset, SEEK_SET) != 0
offset = section->filepos + size - LZMA_STREAM_HEADER_SIZE;
if (size < LZMA_STREAM_HEADER_SIZE
|| bfd_seek (section->owner, offset, SEEK_SET) != 0
@@
-256,11
+255,11
@@
lzma_stat (struct bfd *abfd,
If we find one we create a iovec based bfd that decompresses the
object data on demand. If we don't find one, return NULL. */
If we find one we create a iovec based bfd that decompresses the
object data on demand. If we don't find one, return NULL. */
-bfd *
+gdb_bfd_ref_ptr
find_separate_debug_file_in_section (struct objfile *objfile)
{
asection *section;
find_separate_debug_file_in_section (struct objfile *objfile)
{
asection *section;
-
bfd *
abfd;
+
gdb_bfd_ref_ptr
abfd;
if (objfile->obfd == NULL)
return NULL;
if (objfile->obfd == NULL)
return NULL;
@@
-270,21
+269,22
@@
find_separate_debug_file_in_section (struct objfile *objfile)
return NULL;
#ifdef HAVE_LIBLZMA
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;
section, lzma_pread, lzma_close, lzma_stat);
if (abfd == NULL)
return NULL;
- if (!bfd_check_format (abfd, bfd_object))
+ if (!bfd_check_format (abfd
.get ()
, bfd_object))
{
warning (_("Cannot parse .gnu_debugdata section; not a BFD object"));
{
warning (_("Cannot parse .gnu_debugdata section; not a BFD object"));
- gdb_bfd_unref (abfd);
return NULL;
}
#else
warning (_("Cannot parse .gnu_debugdata section; LZMA support was "
"disabled at compile time"));
return NULL;
}
#else
warning (_("Cannot parse .gnu_debugdata section; LZMA support was "
"disabled at compile time"));
- abfd = NULL;
#endif /* !HAVE_LIBLZMA */
return abfd;
#endif /* !HAVE_LIBLZMA */
return abfd;
This page took
0.02506 seconds
and
4
git commands to generate.