aboutsummaryrefslogtreecommitdiff
path: root/bfd/vms.c
diff options
context:
space:
mode:
authorKaz Kojima <kkojima@rr.iij4u.or.jp>2002-11-04 21:44:36 +0000
committerKaz Kojima <kkojima@rr.iij4u.or.jp>2002-11-04 21:44:36 +0000
commit5e9aae3e09f5599801175ff897f034cd5ab6c670 (patch)
treef24d5b16697778e48f308484b6fc00db92eef49f /bfd/vms.c
parentdd2768ffd508d9b0a2df004883e671fb9c728565 (diff)
downloadgdb-5e9aae3e09f5599801175ff897f034cd5ab6c670.zip
gdb-5e9aae3e09f5599801175ff897f034cd5ab6c670.tar.gz
gdb-5e9aae3e09f5599801175ff897f034cd5ab6c670.tar.bz2
* vms.c (vms_object_p): Restore the start address when returning
NULL.
Diffstat (limited to 'bfd/vms.c')
-rw-r--r--bfd/vms.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/bfd/vms.c b/bfd/vms.c
index fc6bcc3..41a9717 100644
--- a/bfd/vms.c
+++ b/bfd/vms.c
@@ -382,6 +382,7 @@ vms_object_p (abfd)
const struct bfd_target *target_vector = 0;
const bfd_arch_info_type *arch = 0;
PTR tdata_save = abfd->tdata.any;
+ bfd_vma saddr_save = bfd_get_start_address (abfd);
#if VMS_DEBUG
vms_debug (1, "vms_object_p(%p)\n", abfd);
@@ -519,6 +520,7 @@ vms_object_p (abfd)
if (abfd->tdata.any != tdata_save && abfd->tdata.any != NULL)
bfd_release (abfd, abfd->tdata.any);
abfd->tdata.any = tdata_save;
+ bfd_set_start_address (abfd, saddr_save);
return NULL;
}