aboutsummaryrefslogtreecommitdiff
path: root/binutils
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2008-07-15 18:48:34 +0000
committerH.J. Lu <hjl.tools@gmail.com>2008-07-15 18:48:34 +0000
commita71cc8e008175c06ff353a88b058ad4cd50505eb (patch)
tree73b7125b97ab3ad7fa6a0f009b75676ea8a24291 /binutils
parent605d18d4351b43e619928770c2912d07175cb1e4 (diff)
downloadgdb-a71cc8e008175c06ff353a88b058ad4cd50505eb.zip
gdb-a71cc8e008175c06ff353a88b058ad4cd50505eb.tar.gz
gdb-a71cc8e008175c06ff353a88b058ad4cd50505eb.tar.bz2
2008-07-15 H.J. Lu <hongjiu.lu@intel.com>
* objdump.c (load_debug_section): Initialize section_is_compressed for gcc 3.4/ia64. * readelf.c (load_debug_section): Likewise.
Diffstat (limited to 'binutils')
-rw-r--r--binutils/ChangeLog6
-rw-r--r--binutils/objdump.c11
-rw-r--r--binutils/readelf.c11
3 files changed, 12 insertions, 16 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog
index d0f96bf..0fa3eff 100644
--- a/binutils/ChangeLog
+++ b/binutils/ChangeLog
@@ -1,3 +1,9 @@
+2008-07-15 H.J. Lu <hongjiu.lu@intel.com>
+
+ * objdump.c (load_debug_section): Initialize section_is_compressed
+ for gcc 3.4/ia64.
+ * readelf.c (load_debug_section): Likewise.
+
2008-07-12 Jie Zhang <jie.zhang@analog.com>
Revert
diff --git a/binutils/objdump.c b/binutils/objdump.c
index c869033..74a4198 100644
--- a/binutils/objdump.c
+++ b/binutils/objdump.c
@@ -2071,21 +2071,16 @@ load_debug_section (enum dwarf_section_display_enum debug, void *file)
/* Locate the debug section. */
sec = bfd_get_section_by_name (abfd, section->uncompressed_name);
if (sec != NULL)
- {
- section->name = section->uncompressed_name;
- section_is_compressed = 0;
- }
+ section->name = section->uncompressed_name;
else
{
sec = bfd_get_section_by_name (abfd, section->compressed_name);
if (sec != NULL)
- {
- section->name = section->compressed_name;
- section_is_compressed = 1;
- }
+ section->name = section->compressed_name;
}
if (sec == NULL)
return 0;
+ section_is_compressed = section->name == section->compressed_name;
/* Compute a bias to be added to offsets found within the DWARF debug
information. These offsets are meant to be relative to the start of
diff --git a/binutils/readelf.c b/binutils/readelf.c
index 8a38db7..7fe2948 100644
--- a/binutils/readelf.c
+++ b/binutils/readelf.c
@@ -8580,21 +8580,16 @@ load_debug_section (enum dwarf_section_display_enum debug, void *file)
/* Locate the debug section. */
sec = find_section (section->uncompressed_name);
if (sec != NULL)
- {
- section->name = section->uncompressed_name;
- section_is_compressed = 0;
- }
+ section->name = section->uncompressed_name;
else
{
sec = find_section (section->compressed_name);
if (sec != NULL)
- {
- section->name = section->compressed_name;
- section_is_compressed = 1;
- }
+ section->name = section->compressed_name;
}
if (sec == NULL)
return 0;
+ section_is_compressed = section->name == section->compressed_name;
snprintf (buf, sizeof (buf), _("%s section data"), section->name);
section->address = sec->sh_addr;