This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[RFA] sim/common: use bfd access method.
- From: Michael Snyder <msnyder at cygnus dot com>
- To: gdb-patches at sources dot redhat dot com
- Cc: cagney at redhat dot com
- Date: Fri, 12 Apr 2002 18:10:06 -0700
- Subject: [RFA] sim/common: use bfd access method.
2002-04-12 Michael Snyder <msnyder@redhat.com>
* sim-load.c (sim_load_file): Use bfd access method.
Index: sim-load.c
===================================================================
RCS file: /cvs/src/src/sim/common/sim-load.c,v
retrieving revision 1.4
diff -p -r1.4 sim-load.c
*** sim-load.c 25 Apr 2001 21:14:28 -0000 1.4
--- sim-load.c 13 Apr 2002 01:20:42 -0000
*************** sim_load_file (sd, myname, callback, pro
*** 106,112 ****
found_loadable_section = 0;
for (s = result_bfd->sections; s; s = s->next)
{
! if (s->flags & SEC_LOAD)
{
bfd_size_type size;
--- 106,112 ----
found_loadable_section = 0;
for (s = result_bfd->sections; s; s = s->next)
{
! if (bfd_get_section_flags (s) & SEC_LOAD)
{
bfd_size_type size;