Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[dsdp-tm-dev] RE: eclipse remote deubgging bug or my error?

The point is that when you want gdbserver, you need
A LOCAL gdbprogram that can read and understand the
Target architecture - in other words, a cross debugger.

Your LOCAL cross debugger reads the code that is compiled
For REMOTE and does the actual debugging.

Since this is really an FAQ, I created an FAQ entry:
http://wiki.eclipse.org/TM_and_RSE_FAQ#How_can_I_do_Remote_Debugging_with_CDT.3F
Let me know if anything is still unclear.

Cheers,
--
Martin Oberhuber, Senior Member of Technical Staff, Wind River
Target Management Project Lead, DSDP PMC Member
http://www.eclipse.org/dsdp/tm
 
 

> -----Original Message-----
> From: Castedo Ellerman [mailto:castedo@xxxxxxxxxxxxx] 
> Sent: Mittwoch, 26. März 2008 21:07
> To: Oberhuber, Martin
> Subject: RE: eclipse remote deubgging bug or my error?
> 
> Thank you. I wasn't using RSE Remote CDT but now I have 
> installed it but
> reproduce the same two problems. I have submitted a bug for the NPE.
> 
> I can get around the NPE by inputing a local path to my 
> application but
> then it appears that Ecplise tries to run my application 
> locally (which
> promptly segmentation faults because it can only run on my remote
> machine).
> 
> I'm just confused why the configuration window to "Remote C/C++
> Application" (from launching Run > Open Debug Dialog...) asks for (and
> seems to require) "C/C++ Application:" when there already is 
> a field for
> "Remote Absolute File Path for C/C++ Application".
> 
> In your install are you required to input "C/C++ Application" with a
> local path to your application on the Main tab? Is there something
> messed up about my project?
> 
> 
> On Wed, 2008-03-26 at 19:11 +0100, Oberhuber, Martin wrote:
> > Hello Castedo, 
> > 
> > Your're using the "Remote C/C++ Application" Launch from
> > The RSE RemoteCDT integration right?
> > 
> > I suggst you file a bug against RSE sine we should not 
> > NPE under any circumstances. Please attach the NPE traceback.
> > 
> > 
> https://bugs.eclipse.org/bugs/enter_bug.cgi?product=Target%20M
anagement&version=unspecified&component=RSE
> > 
> > Thanks,
> > --
> > Martin Oberhuber, Senior Member of Technical Staff, Wind River
> > Target Management Project Lead, DSDP PMC Member
> > http://www.eclipse.org/dsdp/tm
> >  
> > 
> > 
> > > -----Original Message-----
> > > From: Castedo Ellerman [mailto:castedo@xxxxxxxxxxxxx] 
> > > Sent: Mittwoch, 26. März 2008 17:40
> > > To: Oberhuber, Martin
> > > Subject: eclipse remote deubgging bug or my error?
> > > 
> > > Sorry to bother you directly, let me know if there is a 
> forum I should
> > > send this to.
> > > 
> > > I can't tell whether I have found a bug in CDT or I'm not doing
> > > something right.
> > > 
> > > I have read 
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=30094 and
> > > associated links. I seem to have gotten VERY VERY close to getting
> > > Eclipse (3.3.2) with CDT to do remote gdb debugging for me. I 
> > > have been
> > > able to get gdb/gdbserver to remote debug my application 
> > > successfully. I
> > > have even been able to successfully remote gdbserver 
> connect, run and
> > > step through my app with gdb remoting to gdbserver WHILE 
> > > INSIDE Eclipse,
> > > turning on verbose mode and typing gdb commands directly into the
> > > console, but the Eclipse debugging UI ignores and does 
> not do anything
> > > with the information spewed out by gdb.
> > > 
> > > I pull off the above by creating a debug configuration 
> but leaving the
> > > "C/C++ Application" field on the Main tab to blank. The 
> other fields I
> > > set approriately for using gdbserver. When I invoke a 
> debug session I
> > > get a java.lang.NullPointerException but am still able to type gdb
> > > commands and do everything I mention above.
> > > 
> > > If I _DO_ input to the "C/C++ Application" field a path to my 
> > > executable
> > > (which runs on the remote machine only) and invoke debug then the
> > > gdbserver is not connected to and it appears Eclipse/gdb are 
> > > running the
> > > executable on my local machine and my executable promptly 
> seg faults
> > > (because it does not run on my local machine).
> > > 
> > > My local machine is Debian and the remote machine is 
> SuSE/SLES (v8 i
> > > think). Both a x86 Linux.
> > > 
> > > Am I doing something wrong? or is this a bug in Eclipse?
> > > 
> > > Thank you for your time,
> > >   Castedo Ellerman
> > > 
> > > 
> > > 
> 
> 


Back to the top