From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr1-f44.google.com (mail-wr1-f44.google.com [209.85.221.44]) by sourceware.org (Postfix) with ESMTPS id 7F2D73858C78 for ; Fri, 29 Sep 2023 10:25:19 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 7F2D73858C78 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-wr1-f44.google.com with SMTP id ffacd0b85a97d-32320381a07so9558788f8f.0 for ; Fri, 29 Sep 2023 03:25:19 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695983118; x=1696587918; h=content-transfer-encoding:in-reply-to:from:references:cc: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=Z2RkrF3Qf8KSnD5/NNDPiIjjoFgAVkVa6QuOquX0We4=; b=KRkKbBa7QeuQCIOEqlBiswAqWoxNlxgfEQOBHF2p+3dC8EenUKZErTTUanjVDmYW4k T5gF2qskRlAmCdLIsqFGk85vTQ6y753qY0ty/AtPNOuvqVDAmdh6ggNHG1yntHCNNLBS 9qJTGE+FoKtC/WUoNgk5Cib2m9o3CnrV0HiNpLPSC/5J8Wr+a3FcZEf+JakHkMD6yvOe Pb/oPvGCHKvGmBgzaJEzg+Bvcx0nQKVjgxgbrfE68uT471ZkYWLqhJU9Zpovvyt/aXp9 1ha5wCfJRegdwIVGp1VAPi7TIYtboprXiWT/IWXffkrqYvELKS8S99Ft8x1nXsNebo2q hkoA== X-Gm-Message-State: AOJu0YyKeZfIQ0OHpG57cJaa0xi0rkropSgxhEXulPVSRQjDCSTV2Wjx rLlNLhaNNMWLjD51DfULXMQdQlmcpwZWlg== X-Google-Smtp-Source: AGHT+IE9sszCMOwiO+sTtyrdf/m62aQcIUJhze+wYHPqZlEkoXpzjQiWCgnaE7gVr47qmQheCamo7Q== X-Received: by 2002:adf:fd47:0:b0:31f:fa38:425f with SMTP id h7-20020adffd47000000b0031ffa38425fmr4138243wrs.9.1695983118080; Fri, 29 Sep 2023 03:25:18 -0700 (PDT) Received: from ?IPV6:2001:8a0:f939:d200:bc52:8881:959:d6ef? ([2001:8a0:f939:d200:bc52:8881:959:d6ef]) by smtp.gmail.com with ESMTPSA id o11-20020a5d4a8b000000b0031ffb51f6f9sm21268477wrq.30.2023.09.29.03.25.17 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 29 Sep 2023 03:25:17 -0700 (PDT) Message-ID: <8777dc8f-3411-7d13-ab9e-46e75f2602d2@palves.net> Date: Fri, 29 Sep 2023 11:25:15 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.15.1 Subject: Re: GDB BoF notes - GNU Cauldron 2023 Content-Language: en-US To: Tom Tromey Cc: gdb@sourceware.org References: <1e26c71e-e242-de11-a687-46e05586e608@palves.net> <87zg1610zk.fsf@tromey.com> From: Pedro Alves In-Reply-To: <87zg1610zk.fsf@tromey.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-5.9 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 2023-09-28 21:44, Tom Tromey wrote: > Some other defaults to consider: > > set print object on +1. I've wondered before what was the reason for not making this the default. Maybe because it requires reading the rtti/vtable, and that can go wrong, and it was thought that when it fails it's confusing? Dunno. Things may be better nowadays in the bad scenarios. At least you can do "p -o -- var" nowadays, but I guess most people don't know about that. > set breakpoint pending on +1000. If you get a pending breakpoint due to a typo, you can always delete the just-created breakpoint... > set print pretty on > > The last one is iffy I guess, maybe people like the compact output. The > first two I think I've had to tell many people about over the years. Personally I prefer the compact output most of the times, and only occasionally do "print -pretty" or "with print pretty".