|
From: | Klaus Rudolph |
Subject: | Re: [Simulavr-devel] Can I display the simulated controller time in gdb? |
Date: | Mon, 13 Mar 2017 20:30:39 +0100 |
User-agent: | Mozilla/5.0 (X11; Linux i686; rv:45.0) Gecko/20100101 Thunderbird/45.6.0 |
Is it possible to display the accumulated target time in GDB?No. Problem is, that there is no gdb protocol element to transfer a controller time to gdb.
It is quite easy to write the simulation time into a memory location which is not used in the program. This kind of pseudo register can be monitored/traced via gdb as every other memory.
That can be done by writing a pseudo "hardware" device which works on every "Step()".
The time is already available and clock speed can be given by command line.
So if it comes to tricky timing issues in AVR, the only way to debug are trace files and ex poste analysis from simulavr, right?
No, you can also set breakpoints on cycle steps. And if you write the time from simulavr to a pseudo avr memory location you can break also from gdb.
Regards Klaus
[Prev in Thread] | Current Thread | [Next in Thread] |