aboutsummaryrefslogtreecommitdiff
path: root/bfd/dwarf2.c
diff options
context:
space:
mode:
authorAndreas Jaeger <aj@suse.de>2001-05-21 11:52:42 +0000
committerAndreas Jaeger <aj@suse.de>2001-05-21 11:52:42 +0000
commitf5198f610d306ea682231bb054b431654b02612c (patch)
treee9ad347fa4e495ec9d150f9dcae02aaef800d801 /bfd/dwarf2.c
parent984e377c92463cb148168a54fbebaebb4af491cb (diff)
downloadgdb-f5198f610d306ea682231bb054b431654b02612c.zip
gdb-f5198f610d306ea682231bb054b431654b02612c.tar.gz
gdb-f5198f610d306ea682231bb054b431654b02612c.tar.bz2
* dwarf2.c (decode_line_info): Fix error message.
(read_abbrevs): Fix test for offset as suggested by Alan Modra and adjust error message.
Diffstat (limited to 'bfd/dwarf2.c')
-rw-r--r--bfd/dwarf2.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/bfd/dwarf2.c b/bfd/dwarf2.c
index f364719..4a03273 100644
--- a/bfd/dwarf2.c
+++ b/bfd/dwarf2.c
@@ -437,9 +437,9 @@ read_abbrevs (abfd, offset, stash)
return 0;
}
- if (offset > stash->dwarf_abbrev_size)
+ if (offset >= stash->dwarf_abbrev_size)
{
- (*_bfd_error_handler) (_("Dwarf Error: Abbrev offset (%u) bigger than abbrev size (%u)."),
+ (*_bfd_error_handler) (_("Dwarf Error: Abbrev offset (%u) greater than or equal to abbrev size (%u)."),
offset, stash->dwarf_abbrev_size );
bfd_set_error (bfd_error_bad_value);
return 0;
@@ -804,7 +804,7 @@ decode_line_info (unit, stash)
below. */
if (unit->line_offset >= stash->dwarf_line_size)
{
- (*_bfd_error_handler) (_("Dwarf Error: Line offset (%u) bigger than line size (%u)."),
+ (*_bfd_error_handler) (_("Dwarf Error: Line offset (%u) greater than or equal to line size (%u)."),
unit->line_offset, stash->dwarf_line_size);
bfd_set_error (bfd_error_bad_value);
return 0;