Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Etienne Buira via Gdb <gdb@sourceware.org>
To: gdb@sourceware.org
Subject: Feature suggestion: location conditioned watchpoint
Date: Sat, 19 Oct 2024 09:35:40 +0200	[thread overview]
Message-ID: <ZxNhTDbpOE4VFdWr@Z926fQmE5jqhFMgp6> (raw)

Hi all,

I tried to debug memory corruption issue with gdb, using watchpoints,
and as the bug appeared rarely, i wish i could state "break on this
memloc write, if it is not this known good location".

I searched the docs for conditions and convenience variables, but could
not find anything useful.

Ideally, i would like to issue a command like:
condition WPNUM !(location path/to/myfile.c:42)

If there is already a way to do this, i'd like to hear about it, or
please consider it as feature suggestion.

Unfortunately, the bug did not show up when ran under gdb supervision,
even after enabling memory space randomisation, but that's another
topic.

Regards.


             reply	other threads:[~2024-10-19  7:38 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-10-19  7:35 Etienne Buira via Gdb [this message]
2024-10-19 13:19 ` Martin Simmons
2024-10-24  8:57   ` Etienne Buira via Gdb

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=ZxNhTDbpOE4VFdWr@Z926fQmE5jqhFMgp6 \
    --to=gdb@sourceware.org \
    --cc=etienne.buira.lists@free.fr \
    /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