Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Simon Marchi <simark@simark.ca>
To: Tom Tromey <tom@tromey.com>
Cc: gdb-patches@sourceware.org
Subject: Re: [PATCH 1/4] Change evpy_emit_event to accept a gdbpy_opt_borrowed_ref
Date: Mon, 14 Sep 2026 15:58:19 -0400	[thread overview]
Message-ID: <d91e51fe-72f1-43e7-b0de-6f9c74cb985f@simark.ca> (raw)
In-Reply-To: <87y0d36a5u.fsf@tromey.com>

On 9/14/26 12:59 PM, Tom Tromey wrote:
>>>>>> "Simon" == Simon Marchi <simark@simark.ca> writes:
> 
> Simon> Unrelated, but those two if could be collapsed into one with &&.
> 
> Yeah, I normally don't care about this kind of thing.
> 
> Simon> Also unrelated: I would change evregpy_no_listeners_p to
> Simon> evregpy_has_listeners_p, because double-negative is confusing.
> 
> Simon> I can make following patches to change those.
> 
> Alright.
> 
> Simon> Copying a review comment from Claude that seems important:
> [...]
> 
> Yeah.  I think there's a longstanding GCC bug about not warning about
> this.
> 
> Anyway I fixed it.
> 
> Simon> Otherwise, it also noted:
> 
> Simon>   - gdb/python/py-breakpoint.c:1309 and :1340: both calls now fit on one line.
> 
> I don't know which lines these are but the obvious-to-me choices end up
> at 81/82 characters and so can't be changed.

Sorry, I shouldn't have copy pasted this comment without checking it
first, my bad.

I did trust it blindly because I did see some spots in the series where
some lines could be unwrapped, so I assumed it was talking about this
spots.  For instance, the return statement in this function, although
it's in patch 3, not patch 1:

static gdbpy_ref<>
create_continue_event_object (ptid_t ptid)
{
  gdbpy_ref<> py_thr = py_get_event_thread (ptid);

  if (py_thr == nullptr)
    return nullptr;

  return create_thread_event_object (&continue_event_object_type,
				     py_thr);
}

Anyway, I'll be more careful in the future.

Simon

  reply	other threads:[~2026-09-14 19:58 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-08-08 21:47 [PATCH 0/4] Use gdbpy_borrowed_ref more + cast removal Tom Tromey
2026-08-08 21:47 ` [PATCH 1/4] Change evpy_emit_event to accept a gdbpy_opt_borrowed_ref Tom Tromey
2026-09-14 15:42   ` Simon Marchi
2026-09-14 16:59     ` Tom Tromey
2026-09-14 19:58       ` Simon Marchi [this message]
2026-09-14 17:42     ` Tom Tromey
2026-09-14 18:27       ` Tom Tromey
2026-08-08 21:47 ` [PATCH 2/4] Change evpy_add_attribute to accept gdbpy_borrowed_ref Tom Tromey
2026-08-08 21:47 ` [PATCH 3/4] Use gdbpy_borrowed_ref when creating events Tom Tromey
2026-09-14 15:46   ` Simon Marchi
2026-08-08 21:47 ` [PATCH 4/4] Remove unneeded casts to PyObject* Tom Tromey
2026-09-14 15:48 ` [PATCH 0/4] Use gdbpy_borrowed_ref more + cast removal 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=d91e51fe-72f1-43e7-b0de-6f9c74cb985f@simark.ca \
    --to=simark@simark.ca \
    --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