This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [RFA] sim/common: use bfd access method.
- From: Andrew Cagney <ac131313 at cygnus dot com>
- To: Michael Snyder <msnyder at cygnus dot com>
- Cc: gdb-patches at sources dot redhat dot com, cagney at redhat dot com
- Date: Sun, 14 Apr 2002 20:37:33 -0400
- Subject: Re: [RFA] sim/common: use bfd access method.
- References: <200204130110.g3D1A6P13999@reddwarf.sfbay.redhat.com>
> 2002-04-12 Michael Snyder <msnyder@redhat.com>
>
> * sim-load.c (sim_load_file): Use bfd access method.
Looks fairly obvious :-)
Andrew
> 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;
>
>