aboutsummaryrefslogtreecommitdiff
path: root/gdb/osfsolib.c
diff options
context:
space:
mode:
authorJason Molenda <jmolenda@apple.com>1999-10-05 23:13:56 +0000
committerJason Molenda <jmolenda@apple.com>1999-10-05 23:13:56 +0000
commit2acceee2182a942e6a79a972009540990f4dfabf (patch)
tree2ed7ca473f0b49181f1d0214c3450a7eb17f7bcb /gdb/osfsolib.c
parent3e9c42873ee1d0bbb03039baea78c617174f9269 (diff)
downloadfsf-binutils-gdb-2acceee2182a942e6a79a972009540990f4dfabf.zip
fsf-binutils-gdb-2acceee2182a942e6a79a972009540990f4dfabf.tar.gz
fsf-binutils-gdb-2acceee2182a942e6a79a972009540990f4dfabf.tar.bz2
import gdb-1999-10-04 snapshot
Diffstat (limited to 'gdb/osfsolib.c')
-rw-r--r--gdb/osfsolib.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/gdb/osfsolib.c b/gdb/osfsolib.c
index 6b05613..b9fba61 100644
--- a/gdb/osfsolib.c
+++ b/gdb/osfsolib.c
@@ -578,7 +578,9 @@ symbol_add_stub (arg)
{
register struct so_list *so = (struct so_list *) arg; /* catch_errs bogon */
CORE_ADDR text_addr = 0;
+ struct section_addr_info section_addrs;
+ memset (&section_addrs, 0, sizeof (section_addrs));
if (so->textsection)
text_addr = so->textsection->addr;
else if (so->abfd != NULL)
@@ -596,9 +598,10 @@ symbol_add_stub (arg)
text_addr = bfd_section_vma (so->abfd, lowest_sect) + LM_OFFSET (so);
}
+ section_addrs.text_addr = text_addr;
so->objfile = symbol_file_add (so->so_name, so->from_tty,
- text_addr,
- 0, 0, 0, 0, 1);
+ &section_addrs,
+ 0, 0, 0, 1);
return (1);
}