mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-18 16:53:50 +08:00
2012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
* gdb_bfd.c (gdb_bfd_unref): Remove unused variable `slot'. (zlib_decompress_section): Likewise for `section_data'. (gdb_bfd_map_section): Likewise for `buf' and `retbuf'.
This commit is contained in:
@ -1,3 +1,9 @@
|
|||||||
|
2012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
|
||||||
|
|
||||||
|
* gdb_bfd.c (gdb_bfd_unref): Remove unused variable `slot'.
|
||||||
|
(zlib_decompress_section): Likewise for `section_data'.
|
||||||
|
(gdb_bfd_map_section): Likewise for `buf' and `retbuf'.
|
||||||
|
|
||||||
2012-08-10 Doug Evans <dje@google.com>
|
2012-08-10 Doug Evans <dje@google.com>
|
||||||
|
|
||||||
Add $_memeq, $_regex, $_streq, $_strlen convenience functions.
|
Add $_memeq, $_regex, $_streq, $_strlen convenience functions.
|
||||||
|
@ -264,7 +264,6 @@ gdb_bfd_unref (struct bfd *abfd)
|
|||||||
{
|
{
|
||||||
struct gdb_bfd_data *gdata;
|
struct gdb_bfd_data *gdata;
|
||||||
struct gdb_bfd_cache_search search;
|
struct gdb_bfd_cache_search search;
|
||||||
void **slot;
|
|
||||||
|
|
||||||
if (abfd == NULL)
|
if (abfd == NULL)
|
||||||
return;
|
return;
|
||||||
@ -341,7 +340,6 @@ zlib_decompress_section (asection *sectp,
|
|||||||
z_stream strm;
|
z_stream strm;
|
||||||
int rc;
|
int rc;
|
||||||
int header_size = 12;
|
int header_size = 12;
|
||||||
struct dwarf2_per_bfd_section *section_data;
|
|
||||||
|
|
||||||
if (bfd_seek (abfd, sectp->filepos, SEEK_SET) != 0
|
if (bfd_seek (abfd, sectp->filepos, SEEK_SET) != 0
|
||||||
|| bfd_bread (compressed_buffer,
|
|| bfd_bread (compressed_buffer,
|
||||||
@ -417,7 +415,6 @@ const gdb_byte *
|
|||||||
gdb_bfd_map_section (asection *sectp, bfd_size_type *size)
|
gdb_bfd_map_section (asection *sectp, bfd_size_type *size)
|
||||||
{
|
{
|
||||||
bfd *abfd;
|
bfd *abfd;
|
||||||
gdb_byte *buf, *retbuf;
|
|
||||||
unsigned char header[4];
|
unsigned char header[4];
|
||||||
struct gdb_bfd_section_data *descriptor;
|
struct gdb_bfd_section_data *descriptor;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user