aboutsummaryrefslogtreecommitdiff
path: root/bfd/vms-lib.c
diff options
context:
space:
mode:
authorTristan Gingold <gingold@adacore.com>2011-12-23 09:23:31 +0000
committerTristan Gingold <gingold@adacore.com>2011-12-23 09:23:31 +0000
commit94d6b14738743cbc2f156074467faf6d917aa4b6 (patch)
tree196217e761841d81d37f4a36180f6b728253758a /bfd/vms-lib.c
parent9cea966c22d3db4ed4d7008241103b05105c17d3 (diff)
downloadgdb-94d6b14738743cbc2f156074467faf6d917aa4b6.zip
gdb-94d6b14738743cbc2f156074467faf6d917aa4b6.tar.gz
gdb-94d6b14738743cbc2f156074467faf6d917aa4b6.tar.bz2
2011-12-23 Tristan Gingold <gingold@adacore.com>
* vms-lib.c (vms_traverse_index): Move pointer update code.
Diffstat (limited to 'bfd/vms-lib.c')
-rw-r--r--bfd/vms-lib.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/bfd/vms-lib.c b/bfd/vms-lib.c
index b325d74..48d656b 100644
--- a/bfd/vms-lib.c
+++ b/bfd/vms-lib.c
@@ -277,6 +277,9 @@ vms_traverse_index (bfd *abfd, unsigned int vbn, struct carsym_mem *cs)
if (idx_vbn == 0)
return FALSE;
+ /* Point to the next index entry. */
+ p = keyname + keylen;
+
if (idx_off == RFADEF__C_INDEX)
{
/* Indirect entry. Recurse. */
@@ -368,9 +371,6 @@ vms_traverse_index (bfd *abfd, unsigned int vbn, struct carsym_mem *cs)
return FALSE;
}
}
-
- /* Point to the next index entry. */
- p = keyname + keylen;
}
return TRUE;