Your assessment is correct. The debugger classes in CDT talk to GDB via pipes, but there is still debugger logic in these classes. Part of what these contain is logic to figure out whether or not any path information passed to GDB needs to be massaged on account of the GDB being CygWin based. Since the plugin claims that the GDB that comes with MSPGCC is *not* CygWin based, then none of this translation happens. That's my best guess at this time as to why you're having problems.
You can turn on trace information for the org.eclipse.cdt.debug.mi.core plugin, that should output a dump of the mi1 commands and responses to the console. You'll have to create a .options file inside the plugin's directory with a line that says "org.eclipse.cdt.debug.mi.core/debug=true" in it. I *think* that if you're not debugging Eclipse then this will just spit the output to the console, but I've only used it when debugging using Eclipse to debug itself. If you're using Eclipse to self-debug then the PDE makes this easier for you (you can just turn on tracing for the plugin in its launch configuration), but debugging Eclipse is a long topic and left as an exercise for the reader. BTW there is a trick to getting an updated plugin to actually affect any changes if the version number of the plugin hasn't changed. Since the plugins you are using don't have an update site or anything you're probably safe to simply cheat and upversion the plugin. ___________________________________________ Chris Recoskie Software Designer Texas Instruments, Toronto http://eclipse.org/cdt > -----Original Message----- > From: mspgcc-users-ad...@lists.sourceforge.net [mailto:mspgcc-users- > ad...@lists.sourceforge.net] On Behalf Of jim > Sent: Sunday, September 25, 2005 9:38 PM > To: mspgcc-users@lists.sourceforge.net > Subject: RE: [Mspgcc-users] Mspgcc + eclipse CDT 3.0/Eclipse 3.1 > > I think we're talking about two different parts. I'm using msp430-gdb > for debugging an this uses cygwin. I'm guessing that this is where > cygwin is corrupting the paths. > > I think the java classes are the internal parts that communicate with > (what I'm calling) the debugger. I believe the different classes are > choosen based on "Debugger" selection in the debug setup. > > Is there anyway to see the communication going between eclipse and > msp430-gdb? is there a msp430-gdb that doesn't use cygwin? > > jim > > On Sat, 2005-09-24 at 18:07 -0500, Recoskie, Chris wrote: > > It's in the plugin.xml of net.sf.mspgcc.cdt > > > > It specifies that the debugger that it declares uses the class > > org.eclipse.cdt.debug.mi.core.GDBDebugger, which is the non-CygWin > > debugger in CDT. The CygWin one is > > org.eclipse.cdt.debug.mi.core.CygwinGDBCDIDebugger. You could try > > changing the debugger class in the plugin.xml and see if it helps any. > > > > ___________________________________________ > > > > Chris Recoskie > > Software Designer > > Texas Instruments, Toronto > > http://eclipse.org/cdt > > > > > > > -----Original Message----- > > > From: mspgcc-users-ad...@lists.sourceforge.net [mailto:mspgcc-users- > > > ad...@lists.sourceforge.net] On Behalf Of jim > > > Sent: Saturday, September 24, 2005 9:59 AM > > > To: mspgcc-users@lists.sourceforge.net > > > Subject: RE: [Mspgcc-users] Mspgcc + eclipse CDT 3.0/Eclipse 3.1 > > > > > > > > > I guess I missed that.. "but the debug plugin from the webpage you > > > reference" > > > > > > Maybe that is it... but what debugger should I be running? > > > The default fill in for the debugger comes up with gdb and when run > > > comes up with an execution launch failure. Since the web page I > > > referenced details "msp430-gdb".. this is what I used... the latest > > one > > > in the mspgcc installation from sf. > > > > > > could you point me to the ref on it not being cygwin based. in the > > > mspgcc-help in eclipse it still details cygwin. > > > > > > jim > > > > > specifies that the debugger is not CygWin based. > > > > > > > > On Fri, 2005-09-23 at 22:54 -0500, Recoskie, Chris wrote: > > > > > Well, there have been some changes with the way the debugger works > > > with > > > > > paths, and this can lead to problems if the path information > > stored in > > > > > the binary's debugging information doesn't match. > > > > > > > > > > There have been some changes as well to how CygWin paths are > > resolved. > > > > > I'm not familiar enough with the internals of msp-gdb to say if > > it's > > > > > CygWin based or not, but the debug plugin from the webpage you > > > reference > > > > > specifies that the debugger is not CygWin based. Since I see > > CygWin > > > > > paths reference in your output, perhaps this is the problem. > > > > > > > > > > ___________________________________________ > > > > > > > > > > Chris Recoskie > > > > > Software Designer > > > > > Texas Instruments, Toronto > > > > > http://eclipse.org/cdt > > > > > > > > > > > > > > > > > > > > > -----Original Message----- > > > > > > From: mspgcc-users-ad...@lists.sourceforge.net > > [mailto:mspgcc-users- > > > > > > ad...@lists.sourceforge.net] On Behalf Of jim > > > > > > Sent: Friday, September 23, 2005 11:28 PM > > > > > > To: mspgcc-users@lists.sourceforge.net > > > > > > Subject: Re: [Mspgcc-users] Mspgcc + eclipse CDT 3.0/Eclipse 3.1 > > > > > > > > > > > > I've been doing that tonight... no luck... and no spaces. I > > > started > > > > > from > > > > > > scratch with eclipse. > > > > > > > > > > > > the error is now: > > > > > > > > > > > > Error creating session: > > > > > > > > > > > > > > > > /cygdrive/c/eclipse/C:\eclipsework\embedded\msp430\workspace\test/C:\ecl > > > > > ip > > > > > > sework\embedded\msp430\workspace\test\Debug\test: > > > > > > No such file or directory. > > > > > > > > > > > > the "/cygdrive/c/eclipse/" is the location of eclipse > > > > > > the "C:\eclipsework\embedded\msp430\workspace\test" is the > > project > > > > > > directory > > > > > > the "C:\eclipsework\embedded\msp430\workspace\test\Debug\test" > > is > > > the > > > > > > absolute filename of the target binary > > > > > > > > > > > > these are all concatinated with /. > > > > > > > > > > > > I have not looked at how plugins are done in eclipse... yet. But > > I'd > > > > > > wonder > > > > > > if the file/path generation might be different. There was some > > > change > > > > > in > > > > > > IPath between 3.0 and 3.1. I have not looked a migration guides > > for > > > > > CDT > > > > > > yet. > > > > > > > > > > > > jim > > > > > > > > > > > > work on it again in the AM. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ----- Original Message ----- > > > > > > From: "Recoskie, Chris" <crecos...@ti.com> > > > > > > To: <mspgcc-users@lists.sourceforge.net> > > > > > > Sent: Friday, September 23, 2005 11:10 PM > > > > > > Subject: RE: [Mspgcc-users] Mspgcc + eclipse CDT 3.0/Eclipse 3.1 > > > > > > > > > > > > > > > > > > Having taken a quick inspection of the plugins you reference, > > they > > > > > > should in theory work just fine with CDT 3.0. The build plugin > > is > > > for > > > > > > the 2.0 version of CDT but old build definitions are still > > > supported, > > > > > so > > > > > > it *should* work, and the fact that you can build says that this > > > part > > > > > is > > > > > > probably functioning fine. > > > > > > > > > > > > I have a sneaking suspicion that perhaps it doesn't like the > > fact > > > that > > > > > > you have spaces in the path to your executable. Try putting > > your > > > > > > project in a different folder and see if that helps. > > > > > > > > > > > > ___________________________________________ > > > > > > > > > > > > Chris Recoskie > > > > > > Software Designer > > > > > > Texas Instruments, Toronto > > > > > > http://eclipse.org/cdt > > > > > > > > > > > > > > > > > > > -----Original Message----- > > > > > > > From: mspgcc-users-ad...@lists.sourceforge.net [mailto:mspgcc- > > > users- > > > > > > > ad...@lists.sourceforge.net] On Behalf Of jim > > > > > > > Sent: Friday, September 23, 2005 7:04 PM > > > > > > > To: mspgcc-users@lists.sourceforge.net > > > > > > > Subject: [Mspgcc-users] Mspgcc + eclipse CDT 3.0/Eclipse 3.1 > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > I had the mspgcc tools working on an older version of eclipse. > > > > > After > > > > > > > upgrading, I am having problems getting it started again. > > > > > > > > > > > > > > I'm installing this on an XP home edition computer. I've > > > > > downloaded > > > > > > the > > > > > > > latest windows binaries of mspgcc from sourceforge and the > > > > > latest(?) > > > > > > > mspgcc > > > > > > > eclipse plugin from > > > > > > http://homepage.hispeed.ch/py430/mspgcc/index.html > > > > > > > I > > > > > > > extracted the plugin into the eclipse directory. > > > > > > > > > > > > > > Eclipse 3.1 obviously doesn't follow the example setup. But > > the > > > > > > compiler > > > > > > > seems to be working. I can compile and run its output with > > > > > > msp430-gdb > > > > > > > and > > > > > > > it works just like compiling manually with msp430-gcc. > > However, > > > I > > > > > > have > > > > > > > had > > > > > > > problems getting the debugging working properly. I get the > > > > > following > > > > > > > errors: > > > > > > > > > > > > > > > > > > > > > Error creating session: /cygdrive/c/Program > > > > > Files/eclipse/C:\Documents > > > > > > and > > > > > > > Settings\Owner\workspace\test/C:\Documents and > > > > > > > Settings\Owner\workspace\test\Debug\test: No such file or > > > directory. > > > > > > > Error creating session: /cygdrive/c/Program > > > > > > Files/eclipse/C:\Documents > > > > > > > and > > > > > > > Settings\Owner\workspace\test/C:\Documents and > > > > > > > Settings\Owner\workspace\test\Debug\test: No such file or > > > directory. > > > > > > > Error creating session: /cygdrive/c/Program > > > > > Files/eclipse/C:\Documents > > > > > > and > > > > > > > Settings\Owner\workspace\test/C:\Documents and > > > > > > > Settings\Owner\workspace\test\Debug\test: No such file or > > > directory. > > > > > > > > > > > > > > Eclipse connects with msp430-gdbproxy and erases memory fine. > > > Then > > > > > it > > > > > > is > > > > > > > terminated unless I set the load command in the > > gdb-target.ini > > > to > > > > > > have > > > > > > > an > > > > > > > absolute (explicit) file name (complete path). In this case > > it > > > will > > > > > > write > > > > > > > part of the program before terminating. It looks like there > > are > > > > > > multiple > > > > > > > internal variables being concatinated to generate the path to > > the > > > > > > target > > > > > > > program. > > > > > > > > > > > > > > Any ideas? misconfiguration...or is the plugin not > > compatible > > > > > with > > > > > > this > > > > > > > version? > > > > > > > > > > > > > > Thanks > > > > > > > jim > > > > > > > . > > > > > > > > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------- > > > > > > > SF.Net email is sponsored by: > > > > > > > Tame your development challenges with Apache's Geronimo App > > > Server. > > > > > > > Download > > > > > > > it for free - -and be entered to win a 42" plasma tv or your > > very > > > > > own > > > > > > > Sony(tm)PSP. Click here to play: > > > > > http://sourceforge.net/geronimo.php > > > > > > > _______________________________________________ > > > > > > > Mspgcc-users mailing list > > > > > > > Mspgcc-users@lists.sourceforge.net > > > > > > > https://lists.sourceforge.net/lists/listinfo/mspgcc-users > > > > > > > > > > > > > > > > > > ------------------------------------------------------- > > > > > > SF.Net email is sponsored by: > > > > > > Tame your development challenges with Apache's Geronimo App > > Server. > > > > > > Download > > > > > > it for free - -and be entered to win a 42" plasma tv or your > > very > > > own > > > > > > Sony(tm)PSP. Click here to play: > > > http://sourceforge.net/geronimo.php > > > > > > _______________________________________________ > > > > > > Mspgcc-users mailing list > > > > > > Mspgcc-users@lists.sourceforge.net > > > > > > https://lists.sourceforge.net/lists/listinfo/mspgcc-users > > > > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------- > > > > > > SF.Net email is sponsored by: > > > > > > Tame your development challenges with Apache's Geronimo App > > Server. > > > > > > Download > > > > > > it for free - -and be entered to win a 42" plasma tv or your > > very > > > own > > > > > > Sony(tm)PSP. Click here to play: > > > http://sourceforge.net/geronimo.php > > > > > > _______________________________________________ > > > > > > Mspgcc-users mailing list > > > > > > Mspgcc-users@lists.sourceforge.net > > > > > > https://lists.sourceforge.net/lists/listinfo/mspgcc-users > > > > > > > > > > > > > > > ------------------------------------------------------- > > > > > SF.Net email is sponsored by: > > > > > Tame your development challenges with Apache's Geronimo App > > Server. > > > Download > > > > > it for free - -and be entered to win a 42" plasma tv or your very > > own > > > > > Sony(tm)PSP. Click here to play: > > http://sourceforge.net/geronimo.php > > > > > _______________________________________________ > > > > > Mspgcc-users mailing list > > > > > Mspgcc-users@lists.sourceforge.net > > > > > https://lists.sourceforge.net/lists/listinfo/mspgcc-users > > > -- > > > jim <jbing...@ieee.org> > > > > > > > > > > > > ------------------------------------------------------- > > > SF.Net email is sponsored by: > > > Tame your development challenges with Apache's Geronimo App Server. > > > Download > > > it for free - -and be entered to win a 42" plasma tv or your very own > > > Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php > > > _______________________________________________ > > > Mspgcc-users mailing list > > > Mspgcc-users@lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/mspgcc-users > > > > > > ------------------------------------------------------- > > SF.Net email is sponsored by: > > Tame your development challenges with Apache's Geronimo App Server. > Download > > it for free - -and be entered to win a 42" plasma tv or your very own > > Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php > > _______________________________________________ > > Mspgcc-users mailing list > > Mspgcc-users@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/mspgcc-users > -- > jim <jbing...@ieee.org> > > > > ------------------------------------------------------- > SF.Net email is sponsored by: > Tame your development challenges with Apache's Geronimo App Server. > Download > it for free - -and be entered to win a 42" plasma tv or your very own > Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php > _______________________________________________ > Mspgcc-users mailing list > Mspgcc-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/mspgcc-users