diff options
author | Alan Modra <amodra@gmail.com> | 2003-10-11 12:41:12 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2003-10-11 12:41:12 +0000 |
commit | 9e126dc09489530f0300ed7c6b417ce1e27d312f (patch) | |
tree | 2612681d8bac8b06e41baf78bcc93b2157507da2 | |
parent | b98ed7bea67d297b6f60ce6912bfababf63ae911 (diff) | |
download | gdb-9e126dc09489530f0300ed7c6b417ce1e27d312f.zip gdb-9e126dc09489530f0300ed7c6b417ce1e27d312f.tar.gz gdb-9e126dc09489530f0300ed7c6b417ce1e27d312f.tar.bz2 |
* interp.c (sim_load): Don't refer directly to _cooked_size and vma;
Use bfd_section_size and bfd_get_section_vma.
-rw-r--r-- | sim/mcore/ChangeLog | 5 | ||||
-rw-r--r-- | sim/mcore/interp.c | 8 |
2 files changed, 10 insertions, 3 deletions
diff --git a/sim/mcore/ChangeLog b/sim/mcore/ChangeLog index be79bec..d36c923d 100644 --- a/sim/mcore/ChangeLog +++ b/sim/mcore/ChangeLog @@ -1,3 +1,8 @@ +2003-10-11 Alan Modra <amodra@bigpond.net.au> + + * interp.c (sim_load): Don't refer directly to _cooked_size and vma; + Use bfd_section_size and bfd_get_section_vma. + 2003-02-27 Andrew Cagney <cagney@redhat.com> * interp.c (sim_open, sim_create_inferior): Rename _bfd to bfd. diff --git a/sim/mcore/interp.c b/sim/mcore/interp.c index bf04ed9..f1f7534 100644 --- a/sim/mcore/interp.c +++ b/sim/mcore/interp.c @@ -1,5 +1,5 @@ /* Simulator for Motorola's MCore processor - Copyright (C) 1999, 2000 Free Software Foundation, Inc. + Copyright (C) 1999, 2000, 2002, 2003 Free Software Foundation, Inc. Contributed by Cygnus Solutions. This file is part of GDB, the GNU debugger. @@ -1981,9 +1981,11 @@ sim_load (sd, prog, abfd, from_tty) /* figure the end of the bss section */ #if 0 printf ("bss section at 0x%08x for 0x%08x bytes\n", - (unsigned long) s_bss->vma , (unsigned long) s_bss->_cooked_size); + (unsigned long) bfd_get_section_vma (handle, s_bss), + (unsigned long) bfd_section_size (handle, s_bss)); #endif - heap_ptr = (unsigned long) s_bss->vma + (unsigned long) s_bss->_cooked_size; + heap_ptr = ((unsigned long) bfd_get_section_vma (handle, s_bss) + + (unsigned long) bfd_section_size (handle, s_bss)); /* Clean up after ourselves. */ bfd_close (handle); |