aboutsummaryrefslogtreecommitdiff
path: root/sim/m68hc11/interp.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2004-06-15 01:08:34 +0000
committerAlan Modra <amodra@gmail.com>2004-06-15 01:08:34 +0000
commit84b11e2eb505dd43a13ae6b0e95c117dd23604d0 (patch)
treedd0900ae054ab41d561b20cd62d2587f9522dd79 /sim/m68hc11/interp.c
parent5f510f9ca0cff5d1401cce41a436c5b552c06ce1 (diff)
downloadgdb-84b11e2eb505dd43a13ae6b0e95c117dd23604d0.zip
gdb-84b11e2eb505dd43a13ae6b0e95c117dd23604d0.tar.gz
gdb-84b11e2eb505dd43a13ae6b0e95c117dd23604d0.tar.bz2
* interp.c (sim_prepare_for_program): Use bfd_get_section_size
instead of bfd_get_section_size_before_reloc.
Diffstat (limited to 'sim/m68hc11/interp.c')
-rw-r--r--sim/m68hc11/interp.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sim/m68hc11/interp.c b/sim/m68hc11/interp.c
index b80bc94..eed2d2c 100644
--- a/sim/m68hc11/interp.c
+++ b/sim/m68hc11/interp.c
@@ -1,5 +1,6 @@
/* interp.c -- Simulator for Motorola 68HC11/68HC12
- Copyright (C) 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
+ Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004
+ Free Software Foundation, Inc.
Written by Stephane Carrez (stcarrez@nerim.fr)
This file is part of GDB, the GNU debugger.
@@ -386,7 +387,7 @@ sim_prepare_for_program (SIM_DESC sd, bfd* abfd)
{
bfd_size_type size;
- size = bfd_get_section_size_before_reloc (s);
+ size = bfd_get_section_size (s);
if (size > 0)
{
bfd_vma lma;