From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by sourceware.org (Postfix) with ESMTP id 67E5D3858D21 for ; Fri, 25 Oct 2024 16:15:24 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 67E5D3858D21 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 67E5D3858D21 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=170.10.129.124 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1729872930; cv=none; b=mxvyR9gUjAYeLDn+gv+1PY4WbAO4PXDbZ5aebSaECt85kVsIGJYugftcnVuO63JVAfzl13sN0uoENjNG6hSqjAqH0bav+HdKsf7kHXr4bSNcnHDvoIO1kpYmr0hSgAnTNgubh6RJQuU9tWloF2rma/5HrPsYme9YGnTO7lSScXk= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1729872930; c=relaxed/simple; bh=WejG7EACpN35QkhOMcAEjWcr/ZZ4mcbnJ/Ngtbg5Fk0=; h=DKIM-Signature:Message-ID:Date:MIME-Version:Subject:To:From; b=Euf5PdhzVTEQ0wxsC+C4k0BKtsXY/GpuDhp73UAQCDTnnXEjsswaYMlNJjPlR5Vgb75/c/ieHLUZWDoiDySn9igxZvC4cJcjMS5/kp6cHOJJz4OrehodLUo9uLjFJb9tagfubK3euYkuSNYmlw8DE1qhcJHmPenKcjhDtNAJ1ic= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1729872924; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=xC3Lh6+Is36/b8gOr1c3vUBkRczFtOPAOZXyMjXkMDY=; b=HrORUJ3ol7oUQ66kUfBaN943NrqbPvgjMG8dc8qiRp95QKJMwzmDmiFvS+85DENuAFTb/N EGjTgWr9q/Jr41ywQQXEZcEAUIXZYjhOTf9Mhy1Lv8bs5hkoXHUxGGCuVIoNdo2bwG+wu6 pqsaiULtfPDpaecS4OLPsfVjXVJaCEg= Received: from mail-pg1-f200.google.com (mail-pg1-f200.google.com [209.85.215.200]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-385-gFtrj0x0Ok6OYddvSA7mTg-1; Fri, 25 Oct 2024 12:15:22 -0400 X-MC-Unique: gFtrj0x0Ok6OYddvSA7mTg-1 Received: by mail-pg1-f200.google.com with SMTP id 41be03b00d2f7-6c8f99fef10so2143048a12.3 for ; Fri, 25 Oct 2024 09:15:22 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729872922; x=1730477722; h=content-transfer-encoding:in-reply-to:from:content-language :references:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=xC3Lh6+Is36/b8gOr1c3vUBkRczFtOPAOZXyMjXkMDY=; b=qnPa59rm1wMUtnvqOg6YZGLJTiGLNc3JmYWkAOA+FxLaeiRERX4k6Y5YR/P8dBdIE0 1VfaB2rtlmNYpGWQVs0XD3HANsbx7KGtU4wTALArv1Uo/jWr8YpcseWSbjZEmWhxvDLs E2FY0mHamf1X0bCc7ulHb75m7MxOVq7OzHRzR1G7cxkgI+OixFnsC+567eiEJUFTBOdL Eijz+D/ZdIH+3l6OsXQayClknt2q6MgdvnAzUKxxopaUjLge+cq0jC4x8oYM3i9ViJ1D KkWMiA0jf7vgggtNhGygt8/hxJfk3wKaxvE/ToPXkhiukqURs2rMy7Rdo0HHxvd+rvln SuZQ== X-Forwarded-Encrypted: i=1; AJvYcCWNLWvVnavzZUtt09pVT89q5weoyQXNWozpc5lq/lVdlREoHGuHDDKZtLyM0SA8Dea2X9tet0rMiMnMug==@sourceware.org X-Gm-Message-State: AOJu0Yz3w/hPdI/TMia8XhLDqn+12lN8K2ZmPWiNux1FnpFpUAuqZGMh N3vBRvGSunsCCt75gu6Zb7uoe9YVVoie4eb/dt/615FoikFinAof/HB3k7a2yRkESvaGQcLq7Md ic+RxF8XZqhJPIZsxSxOLGLo5zLF4pE1KWxk3XrnsuuazQBip9g1GSoAjMyI= X-Received: by 2002:a17:902:db0e:b0:20c:968e:4dcd with SMTP id d9443c01a7336-20fa9deacc4mr154316405ad.7.1729872921794; Fri, 25 Oct 2024 09:15:21 -0700 (PDT) X-Google-Smtp-Source: AGHT+IG0QI4O6iCcbmPuwGFuES+/YBxeN36HITM28Hiizxe0AjTYzUrR6mGHHaetks2kxoLCXjYh1Q== X-Received: by 2002:a17:902:db0e:b0:20c:968e:4dcd with SMTP id d9443c01a7336-20fa9deacc4mr154316055ad.7.1729872921496; Fri, 25 Oct 2024 09:15:21 -0700 (PDT) Received: from [150.1.200.127] (174-21-139-113.tukw.qwest.net. [174.21.139.113]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-210bc0133b7sm11013255ad.123.2024.10.25.09.15.21 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 25 Oct 2024 09:15:21 -0700 (PDT) Message-ID: <0eccde19-3bbf-4bfd-a335-2d5557554b17@redhat.com> Date: Fri, 25 Oct 2024 09:15:20 -0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 13/16] gdb: allow 'set args' and run commands to contain newlines To: Andrew Burgess , gdb-patches@sourceware.org References: <4b226e07edabf10a704aef70fd9ef4a3f2a5bd34.1704809585.git.aburgess@redhat.com> <34ef5438-8644-44cd-8537-5068e0e5e434@redhat.com> <87ttd3vuqm.fsf@redhat.com> From: Keith Seitz In-Reply-To: <87ttd3vuqm.fsf@redhat.com> X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Language: en-US Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-5.9 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On 10/23/24 6:01 AM, Andrew Burgess wrote: > Keith Seitz writes: >> I'm noticing some extra newlines output with this new command if you >> use ^d to interrupt entering input: >> >> (gdb) set args " >> > quit >> (gdb) show args >> >> Argument list to give program being debugged when it is started is "". >> (gdb) >> >> Notice the extra newline output after the last command. > > I know it's been a while, but can you give any more details about the > environment in which you saw this extra newline bug? > > I rebased this series onto a recent master and it doesn't reproduce for > me. I obviously haven't tried rebasing anything, but with the full original series applied, I can easily reproduce this: Compare: $ ./gdb -nx -q (gdb) show args Argument list to give program being debugged when it is started is "". (gdb) and $ ./gdb -nx -q (gdb) set args " >^Dquit (gdb) show args Argument list to give program being debugged when it is started is "". (gdb) set args foo (gdb) show args Argument list to give program being debugged when it is started is "foo". (gdb) [note all the newlines] I don't think there is anything "special" about my setup, I'm pretty much running vanilla Fedora 40. Keith