From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm1-f46.google.com (mail-wm1-f46.google.com [209.85.128.46]) by sourceware.org (Postfix) with ESMTPS id 1BF64385C6D4 for ; Wed, 23 Aug 2023 12:14:24 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 1BF64385C6D4 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=palves.net Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-wm1-f46.google.com with SMTP id 5b1f17b1804b1-3fbd33a57b6so51652195e9.2 for ; Wed, 23 Aug 2023 05:14:24 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692792862; x=1693397662; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=CyOgO7tfSHUjveeeMBML91gk3g3uwtdMmA1qNIpuYb0=; b=UGg5mzsoS1x8m+FZNYtTYf+TUx3tKB3qkk+N06USEa2gc1iBEJuRO2dX2s++KRccwv MY/LKrO6AU023ZZYrXl54fx9lRtoe/yKQSuOtTotj2wZXgGg03E9if/yXdgCd/p/u0b0 4UGiss+lDXkJEjDN18HazKGZLOhgb2lXsjVBRto7AY7tmW2S29sTivt0AJ+peGnN4XYF k9tB/0qPvVPdSnbMwJs28h0Pe0kTebTjbRKFrFPLMam22pfuUGUepsGL18FZNapmAwiO uyK4BSWgiHU4hquCb5gRFxCcGen3HF5BpbxnBN4HW0bhLiHHr7KG+cNdIqo9boGb23kG ZLdg== X-Gm-Message-State: AOJu0YzBP7WnZir0UqJx87QdheLOpvz6jBeOayX/bZKclUb+LXyuwRh4 FpK2SnhHMkHU9mNfj+/NTpg= X-Google-Smtp-Source: AGHT+IGo1o/wW4SGHB/FdpBYRhYlh+7jAUUUN1O0Khw2Sa3Cldn8T8TmbjW06C300T9CLA04tWEE/w== X-Received: by 2002:a7b:c3d0:0:b0:3fe:ad3:b066 with SMTP id t16-20020a7bc3d0000000b003fe0ad3b066mr9967511wmj.41.1692792861348; Wed, 23 Aug 2023 05:14:21 -0700 (PDT) Received: from ?IPV6:2001:8a0:f90f:8600:ac5d:93b3:ae15:acb1? ([2001:8a0:f90f:8600:ac5d:93b3:ae15:acb1]) by smtp.gmail.com with ESMTPSA id l26-20020a7bc45a000000b003ff013a4fd9sm2078140wmi.7.2023.08.23.05.14.20 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 23 Aug 2023 05:14:20 -0700 (PDT) Message-ID: Date: Wed, 23 Aug 2023 13:14:19 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Subject: Re: set width: how to restore to auto Content-Language: en-US To: Aleksey Midenkov , gdb@sourceware.org References: From: Pedro Alves In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-5.1 required=5.0 tests=BAYES_00,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,KAM_DMARC_STATUS,NICE_REPLY_A,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS,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 23/08/23 10:53, Aleksey Midenkov via Gdb wrote: > To avoid line wrapping in backtrace we use: > > set width 0 > > How to restore it to auto without resizing the terminal? I guess having "set width/height auto" would make sense. > Why after resizing the terminal defined width is lost? Indeed, "auto" could fix this, by making anything non-auto stick. I suggest filing a bug report about this. > > Looks like there is not enough control over this parameter to implement two > backtrace macros with and without line wrapping. > If it's just the one command you want to wrap, you can do: (gdb) alias bt0 = with width 0 -- backtrace (gdb) bt0 [ARG...] ...