This is the mail archive of the
gdb@sourceware.cygnus.com
mailing list for the GDB project.
Re: Visual C++ and GDB compiling
- To: Andrew Cagney <ac131313 at cygnus dot com>
- Subject: Re: Visual C++ and GDB compiling
- From: Daniel Berlin <dan at cgsoftware dot com>
- Date: 12 Feb 2000 01:39:38 -0500
- Cc: Paul Selormey <paul at emlab dot tutics dot tut dot ac dot jp>, gdb at sourceware dot cygnus dot com
- References: <001501bf5997$94085110$1d1f0f85@emlab.mups.tut.ac.jp> <38A4F77C.1285EE92@cygnus.com>
- Reply-To: dan at cgsoftware dot com
Andrew Cagney <ac131313@cygnus.com> writes:
> Paul Selormey wrote:
>
> >
> > Hello,
> > Is there anyone on this list who is able to compile the GDB with Visual C++
> > (any version)
> > and could share the experience with me?
> >
> > I wish to investigate an MFC frontend to the GDB and I think a better
> > control will be through
> > VC++ compilation.
> >
Not necessarily.
You'd be much better off with cygwin, trust me on this one.
> > Please help, I am completely a newbie to debugger writing and at this point
> > cannot pick just
> > what I need from the CVS.
>
> The company formally known as Cygnus was doing this several years ago
> (legend has it that it wasn't a plesant experience :-( ). Since then
> cygwin has become the prefered (and far easier) way of building GDB
> under Windows.
You think that wasn't pleasant, try writing a symtab reader for
CodeView for GDB.
Back when BeOS was using the PE format, Metrowerk's compiler produced
"Almost CodeView" debug info.
I say almost, because it was broken as all get out right up until Be
switched to Cygnus.
Needless to say, cvread.c was larger and hairier than dwarf2read.c
(which is the largest single source file besides gnu-regex.c and
breakpoint.c in the gdb dir)
Anyway, back to the issue at hand.
>
> To address you're actual question, in theory GDB is ISO-C so VC should
> just compile it.
> I'd check a copy from the CVS repository and give it
> ago. If you're looking to some sort of MFC based interface onto GDB
> then perhaphs look at the UI out stuff Red Hat recently contributed.
>
> Andrew