Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » How to set CDT to use a "cross-debugger" GDB?
How to set CDT to use a "cross-debugger" GDB? [message #157690] Thu, 10 November 2005 12:35 Go to next message
Eclipse UserFriend
Originally posted by: fabricio.dea.inpe.br

Hi all,

I'm starting with Eclipse and CDT now. I installed both and configured
them to compile to a SPARC cross-compiler, "sparc-rtems-gcc" (RTEMS is a
real-time operating system, which I'm using with a SPARC processor).

I created a makefile and built the application without problems.

Now I'm trying to debug inside Eclipse, using the SPARC Instruction
Simulator (SIS) as target. I created a new debug configuration, pointing
to sparc-rtems-gdb, and a .gdbinit file with the following commands:

target sim
lo

But when I try to debug, I get the message:

"Target Request Failed {R, T}xThread terminated"

If I call sparc-rtems-gdb from the console, inside the project folder, it
works normally.

Am I missing something? Is it possible to debug a cross-compiled app with
Eclipse? Any answer or comment will be very appreciated.

My environment is:
Mandrake Linux 10.1
Eclipse 3.1.1
CDT 3.0.0
GDB 5.2

Thank you in advance,


Fabrício de Novaes Kucinskis.
Re: How to set CDT to use a "cross-debugger" GDB? [message #157729 is a reply to message #157690] Thu, 10 November 2005 17:53 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: mikhailk.qnx.com

Get the gdb trace to see what is happenning. See the CDT debugger FAQ #5.

""Fabr
Re: How to set CDT to use a "cross-debugger" GDB? [message #157763 is a reply to message #157729] Fri, 11 November 2005 07:18 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: fabricio.dea.inpe.br

Mikhail Khodjaiants wrote:
> Get the gdb trace to see what is happenning. See the CDT debugger FAQ #5.


Mikhail,


Thank yoy for the answer. I did what you told, and I noticed that when I
start the debugger, there are several lines with the following, in the
eclipse debug log:

[Fatal Error] .cdtproject:1:1. Content is not allowed in prolog.

I have no idea what it means. In the Console tab, inside Eclipse, I get
the message

"No symbol 'auto' in current context", plus that dialog warning me that

"Target Request Failed {R, T}xThread terminated".

I'm trying to debug using a SPARC simulator, SIS. Using gdb/ddd, I can do
this by just commanding "target sim" (which is already in my eclipse
gdbnit file). Should I use a "GDB Server" instead of a "GDB Debugger" as
debugger in my debug configuration? If so, how to configure the connection
(remember that it's not a connection to a real target, but to a local
simulator)?

Thanks again,


Fabrício.
Re: How to set CDT to use a "cross-debugger" GDB? [message #157838 is a reply to message #157763] Fri, 11 November 2005 17:43 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: mikhailkhod.rogers.com

> [Fatal Error] .cdtproject:1:1. Content is not allowed in prolog.
I don't know what this message means. Try to create a new workspace.

> "No symbol 'auto' in current context", plus that dialog warning me that
>
> "Target Request Failed {R, T}xThread terminated".
The last message means the gdb session is gone. I need the gdb trace to
figure out what is going on.

If "target sim" is the only command you need to start a session why do you
need to configure connection or use gdb Server?
I have heard of some CDT adaptations to use simulators. Check this link
http://www.zylin.com/embeddedcdt.html.

"Fabr
Re: How to set CDT to use a "cross-debugger" GDB? [message #158272 is a reply to message #157838] Thu, 17 November 2005 12:12 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: fabricio.dea.inpe.br

Mikhail, thank you again for the answer.

>> [Fatal Error] .cdtproject:1:1. Content is not allowed in prolog.
> I don't know what this message means. Try to create a new workspace.

I created a new workspace, and this problem don't occurs anymore.

> If "target sim" is the only command you need to start a session why do you
> need to configure connection or use gdb Server?

I'm sorry I wasn't clear here. Now I know better my problem, and I'm going
to post another message to explain it better.

Thank you once more,


Fabrício.
Re: How to set CDT to use a "cross-debugger" GDB? [message #158315 is a reply to message #158272] Thu, 17 November 2005 16:19 Go to previous message
Eclipse UserFriend
Originally posted by: m.fortner.sbcglobal.net

This message sounds like the .cdtproject file was invalid XML. XML
files can only have one root node, and your .cdtproject file apparently
as more than one. This can happen if either you manually edit the file
and don't do it properly, or some piece of code does it.

Hope this helps,

Mark


� de Novaes Kucinskis wrote:
> Mikhail, thank you again for the answer.
>
>>> [Fatal Error] .cdtproject:1:1. Content is not allowed in prolog.
>>
>> I don't know what this message means. Try to create a new workspace.
>
>
> I created a new workspace, and this problem don't occurs anymore.
>
>> If "target sim" is the only command you need to start a session why do
>> you
>> need to configure connection or use gdb Server?
>
>
> I'm sorry I wasn't clear here. Now I know better my problem, and I'm
> going to post another message to explain it better.
>
> Thank you once more,
>
>
> Fabr�cio.
>
Previous Topic:Cannot set breakpoints
Next Topic:I'd like to use CDT in teaching at Tufts, but need help
Goto Forum:
  


Current Time: Mon Jun 09 09:42:39 EDT 2025

Powered by FUDForum. Page generated in 0.03542 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top