* 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
[-- Attachment #1: Type: text/plain, Size: 750 bytes --]
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
* Re: commands can only be added interactively to a watchpoint
2023-10-24 22:01 commands can only be added interactively to a watchpoint Nat!
@ 2023-10-24 22:41 ` Andreas Schwab
0 siblings, 0 replies; 2+ messages in thread
From: Andreas Schwab @ 2023-10-24 22:41 UTC (permalink / raw)
To: Nat!; +Cc: gdb
On Okt 25 2023, Nat! wrote:
> That could work, if 'commands' would work in script mode, which it
> doesn't.
In which way does it not work?
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1
"And now for something completely different."
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-10-24 22:41 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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).