public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
From: Kevin Buettner <kevinb@redhat.com>
To: Ciaran Woodward <ciaranwoodward@xmos.com>
Cc: gdb-patches@sourceware.org
Subject: Re: [PING 5][PATCH] gdb: Fix missing first breakpoint in schedule-multiple mode
Date: Fri, 17 May 2024 16:24:27 -0700	[thread overview]
Message-ID: <20240517162427.3234278b@f40-zbm-amd> (raw)
In-Reply-To: <DU0PR09MB5569C4DDAB990CBBBD087AE4B9EE2@DU0PR09MB5569.eurprd09.prod.outlook.com>

Hi Ciaran,

On Fri, 17 May 2024 15:18:13 +0000
Ciaran Woodward <ciaranwoodward@xmos.com> wrote:

> Ping again - this (or something similar) is required for working with multiple inferiors on a remote if
> you connect to the remote while the inferiors are already running.
> 
> There is a reproduction description here: https://sourceware.org/pipermail/gdb-patches/2022-July/191092.html
> 
> I was reminded of this from some discussion in IRC
> 
> (I include the original message below since it is such an old patch)
> 
> Would it be helpful for me to write a test for this? I have a reproduction example in the linked archive,
> but it requires running gdbserver twice and I'm not at all familiar with the test system. Is it feasible?

I applied (via "git am") your patch from 2022.  While applying it, git
complained about the following whitespace problems:

Applying: gdb: Fix missing first breakpoint in schedule-multiple mode
/mesquite2/sourceware-git/binutils-gdb/.git/worktrees/worktree-review/rebase-apply/patch:15: indent with spaces.
        inferior->control.stop_soon = NO_STOP_QUIETLY;
/mesquite2/sourceware-git/binutils-gdb/.git/worktrees/worktree-review/rebase-apply/patch:30: indent with spaces.
         the current thread.  */
warning: 2 lines add whitespace errors.

But, those nits aside, I was able to do a build with your patch
and used your reproducer to verify that the problem still exists in
current GDB and also that your patch fixes that problem.

Using the information you've provided, I think it should be possible
to write a gdb test.  It would definitely be appreciated!

Skimming your patch, it looks reasonable to me, but I haven't really
studied it yet.  I'll give it a closer look and do some more testing
as well...

Kevin


      reply	other threads:[~2024-05-17 23:24 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-07-25 16:22 [PATCH] " Ciaran Woodward
2022-07-25 17:02 ` Simon Marchi
2022-07-26 13:16   ` Ciaran Woodward
2022-08-09 15:00 ` [PING] " Ciaran Woodward
2022-08-23 16:30 ` [PING 2][PATCH] " Ciaran Woodward
2022-08-31 10:11 ` [PING 3][PATCH] " Ciaran Woodward
2022-09-22 13:22 ` [PING 4][PATCH] " Ciaran Woodward
2024-05-17 15:18 ` [PING 5][PATCH] " Ciaran Woodward
2024-05-17 23:24   ` Kevin Buettner [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=20240517162427.3234278b@f40-zbm-amd \
    --to=kevinb@redhat.com \
    --cc=ciaranwoodward@xmos.com \
    --cc=gdb-patches@sourceware.org \
    /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).