This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Real Time debugging


> Has any of you a Idea on how to perform Relat Time debugging . By Relat Time
> debugging I mean being able to watch the memory or the state of the
> différent process without stopping the execution


When you say "without stopping the execution", first question is, is it ok
to take a breakpoint, read the value, and then continue execution?  Or do
you really need to be able to read the memory without any intrusion?

If you can't afford the overhead of a breakpoint, then you need to have
some sort of hardware support in order to achieve this, like a traceport,
and some hardware to collect the trace information.


If taking a breakpoint is acceptable GDB has the concept of tracepoints,
which might be useful.  I'm not sure if the gdb-stub in redboot/ecos
supports tracepoints though.  If it doesn't, it probably wouldn't be
terribly difficult to add support for some simpler tasks, like reading
memory.

If you are looking for something really simple, then you can setup a timer
that fires off however often you want to inspect the variables, inspect
them, put the results in a buffer somewhere, and return.

Well I hope that helps.  :)

-john


--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]