Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Nat! <nat@mulle-kybernetik.com>
To: gdb@sourceware.org
Subject: commands can only be added interactively to a watchpoint
Date: Wed, 25 Oct 2023 00:01:55 +0200	[thread overview]
Message-ID: <12201efb-e4dc-445f-8b89-f4e354876d1a@mulle-kybernetik.com> (raw)

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!


             reply	other threads:[~2023-10-24 22:02 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-10-24 22:01 Nat! [this message]
2023-10-24 22:41 ` Andreas Schwab

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=12201efb-e4dc-445f-8b89-f4e354876d1a@mulle-kybernetik.com \
    --to=nat@mulle-kybernetik.com \
    --cc=gdb@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox