[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
RE: [cdt-dev] Can we use CDT debugger to attach to a running process in remote Linux server?
|
I'm going to assume you are using a relatively recent GDB
version (say 6.8 or more) because the --multi option
is not available in older GDBs.
run gdbserver like this
gdbserver --multi :10000
no
need for --attach.
Then,
in DSF-GDB, after you have connected to your target, you can click the 'connect'
button which is
on the
debug view bar. Depending on the GDB version you may get a list running
processes on your
target. You can select the one you want. If you don't get a
list, you'll be prompted for a pid, and you
can
put the current pid on the target e.g., 6700)
From:
cdt-dev-bounces@xxxxxxxxxxx [mailto:cdt-dev-bounces@xxxxxxxxxxx] On Behalf Of
Xuan Chen
Sent: March-16-10 12:19 PM
To: CDT General
developers list.
Subject: RE: [cdt-dev] Can we use CDT debugger to
attach to a running process in remote Linux server?
Thanks for the information,
Marc.
Some additional newbie
questions regarding to using DSF-GDB:
I tried the following:
In the
Connection sub-tab, I chose the connection type as "TCP", and for Host name or
IP address, I put in the remote linux server name, and a random number (10000)
in the Port number entry field.
Then in my linux server, I typed command like this:
gdbserver --multi :10000 --attach
6700
Are these the right steps?
Thanks,
xuanchen@xxxxxxxxxx
Marc Khouzam
<marc.khouzam@xxxxxxxxxxxx> Sent by: cdt-dev-bounces@xxxxxxxxxxx
16/03/2010 11:13 AM
Please respond
to "CDT General developers list."
<cdt-dev@xxxxxxxxxxx> |
|
To
| "CDT General developers list."
<cdt-dev@xxxxxxxxxxx>
|
cc
|
|
Subject
| RE: [cdt-dev] Can we use CDT
debugger to attach to a running process
in remote Linux server? |
|
There are a couple of ways to do this using DSF-GDB, CDI or
EDC.
Here's how to do it with
DSF-GDB:
Create a new "C/C++ Attach to Application" launch configuration type,
and at the bottom of the tabs you will see a hyperlink.
Click on it and select the "GDB (DSF) Attach to
Process Launcher"
In the
Debugger tab, select the 'gdbserver Debugger' (instead of the gdb/mi
default).
You will then get a
'connection' sub-tab in the Debugger tab to put the IP address and
port.
You also need to start gdbserver on your remote linux using
gdbserver --multi :<port>
Marc
From: cdt-dev-bounces@xxxxxxxxxxx
[mailto:cdt-dev-bounces@xxxxxxxxxxx] On Behalf Of Xuan
Chen
Sent: March-16-10 11:00 AM
To: CDT General developers
list.
Subject: [cdt-dev] Can we use CDT debugger to attach to a
running process in remote Linux server?
Hi,
It is probably a user question,
instead of a developer question...
Is there a way to attach to a running process (the
application I want to debug need a special launch) in remote Linux server
using CDT debug support? Thanks.
Regards,
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