From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from sonic306-20.consmr.mail.ir2.yahoo.com (sonic306-20.consmr.mail.ir2.yahoo.com [77.238.176.206]) by sourceware.org (Postfix) with ESMTPS id 97672385DC00 for ; Mon, 8 Jun 2020 14:59:19 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 97672385DC00 X-YMail-OSG: rlMnCkUVM1kDF8wsRY5Xa7gWwo8vlyi9IbNotMEpQ33JC57wUdAlPIRAtkFhS_t nG2fM4Cl6JtBwyF5IL7gzQqNGr1Ea2PeUxF2fD17h2xR8MD1OF_LXJhBnzUzM7sKvHCYBjjRNmsw fGQlIuhXpM6tk8JtQrhrZoLPGBFbNNz_FHMd.wXCXgiDGF0dPA1xtA87GNdiaw24Zulrs59eYTjx eBEwgLJtoX3TxhB_f2ubofSU6TRqOdc3c38YKTYCpJ0fXSQuzhp5R.yKmWI16cj__lJ0df_xIbhe mRsggAskNmS80KpmGY_D9wpHluj6IL3MmenTMGC.ciQ9XJpLvB9LDoG_3y4m3_W4J.srrDEvu6UD EQrlScrf.69ilaYf9iTwPxW5m6UNjpOxbUwIzbRUCglAWsMm1v9.k_WM9IBrimFU2R6mNAGkG81_ I.t5GDMDNz.T71MKtiZQ0N_EZJlcH0ia63utezajW3iY0h2poydIqHE6hEtCyT_2jYtppdFHIzSp kkO27pAeGP.vuhTXeX1YSGx8wFngPxges2rfnKv4dZoC4ngFr8..g4SklkN7EwKQn6KeSsiIMWGu wo7cNAQHkhcAlFLHlFN2Y16mAWdAH4fBjfwsNfrDPEuxQ6OhsbJqwEmdZPsM__Eq9ItbSN.2FY_b KQlYhz2rShRRkO9XP2gaYn_Lb9zluSkwNqyZBy4vycGDq3ZegRq5iC_mGMLGdFS1vV5dIvWAB31W SutolFAF0PViJdfuAUZEqQ3ENj7CjwJnLN_q.R.97RGEeGWi8DgQss3lJR50MSTjAbzW5bmSO2pp PiApTrVnoQvtiWaoc82DPWp_Ti4LJ.RWKQ3Xw3fRVID3Jjwa2MIDHGHiNlZPZUTJc4c7J.7ENzi3 YZlv821aiWxPZwknzN_U4b2TeYmF3TKG1b536Hp2ulsyao6KdZCHdYp.Xm0pU26hUKvVmHZzNkoV rJzQQJkuPGEdU.Hpyz21xULCp1i66SfaVfwVKo4.Yt41b0q28HdaPyFZrdUk7t5sq9c5rrpeD01e dhItwIUHwjCpnVH2v3srYRHrTJUFBzDgz0Eoq.lECsXxdcMqBkdCVRu.rpyYBdSB1N_RzKtuuSkK R7ITjy4hrGR7RV2txstOOhg.Pu851jM0Z.Dw0_Q8kgPfWRzm.3HEPzSCCzAkHGlqzy49gK7ZI9Jm FXuvdovz1HSz7jWOeZiiaVBTKx0ZBedYYQMUUnB8PmOFDs2xsXlaHa3qxmKSMA4.ilZl.VVfiiCA LVEa3XbmdCL4wrd8X3IHtkUW.vQyaxxC0KR1gmk.cXnEN3x.swpbjrkw6vJ112oINNv_TpSJ2g8u tVLVzqSOdvstXvBDx2thML21Huv4eYmmII__f5A-- Received: from sonic.gate.mail.ne1.yahoo.com by sonic306.consmr.mail.ir2.yahoo.com with HTTP; Mon, 8 Jun 2020 14:59:18 +0000 Date: Mon, 8 Jun 2020 14:58:50 +0000 (UTC) From: Hannes Domani To: Gdb-patches Message-ID: <1606516834.1835332.1591628330375@mail.yahoo.com> In-Reply-To: <20200608144112.GA2737@embecosm.com> References: <509346577.1585683.1591617067795.ref@mail.yahoo.com> <509346577.1585683.1591617067795@mail.yahoo.com> <20200608144112.GA2737@embecosm.com> Subject: Re: [PING^2][PATCH][PR gdb/21690] Fix interruption of command history search MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Mailer: WebService/1.1.16072 YMailNorrin Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:76.0) Gecko/20100101 Firefox/76.0 X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00, BODY_8BITS, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_NONE, 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: Mon, 08 Jun 2020 14:59:21 -0000 Am Montag, 8. Juni 2020, 16:41:32 MESZ hat Andrew Burgess Folgendes geschrieben: > * Hannes Domani via Gdb-patches [2020-06-08 = 11:51:07 +0000]: > > > Ping. > > > > Am Freitag, 15. Mai 2020, 11:00:41 MESZ hat Hannes Domani via Gdb-patch= es Folgendes geschrieben: > > > > > Am Samstag, 25. April 2020, 19:17:34 MESZ hat Hannes Domani via Gdb-p= atches Folgendes geschrieben: > > > > > > Ping. > > > > > > > If you press Ctrl-C during an incremental search of the readline hi= story, the > > > > prompt is reset, but readline is still in the incremental search mo= de. > > > > > > > > The call of rl_callback_sigcleanup cleans up the internal readline = state, and > > > > disables the incremental search mode. > > I didn't look into the implementation of this, but something seems a > little odd, though I don't know if this is just my machine setup.... > > I start a GDB session, and do this: > >=C2=A0=C2=A0 (gdb) echo hello\n >=C2=A0=C2=A0 hello > > At this point I start a reverse search, so I type: > >=C2=A0=C2=A0 >=C2=A0=C2=A0 echo >=C2=A0=C2=A0 > > Now I'm left in this situation: > >=C2=A0=C2=A0 (gdb) echo hello\n >=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ^ >=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 '-- Prompt is here. > > So, whatever I was in the process of finding when I hit Ctrl+C is left > on my prompt line in an editable state. > > This is different from the behaviour I see in, for example, bash, > where when I Ctrl+C the reverse search is aborted and I'm dropped back > to an empty prompt. > > Which behaviour do you see? This is the behaviour I also see with this patch applied. > Which behaviour do you expect to see? I didn't compare with anything else, so my expectation was just that it shouldn't be in this weird state where the prompt is empty, but readline actually thinks it's still in the reverse search. Hannes