This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB 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]

Re: [RFC-v5] Fix .text section offset for windows DLL (was Calling __stdcall functions in the inferior)


I haven't tried to grok the patch, but Kai tells me that a section name in PE headers
are stored in 8 character arrays, and are not necessarily zero-terminated.
He was wondering, and now I am too, if it wouldn't be possible to make use
of bfd routines to get at the necessary info, like the .text section offset.
E.g., bfd handles the long section name PE extension to coff (see coffcode.h in
bfd), though I'm not sure that needs to apply here.

-- 
Pedro Alves


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