This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

how to create a "empty" bfd structure


Hi,

I'm trying to create a bfd structure with bfd_create.
Since I don't have an existing one, I pass NULL as templ.

This seemed to be possible, since bfd_create contains the
lines

  if (templ)
    nbfd->xvec = templ->xvec;

But later bfd_set_format (called from bfd_create) crashes,
because xvec isn't set.

Is there a way to create a bfd structure which isn't connected
to a file or stream?

I want to modify gdb's standalone simulator to not use a
file to execute, but get the program from elsewhere. But the
sim_xxx functions want a bfd structure.

regards,
chris


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]