aboutsummaryrefslogtreecommitdiff
path: root/bfd
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2003-03-12 09:59:52 +0000
committerNick Clifton <nickc@redhat.com>2003-03-12 09:59:52 +0000
commit64fb18397420d25e0ef96ab34198adb2ee890885 (patch)
tree03ee257e3b8ae0b4deae7b32f764dd8f3da38983 /bfd
parent9be2edc5c495cabf0d13c4783c9ea9dea941bd11 (diff)
downloadgdb-64fb18397420d25e0ef96ab34198adb2ee890885.zip
gdb-64fb18397420d25e0ef96ab34198adb2ee890885.tar.gz
gdb-64fb18397420d25e0ef96ab34198adb2ee890885.tar.bz2
Rename 'index' to 'offset'
Diffstat (limited to 'bfd')
-rw-r--r--bfd/ChangeLog5
-rw-r--r--bfd/xsym.c4
2 files changed, 7 insertions, 2 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 051769b..d2209f4 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,8 @@
+2003-03-12 Nick Clifton <nickc@redhat.com>
+
+ * xsym.c (bfd_sym_fetch_type_information_table_entry): Change
+ 'index' to 'offset' in test for zero value.
+
2003-03-11 Alexandre Oliva <aoliva@redhat.com>
* elfxx-mips.c (mips_elf_create_dynamic_relocation): Do not create
diff --git a/bfd/xsym.c b/bfd/xsym.c
index 6547574..d73c05d 100644
--- a/bfd/xsym.c
+++ b/bfd/xsym.c
@@ -1,5 +1,5 @@
/* xSYM symbol-file support for BFD.
- Copyright 1999, 2000, 2001, 2002
+ Copyright 1999, 2000, 2001, 2002, 2003
Free Software Foundation, Inc.
This file is part of BFD, the Binary File Descriptor library.
@@ -1131,7 +1131,7 @@ bfd_sym_fetch_type_information_table_entry (abfd, entry, offset)
BFD_ASSERT (bfd_sym_valid (abfd));
sdata = abfd->tdata.sym_data;
- if (index == 0)
+ if (offset == 0)
return -1;
if (bfd_seek (abfd, offset, SEEK_SET) < 0)