Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [cdt-dev] Use CDT debugger to attach to a running process

MinGw provides GDB 7.0 which should do that.
The installation is very simple and running it is just putting the full path.
Give that a try.


From: cdt-dev-bounces@xxxxxxxxxxx [mailto:cdt-dev-bounces@xxxxxxxxxxx] On Behalf Of Xuan Chen
Sent: Monday, June 28, 2010 2:13 PM
To: CDT General developers list.
Subject: RE: [cdt-dev] Use CDT debugger to attach to a running process


Thanks for the information, Marc.

I know what my confusion was.  I did not expect that I need an gdb locally in my client machine.  

I am running Windows XP and want to debug a running application in a remote Linux X86 machine.  From what I've searched in the web, It seems hard to get a cross gdb binary which runs on Windows, but is capable of debugging Linux applications.

Thanks,

Xuan Chen,  Problem Determination Tools for IBM i
(905) 413-3769 T/L 313-3769
xuanchen@xxxxxxxxxx




Marc Khouzam <marc.khouzam@xxxxxxxxxxxx>
Sent by: cdt-dev-bounces@xxxxxxxxxxx

28/06/2010 09:26 AM

Please respond to
"CDT General developers list." <cdt-dev@xxxxxxxxxxx>

To
"'CDT General developers list.'" <cdt-dev@xxxxxxxxxxx>
cc
Subject
RE: [cdt-dev] Use CDT debugger to attach to a running process





You have to start gdbserver manually on your target.
In eclipse, you specify the path to gdb not gdbserver.
Try using
/usr/bin/gdb
instead of /usr/bin/gdbserver
 
Marc


From: cdt-dev-bounces@xxxxxxxxxxx [mailto:cdt-dev-bounces@xxxxxxxxxxx] On Behalf Of Xuan Chen
Sent:
Sunday, June 27, 2010 6:13 PM
To:
cdt-dev@xxxxxxxxxxx
Subject:
[cdt-dev] Use CDT debugger to attach to a running process



This posting is related to a previous posting:


http://dev.eclipse.org/mhonarc/lists/cdt-dev/msg19589.html


Thanks, Marc, for your information.  I did not get the mails from this mailing list sent to my inbox any more (could be I accidently unsubscribe it? ).  So I thought I did not post it properly and posted it again.  


I tried your suggestion, and now, I put "/usr/bin/gdbserver" in the Main  page of the Debugger tab.  But I still got the same message, except this time, it complains about "Error while launching command: \usr\bin\gdbserver --version".

It seems to me, the debugger treat this as local gdb command, instead of the remote one.










Thanks,

Xuan Chen,  Problem Determination Tools for IBM i
(905) 413-3769 T/L 313-3769
xuanchen@xxxxxxxxxx
_______________________________________________
cdt-dev mailing list
cdt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/cdt-dev


Back to the top