Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Tracepoint problems
Tracepoint problems [message #778595] Fri, 13 January 2012 13:23 Go to next message
zhivko z is currently offline zhivko zFriend
Messages: 4
Registered: January 2012
Junior Member
Hello everyone.

I'm trying to use Trace point in Eclipse CDT for remote debugging with "GDB (DSF) Automatic Remote Debugging Launcher". I followed the instruction in this manual at chapter "How can I trace my application using C/C++ Tracepoints?":

hxxp://wiki.eclipse.org/CDT/User/FAQ#I.27ve_been_asked_for_.27gdb_traces.27.2C_where_can_I_find_them.3F

The problem is that all buttons in main "Trace Control" tab are disabled.
I saw that in the end of manual write something like this "once all tracepoints are created, you must manually enable tracing" what does this mean. I search in another forums and find many things the most popular version is this.

" Eclipse provides plugins a way to trace by having an .options file,
this mechanism is use to print out the mi exchange between gdb
and the plugin. To enable this in the debug launch one must enable
"tracing" and set for the "org.eclipse.debug.mi.core/debug" to true. "

And the .option file should look like this.

"* .options: Set debug to true.
* src/.../core/MIPlugin.java (debugLog): Break the log line in small chuncks of 100.
* src/.../MISession.java (postCommand): Print the gdb/mi command.
* src/.../RxThread.java (run): Print gdb/mi responses."

The problem is that I don't have these three file in my eclipse directory and sub directory.
Should I install some plugin or I miss some important step.

Another thing is that in my "Signals" tab I have another error which say:
"No model provider for update IChildrenCountUpdate:org.eclipse.cdt.dsf.gdb.launching.GdbLaunch@146fb4d"

I think that these two errors have something in comment.


Thank in advance.
Regards Zhivko,


[Updated on: Fri, 13 January 2012 13:33]

Report message to a moderator

Re: Tracepoint problems [message #778732 is a reply to message #778595] Fri, 13 January 2012 18:13 Go to previous messageGo to next message
Marc Khouzam is currently offline Marc KhouzamFriend
Messages: 357
Registered: July 2009
Senior Member
Hi,

- are you running GDB 7.2 or 7.3?
- are you running on Linux?
- have you launched your debug session and selected an entry in the debug view?

To start tracing, you need to press the little green 'play' button on the Trace Control view. But I gather it is disabled for you. See above questions for potential reasons why.

> " Eclipse provides plugins a way to trace by having an .options file,..."

This is not the same tracing at all. It is talking about the Tracing launch tab for an "Eclipse Application" launch.

Finally, the Signals view is not yet supported when you use Tracepoint.

Marc

Re: Tracepoint problems [message #780098 is a reply to message #778595] Tue, 17 January 2012 07:15 Go to previous messageGo to next message
zhivko z is currently offline zhivko zFriend
Messages: 4
Registered: January 2012
Junior Member
Thanks Mark,

But it still doesn't work. When I try to use the following commands in Eclipse gdb console. I have this error.

tfind start
Target does not support this command.
tstart
Target does not support this command.
tstatus
Trace can not be run on this target.

tstart -- Start trace data collection
tfind start -- Select the first trace frame in the trace buffer
tstatus -- Display the status of the current trace data collection

Does it mean that my target (board) doesn't support trace point?
Re: Tracepoint problems [message #780275 is a reply to message #780098] Tue, 17 January 2012 14:19 Go to previous message
Marc Khouzam is currently offline Marc KhouzamFriend
Messages: 357
Registered: July 2009
Senior Member
Hi,

GDB Tracepoints work with gdbserver (part of the GDB release). If you use your own target agent, I would be very surprised if it worked.
Maybe you can use gdbserver on your target...

Marc
Previous Topic:Specifying Clean-only build specifications
Next Topic:Trouble compiling using Eclipse CDT with alternate toolchain
Goto Forum:
  


Current Time: Tue Apr 23 14:38:45 GMT 2024

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

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

Back to the top