From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca (simark.ca [158.69.221.121]) by sourceware.org (Postfix) with ESMTPS id 0DF36385DC23 for ; Wed, 15 Apr 2020 15:04:58 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 0DF36385DC23 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=simark.ca Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=simark@simark.ca Received: from [10.0.0.11] (unknown [192.222.164.54]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by simark.ca (Postfix) with ESMTPSA id 4FED91E5F9; Wed, 15 Apr 2020 11:04:57 -0400 (EDT) Subject: Re: [PATCH 00/28] Decouple inferior_ptid/inferior_thread(); dup ptids in thread list (PR/25412) To: Pedro Alves , Hannes Domani , Gdb-patches References: <20200414175434.8047-1-palves@redhat.com> <352155373.1019768.1586890003838@mail.yahoo.com> From: Simon Marchi Message-ID: Date: Wed, 15 Apr 2020 11:04:56 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: fr Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-11.5 required=5.0 tests=BAYES_00, KAM_DMARC_STATUS, SPF_HELO_PASS, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Apr 2020 15:04:59 -0000 On 2020-04-14 3:24 p.m., Pedro Alves via Gdb-patches wrote: > On 4/14/20 7:46 PM, Hannes Domani via Gdb-patches wrote: >> Am Dienstag, 14. April 2020, 19:54:45 MESZ hat Pedro Alves via Gdb-patches Folgendes geschrieben: >> >>> In PR/25412, Simon noticed that after the multi-target series, the >>> tid-reuse.exp testcase manages to create a duplicate thread in the >>> thread list.  Or rather, two threads with the same PTID. >> >> I'm sorry to hijack this thread, but I just wanted to apply this patch series >> for testing, but I'm already stuck on the first step. > > Thanks much for testing! > >> How do you get patches from these mails that I then can use with "git am" >> (or some other git command)? >> >> For single patches I would just use the raw email, that seems to work fine, >> but I thought there probably exists a simpler way for larger series that I >> don't know about. > > In Thunderbird, I select all the emails, right click, and then select > "save selected messages" -> "as Mbox file". Them I use git am. > I'm not sure whether that's native functionality, or whether it > comes from the "ImportExportTools" add-on. I don't see it in my Thunderbird, so it must be the add-on. I do almost the same, but using some built-in features: select the messages and hit "ctrl-s" to save the messages in some directory. In this case, they are saved as one message per file. I then do `git am path/to/that/directory/*`. For a single patch, I sometimes display the source (ctrl-u) and copy it all. I then do `git am`, which makes it read on stdin. Paste, then ctrl-d to send EOF. The caveat here is that if the patch contains some weird ascii character (like the "horizontal tab" characters that are sometimes in the GDB source), it looks like the paste messes it up and the patch doesn't apply. Saving the file as described previously works fine. This works well when the patches were send with git-send-email, and is almost always a pain otherwise. > > I have > > [format] > useAutoBase = true > > in my .gitconfig, which is what puts that > > base-commit: dd1cab0694592099854e66467319253954c93764 > > line at the bottom of the cover letter. That's the commit > on top of which the series applies. This means you also save the cover letter in your mbox file? Simon