This is the mail archive of the gdb@sources.redhat.com 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]

Re: DOS/Windows-specific code: all the rest


> From: DJ Delorie <dj@redhat.com>
> Newsgroups: cygnus.gdb
> Date: 08 May 2001 12:31:28 -0400
> 
> Eli Zaretskii <eliz@is.elta.co.il> writes:
> >   - What's the story with files 29k-share/udi/ ?  udi2go32.c seems to
> >     be DJGPP-specific, while udi2soc.c and udr.c are the other way
> >     around: all their code is ifdef'ed away under DJGPP.
> 
> I wrote those.  UDI required a custom version of go32 that had the UDI
> interface libraries linked in, and a custom API between that go32 and
> the program.  It was quite a hack.  On unix systems, the UDI interface
> always sits on the other side of a socket, and it talks to the
> hardware (or simulator) on your behalf.
[...] 
> So, there needs to be one interface for each class of host environment
> that UDI drivers exist for.

This sounds as if we could simply remove the #ifdef's from these
files, since each one of them is compiled on exactly one host, and
they are all orthogonal.  Am I missing something?


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