From: "Bouhaouel, Mohamed" <mohamed.bouhaouel@intel.com>
To: Tom Tromey <tom@tromey.com>,
"Bouhaouel, Mohamed via Gdb-patches" <gdb-patches@sourceware.org>
Subject: RE: [PING][PATCH v3 1/1] gdb, breakpoint: add a destructor to the watchpoint struct
Date: Tue, 19 Sep 2023 11:38:43 +0000 [thread overview]
Message-ID: <DM6PR11MB4457FBA04006C1C47DD9D1DDE4FAA@DM6PR11MB4457.namprd11.prod.outlook.com> (raw)
In-Reply-To: <87led79vol.fsf@tromey.com>
Hi Tom,
Thanks a lot for your review. This is my first accepted patch
in GDB. Can you please push it for me? I don't have any write access.
I plan to upstream more patches in the future and would like to have
"write after approval" access. I guess I need to apply for access
in this form https://sourceware.org/cgi-bin/pdw/ps_form.cgi, after
my first patch is pushed!
Thanks again,
Mohamed
> -----Original Message-----
> From: Tom Tromey <tom@tromey.com>
> Sent: Friday, September 15, 2023 7:46 PM
> To: Bouhaouel, Mohamed via Gdb-patches <gdb-patches@sourceware.org>
> Cc: Bouhaouel, Mohamed <mohamed.bouhaouel@intel.com>; tom@tromey.com
> Subject: Re: [PING][PATCH v3 1/1] gdb, breakpoint: add a destructor to the
> watchpoint struct
>
> >>>>> Bouhaouel, Mohamed via Gdb-patches <gdb-patches@sourceware.org>
> writes:
>
> > I kindly request that you review this patch.
>
> Thank you for the patch.
>
> >> +/* See breakpoint.h. */
> >> +
> >> +watchpoint::~watchpoint ()
> >> +{
> >> + /* Make sure to unlink the destroyed watchpoint from the related
> >> + breakpoint ring. */
> >> +
> >> + breakpoint *bpt = this;
> >> + while (bpt->related_breakpoint != this)
> >> + bpt = bpt->related_breakpoint;
> >> +
> >> + bpt->related_breakpoint = this->related_breakpoint;
>
> It took me a while to understand this, but I guess it is just the same
> as the code in delete_breakpoint.
>
> I think this is ok.
> Approved-By: Tom Tromey <tom@tromey.com>
>
> Tom
Intel Deutschland GmbH
Registered Address: Am Campeon 10, 85579 Neubiberg, Germany
Tel: +49 89 99 8853-0, www.intel.de <http://www.intel.de>
Managing Directors: Christin Eisenschmid, Sharon Heck, Tiffany Doon Silva
Chairperson of the Supervisory Board: Nicole Lau
Registered Office: Munich
Commercial Register: Amtsgericht Muenchen HRB 186928
next prev parent reply other threads:[~2023-09-19 11:38 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-06-30 8:10 [PATCH " Mohamed Bouhaouel
2023-09-15 7:53 ` [PING][PATCH " Bouhaouel, Mohamed
2023-09-15 17:46 ` Tom Tromey
2023-09-19 11:38 ` Bouhaouel, Mohamed [this message]
2023-09-19 12:57 ` Tom Tromey
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=DM6PR11MB4457FBA04006C1C47DD9D1DDE4FAA@DM6PR11MB4457.namprd11.prod.outlook.com \
--to=mohamed.bouhaouel@intel.com \
--cc=gdb-patches@sourceware.org \
--cc=tom@tromey.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).