* commands can only be added interactively to a watchpoint
@ 2023-10-24 22:01 Nat!
2023-10-24 22:41 ` Andreas Schwab
0 siblings, 1 reply; 2+ messages in thread
From: Nat! @ 2023-10-24 22:01 UTC (permalink / raw)
To: gdb
Hi
I think this is the same problem as
https://sourceware.org/bugzilla/show_bug.cgi?id=10079, but this bug is
so old, it's probably forgotten.
I would like to run repeated tests through valgrind, where I am setting
two hardware watchpoints and log the changes.
So I have tried this commands.txt:
```
target remote | vgdb
b main
c
n
n
p fifo
watch -l (int64_t [2]) *&fifo
watch -l (int64_t [16]) *&*fifo->storage
set logging enabled on
commands 2
continue
end
commands 3
continue
end
c
monitor v.kill
```
That could work, if 'commands' would work in script mode, which it
doesn't. So each run I have to do some tedious typing. If only I could
do something like this...
```
commands 2 --script "continue\nend"
```
Ciao
Nat!
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-10-24 22:42 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-10-24 22:01 commands can only be added interactively to a watchpoint Nat!
2023-10-24 22:41 ` Andreas Schwab
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox