Discussion:
Eclipse/GDB integration
Heyendal, Carl
2009-10-26 13:21:47 UTC
Permalink
I'm trying to get GDB going on an embedded project within Eclipse without a jtag device. I thought it would be an easy task but it's turning out to be a nightmare. There's no info on the net about GDB/Eclipse integrations related to remote target debugging without JTAG. It's all related to native application debugging, or 3rd party remote debugging through JTAG. Help is crap in Eclipse. It seemed easy enough with only 2 fields to enter in Eclipse for the debugger location and the .gdbinit file location. But Eclipse lights up like the Las Vegas strip when I invoke the debugger for a simple "HelloWorld" embedded app. I've frigged around with various settings with no luck.

My platform is Linux/Eclipse/CDT.

Someone mentioned I need a cross enabled CDT - Zylin?? Do I need this plugin?

Are there any other plugins required?

What should go into .gdbinit?

Can someone point me to some resource that could help me?


Carl Heyendal

Senior Embedded S/W Designer

Stanley Healthcare Solutions
309 Legget Drive
Ottawa, ON K2K 3A3
Canada

Tel: 613-592-6997 ext. 265
Fax: 613 592-4296
cheyendal-ISD/***@public.gmane.org<mailto:cheyendal-ISD/***@public.gmane.org>
www.stanleyhealthcare.com<http://www.stanleyhealthcare.com/>

This e-mail, including any attached files, is intended only for the person to whom or the entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer.
Marc Khouzam
2009-10-26 13:30:16 UTC
Permalink
First, what version of CDT are you using?

With CDT 6.0 (Galileo), I do remote debugging with GDB using the new DSF-GDB integration.
When creating a launch configuration, choose C/C++ application. Then, at the bottom of the main tab (on the left
of the Apply button) you will see a hyperlink. Click on it and then select
"GDB (DSF) REmote System Process Launcher"
After that, the tabs will change to request the proper info.
Make sure you go to the tab Debugger->Connection and put in the info needed.
If your agent is running on your target, it should all work when you press Debug.

Unless there is something special about your setup, you don't need anything special in .gdbinit.

Marc



________________________________
From: cdt-debug-dev-bounces-j9T/***@public.gmane.org [mailto:cdt-debug-dev-***@eclipse.org] On Behalf Of Heyendal, Carl
Sent: Monday, October 26, 2009 9:22 AM
To: cdt-debug-dev-j9T/***@public.gmane.org
Subject: [cdt-debug-dev] Eclipse/GDB integration

I'm trying to get GDB going on an embedded project within Eclipse without a jtag device. I thought it would be an easy task but it's turning out to be a nightmare. There's no info on the net about GDB/Eclipse integrations related to remote target debugging without JTAG. It's all related to native application debugging, or 3rd party remote debugging through JTAG. Help is crap in Eclipse. It seemed easy enough with only 2 fields to enter in Eclipse for the debugger location and the .gdbinit file location. But Eclipse lights up like the Las Vegas strip when I invoke the debugger for a simple "HelloWorld" embedded app. I've frigged around with various settings with no luck.

My platform is Linux/Eclipse/CDT.

Someone mentioned I need a cross enabled CDT - Zylin?? Do I need this plugin?

Are there any other plugins required?

What should go into .gdbinit?

Can someone point me to some resource that could help me?


Carl Heyendal

Senior Embedded S/W Designer

Stanley Healthcare Solutions
309 Legget Drive
Ottawa, ON K2K 3A3
Canada

Tel: 613-592-6997 ext. 265
Fax: 613 592-4296
cheyendal-ISD/***@public.gmane.org<mailto:cheyendal-ISD/***@public.gmane.org>
www.stanleyhealthcare.com<http://www.stanleyhealthcare.com/>

This e-mail, including any attached files, is intended only for the person to whom or the entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer.
Heyendal, Carl
2009-10-26 14:42:26 UTC
Permalink
Marc,

Thanks very much. Your help did the trick.

I was almost there. I was overlooking the information in the Connection tab.

thanks again
/carl h.


________________________________
From: cdt-debug-dev-bounces-j9T/***@public.gmane.org [mailto:cdt-debug-dev-***@eclipse.org] On Behalf Of Marc Khouzam
Sent: Monday, October 26, 2009 9:30 AM
To: 'CDT Debug developers list'
Subject: [cdt-debug-dev] RE: Eclipse/GDB integration

First, what version of CDT are you using?

With CDT 6.0 (Galileo), I do remote debugging with GDB using the new DSF-GDB integration.
When creating a launch configuration, choose C/C++ application. Then, at the bottom of the main tab (on the left
of the Apply button) you will see a hyperlink. Click on it and then select
"GDB (DSF) REmote System Process Launcher"
After that, the tabs will change to request the proper info.
Make sure you go to the tab Debugger->Connection and put in the info needed.
If your agent is running on your target, it should all work when you press Debug.

Unless there is something special about your setup, you don't need anything special in .gdbinit.

Marc



________________________________
From: cdt-debug-dev-bounces-j9T/***@public.gmane.org [mailto:cdt-debug-dev-***@eclipse.org] On Behalf Of Heyendal, Carl
Sent: Monday, October 26, 2009 9:22 AM
To: cdt-debug-dev-j9T/***@public.gmane.org
Subject: [cdt-debug-dev] Eclipse/GDB integration

I'm trying to get GDB going on an embedded project within Eclipse without a jtag device. I thought it would be an easy task but it's turning out to be a nightmare. There's no info on the net about GDB/Eclipse integrations related to remote target debugging without JTAG. It's all related to native application debugging, or 3rd party remote debugging through JTAG. Help is crap in Eclipse. It seemed easy enough with only 2 fields to enter in Eclipse for the debugger location and the .gdbinit file location. But Eclipse lights up like the Las Vegas strip when I invoke the debugger for a simple "HelloWorld" embedded app. I've frigged around with various settings with no luck.

My platform is Linux/Eclipse/CDT.

Someone mentioned I need a cross enabled CDT - Zylin?? Do I need this plugin?

Are there any other plugins required?

What should go into .gdbinit?

Can someone point me to some resource that could help me?


Carl Heyendal

Senior Embedded S/W Designer

Stanley Healthcare Solutions
309 Legget Drive
Ottawa, ON K2K 3A3
Canada

Tel: 613-592-6997 ext. 265
Fax: 613 592-4296
cheyendal-ISD/***@public.gmane.org<mailto:cheyendal-ISD/***@public.gmane.org>
www.stanleyhealthcare.com<http://www.stanleyhealthcare.com/>

This e-mail, including any attached files, is intended only for the person to whom or the entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer.
Marc Khouzam
2009-10-26 15:08:12 UTC
Permalink
I agree that there should be better documentation for this.
Someone mentioned a type of 'tutorial' for how to do such debugging.
I'm hoping to get some time eventually to get things started.

________________________________
From: cdt-debug-dev-bounces-j9T/***@public.gmane.org [mailto:cdt-debug-dev-***@eclipse.org] On Behalf Of Heyendal, Carl
Sent: Monday, October 26, 2009 10:42 AM
To: CDT Debug developers list
Subject: [cdt-debug-dev] RE: Eclipse/GDB integration

Marc,

Thanks very much. Your help did the trick.

I was almost there. I was overlooking the information in the Connection tab.

thanks again
/carl h.


________________________________
From: cdt-debug-dev-bounces-j9T/***@public.gmane.org [mailto:cdt-debug-dev-***@eclipse.org] On Behalf Of Marc Khouzam
Sent: Monday, October 26, 2009 9:30 AM
To: 'CDT Debug developers list'
Subject: [cdt-debug-dev] RE: Eclipse/GDB integration

First, what version of CDT are you using?

With CDT 6.0 (Galileo), I do remote debugging with GDB using the new DSF-GDB integration.
When creating a launch configuration, choose C/C++ application. Then, at the bottom of the main tab (on the left
of the Apply button) you will see a hyperlink. Click on it and then select
"GDB (DSF) REmote System Process Launcher"
After that, the tabs will change to request the proper info.
Make sure you go to the tab Debugger->Connection and put in the info needed.
If your agent is running on your target, it should all work when you press Debug.

Unless there is something special about your setup, you don't need anything special in .gdbinit.

Marc



________________________________
From: cdt-debug-dev-bounces-j9T/***@public.gmane.org [mailto:cdt-debug-dev-***@eclipse.org] On Behalf Of Heyendal, Carl
Sent: Monday, October 26, 2009 9:22 AM
To: cdt-debug-dev-j9T/***@public.gmane.org
Subject: [cdt-debug-dev] Eclipse/GDB integration

I'm trying to get GDB going on an embedded project within Eclipse without a jtag device. I thought it would be an easy task but it's turning out to be a nightmare. There's no info on the net about GDB/Eclipse integrations related to remote target debugging without JTAG. It's all related to native application debugging, or 3rd party remote debugging through JTAG. Help is crap in Eclipse. It seemed easy enough with only 2 fields to enter in Eclipse for the debugger location and the .gdbinit file location. But Eclipse lights up like the Las Vegas strip when I invoke the debugger for a simple "HelloWorld" embedded app. I've frigged around with various settings with no luck.

My platform is Linux/Eclipse/CDT.

Someone mentioned I need a cross enabled CDT - Zylin?? Do I need this plugin?

Are there any other plugins required?

What should go into .gdbinit?

Can someone point me to some resource that could help me?


Carl Heyendal

Senior Embedded S/W Designer

Stanley Healthcare Solutions
309 Legget Drive
Ottawa, ON K2K 3A3
Canada

Tel: 613-592-6997 ext. 265
Fax: 613 592-4296
cheyendal-ISD/***@public.gmane.org<mailto:cheyendal-ISD/***@public.gmane.org>
www.stanleyhealthcare.com<http://www.stanleyhealthcare.com/>

This e-mail, including any attached files, is intended only for the person to whom or the entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer.
Loading...