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: RFA: ensure binary objects opened in binary mode


> Date: Fri, 17 Feb 2006 16:59:27 -0500
> From: Charles Wilson <cygwin@cwilson.fastmail.fm>
> 
> However, even on cygwin, it's still *wrong* for gdb to open a solib 
> (which is by definition a binary object) in text mode -- even if it gets 
> "fixed" later by bfd_open().  So IMO this patch is "the right thing" for 
> both cygwin and mingw, even tho there is no observable change in 
> cygwin's behavior -- and it DOES fix a serious bug on mingw.

This patch is fine with me, but I agree with Chris that the
definitions of O_BINARY should be unified in a header file, and the
definitions private to various *.c files removed.  I suggested defs.h
as the header to put the one definition.

Thanks.


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