From: Simon Marchi <simark@simark.ca>
To: Nagmat Nazar <nagmat@gmail.com>,
"gdb@sourceware.org" <gdb@sourceware.org>
Subject: Re: How can I implement new breakpoint commands
Date: Sun, 15 Nov 2020 13:05:44 -0500 [thread overview]
Message-ID: <6d10944a-137d-3bac-6212-cd126f9128ff@simark.ca> (raw)
In-Reply-To: <CAJnvuZ_OeG3J+KJ4Nq67cg7DoO9gNQDQXv6-QDSycvKi_ammrg@mail.gmail.com>
On 2020-11-14 10:25 p.m., Nagmat Nazar wrote:
> Dear Simon Marchi,
>
> Yeah I can handle that using breakpoint conditions for now, but I would like to improve it for my research. So, How can I add new commands on GDB? In which file shall I start coding?
>
> Kind regards,
> Nagmat
Hi Nagmat,
Please keep the list in CC when participating in a discussion on a
mailing list.
The commands are added in the _initialize_* functions in various files.
For example, here's where the "break" command is created:
https://sourceware.org/git/?p=binutils-gdb.git;a=blob;f=gdb/breakpoint.c;h=23278320d9d465943bf94ec2c35a5a1438c45f2a;hb=b74dbc2093191b10f4963f43ee570b54c9593404#l15802
Simon
prev parent reply other threads:[~2020-11-15 18:05 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
[not found] ` <CAJnvuZ_OeG3J+KJ4Nq67cg7DoO9gNQDQXv6-QDSycvKi_ammrg@mail.gmail.com>
2020-11-15 18:05 ` Simon Marchi [this message]
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=6d10944a-137d-3bac-6212-cd126f9128ff@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).