public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
From: Simon Marchi <simark@simark.ca>
To: Nagmat Nazar <nagmat@gmail.com>, gdb@sourceware.org
Subject: Re: How can I implement new breakpoint commands
Date: Fri, 13 Nov 2020 10:43:15 -0500	[thread overview]
Message-ID: <e8a034d6-301d-c37e-38e3-ea069a802de0@simark.ca> (raw)
In-Reply-To: <CAJnvuZ8rxhkuJOapKe0SifSfE+gQGGp1VG2+EKWVncH5s9nZUg@mail.gmail.com>

On 2020-11-12 4:36 a.m., Nagmat Nazar via Gdb wrote:
> I would like to add 3 more commands to GDB,  *set, unset, list PCB *commands
> and would like to break if I have the same value with the *program context
> register(special register implemented by me). *How can I implement these
> commands? Where can I start from?
> 
> Kind regards,
> Nagmat
> 

Hi Nagmat,

Maybe I don't understand your goal correctly, but it sounds like you could use breakpoints conditions?

Simon

  reply	other threads:[~2020-11-13 15:43 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-11-12  9:36 Nagmat Nazar
2020-11-13 15:43 ` Simon Marchi [this message]
     [not found]   ` <CAJnvuZ_OeG3J+KJ4Nq67cg7DoO9gNQDQXv6-QDSycvKi_ammrg@mail.gmail.com>
2020-11-15 18:05     ` Simon Marchi

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=e8a034d6-301d-c37e-38e3-ea069a802de0@simark.ca \
    --to=simark@simark.ca \
    --cc=gdb@sourceware.org \
    --cc=nagmat@gmail.com \
    /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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).