|
Home > Archive > Unix Programming > November 2006 > gdb - setting values
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
gdb - setting values
|
|
| Christian Christmann 2006-11-22, 1:17 pm |
| Hi,
is it possible to set values to registers during
the simulation of the code with GDB?
When I do a instruction stepwise simulation
with "stepi", I see that the register "cycles"
[info register cycles] increases. Can I reset it
at a special point of the program in GDB to 0?
Thank you.
Chris
| |
| Bjorn Reese 2006-11-23, 1:16 pm |
| Christian Christmann wrote:
> When I do a instruction stepwise simulation
> with "stepi", I see that the register "cycles"
> [info register cycles] increases. Can I reset it
> at a special point of the program in GDB to 0?
Unless there is something special about the "cycles" register, you can
set it with:
(gdb) set $cycles=0
and print it with:
(gdb) p $cycles
--
mail1dotstofanetdotdk
|
|
|
|
|