[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
RE: [cdt-dev] Trying to run simple hello world
|
Yup, it's been a fairly recent change to cygwin's gdb that broke us. Maybe 6
months ago?
Doug Schaefer, QNX Software Systems
Eclipse CDT Project Lead, http://cdtdoug.blogspot.com
> -----Original Message-----
> From: cdt-dev-bounces@xxxxxxxxxxx [mailto:cdt-dev-bounces@xxxxxxxxxxx] On
> Behalf Of Beth Tibbitts
> Sent: Monday, June 25, 2007 9:05 PM
> To: CDT General developers list.
> Subject: RE: [cdt-dev] Trying to run simple hello world
>
> I guess my previous "first C app" demos have been on Linux.
> My linux machine died today. :-(
>
> I could have sworn that the cygwin examples for first debug worked 'out of
> the box' at some time in the past. Is this not true?
>
>
> >The trick is to add a path mapping to the source locations and map
> >/cygdrive/c to C:/.
> Can you explain exactly what you mean by this? Windows drive mapping? ?
>
> ...Beth
>
> Beth Tibbitts (859) 243-4981 (TL 545-4981)
> High Productivity Tools / Parallel Tools http://eclipse.org/ptp
> IBM T.J.Watson Research Center
> Mailing Address: IBM Corp., 455 Park Place, Lexington, KY 40511
>
>
>
> Doug Schaefer
> <DSchaefer@xxxxxx
> m> To
> Sent by: "CDT General developers list."
> cdt-dev-bounces@e <cdt-dev@xxxxxxxxxxx>
> clipse.org cc
>
> Subject
> 06/25/2007 08:48 RE: [cdt-dev] Trying to run simple
> PM hello world
>
>
> Please respond to
> "CDT General
> developers list."
> <cdt-dev@eclipse.
> org>
>
>
>
>
>
>
> No problem, Beth. You have entered into the world of evil Cygwin ;).
> (Again
> I apologize to the cygwin developers. They're good people, just marching
> in
> a different direction.)
>
> The trick is to add a path mapping to the source locations and map
> /cygdrive/c to C:/. There has been some effort to make this automagic but
> I
> can't remember if this made it in or not. I'd recommend this as a first
> step. If that doesn't work, then yes, please open a bug.
>
> At any rate, my long promised "CDT for Windows" is nearing completion as
> soon as I get the SourceForge project created. This is a Windows installer
> that will install the Harmony JRE, Eclipse Platform, CDT 4, MinGW and a
> couple of extra libraries and should work out of the box. I'll make an
> announcement when I'm ready.
>
> Doug Schaefer, QNX Software Systems
> Eclipse CDT Project Lead, http://cdtdoug.blogspot.com
>
>
> > -----Original Message-----
> > From: cdt-dev-bounces@xxxxxxxxxxx [mailto:cdt-dev-bounces@xxxxxxxxxxx]
> On
> > Behalf Of Beth Tibbitts
> > Sent: Monday, June 25, 2007 8:32 PM
> > To: cdt-dev@xxxxxxxxxxx
> > Subject: [cdt-dev] Trying to run simple hello world
> >
> >
> > What am I doing wrong?
> > I'm walking thru a sample first C app for some tutorial slides. Got CDT
> > 4.0RC4a.
> >
> > (Windows Cygwin, same way I always have it set up ...)
> >
> > New C project, give it a name, select Hello World ANSI C Project, Next
> > accept defaults, Next, Finish,
> > (note: source file comment says it's a .cpp file, but it's really a .c
> > file
> > -- not important)?
> > Builds ok.
> >
> > Debug icon > Debug As > Local C/C++ application
> > Select Cygwin gdb debugger (the default) (double click on it)
> > accept Switch to debug perspective
> >
> > It stops at main but the source window says "Can't find a source file at
> > "/cygdrive/c/ews/runtime-cdt40/zzzTest/src/zzzTest.c"
> > (which is indeed my src file location)
> > Did I do something differently? Have I not run a simple hello world in a
> > while? Or did the recent changes do this?
> >
> > The console says "No source file named ......
> >
> >
> > Hmmm. I tried another project with my own sample c file, similar
> > problems,
> > then came back to the generated hello world file,
> > and now when i enter debug, the console says "No source file named
> > (previous project I mucked with) but the project I'm debugging is a the
> > hello world one.
> > Even if i create a new hello world project, then debug it immediately,
> the
> > CONSOLE keeps saying it can't find (previous project) source file.
> >
> > I apologize if I'm doing something stupid, but if this is a bug ....
> >
> >
> >
> >
> >
> > ...Beth
> >
> > Beth Tibbitts (859) 243-4981 (TL 545-4981)
> > High Productivity Tools / Parallel Tools http://eclipse.org/ptp
> > IBM T.J.Watson Research Center
> > Mailing Address: IBM Corp., 455 Park Place, Lexington, KY 40511
> >
> > _______________________________________________
> > cdt-dev mailing list
> > cdt-dev@xxxxxxxxxxx
> > https://dev.eclipse.org/mailman/listinfo/cdt-dev
> _______________________________________________
> cdt-dev mailing list
> cdt-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/cdt-dev
>
>
> _______________________________________________
> cdt-dev mailing list
> cdt-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/cdt-dev