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 ESMTPS id A126B3858C2C for ; Tue, 7 Mar 2023 20:30:16 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org A126B3858C2C Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1678221015; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=E+oQrYhMbXT0LCawh08waE2CaJVdE2IkluN4CCHmfik=; b=XaOvDKnom98YTf5K92A73oeeewWg+rCP76OrqfyVPEFqo0WRkm43/ySEthMquxVMtdiT8d nvaEERyWe+C82lZtsCAwVfr/7NsPe1XIQerUufe2GzfRQ7LtP7tirKBipMe+ZgvByTIidG /geSX6gM5UXasIqGdrTKlxNKDSijXSo= Received: from mail-pl1-f197.google.com (mail-pl1-f197.google.com [209.85.214.197]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-669-41RyOkMHNIOtJD72ey2G1A-1; Tue, 07 Mar 2023 15:30:14 -0500 X-MC-Unique: 41RyOkMHNIOtJD72ey2G1A-1 Received: by mail-pl1-f197.google.com with SMTP id t24-20020a1709028c9800b0019eaa064a51so6152179plo.10 for ; Tue, 07 Mar 2023 12:30:14 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678221013; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=E+oQrYhMbXT0LCawh08waE2CaJVdE2IkluN4CCHmfik=; b=HCPBLcIVsAoK+IS7ImTNIKI4Adh4BHyP7RWe9FN8I4uYmE/IlRwAlpfKKoKayf4S1W nOeZA6+ooE6A8TXLf7eW0NoZyHFHTrlC658Aj7AZZb4T72YvQQ06dCrpqOCycAap0+Nx zW/P3PWdtTS89XCo/PCNU/7nQkM7h6JkP3TJ2dAkCGCIGw+JSs4AmAovm0NAWHlKV4IQ pTQplOdh4rRKVDPYPqdkULIQ1B/kysB+VUp2tucmwFmftYlcqr5ELsR63c4VsYWS5m+U 8IbFm3O/NkdfVbFjr6wbPW6XYnBZTqQ+HJtDHnFDOb5W5/gJSWaYuCpT+vAIPqIcwVPN 4LIA== X-Gm-Message-State: AO0yUKVwH68X1ZbGaLPEaf8Z372ST+hhbU1fXbUBhGW0hdWDldtuKHWK JsFnokcEMiVtzXrSX4/IjB3oxjmUgb+bj700WOjit/WLvtPxjtzzMjskTOAeC9UZ3Jj0LQwhFyR E08k1qZA5c/LZJwAN+c1QmLktWBHPrl3GIhbM6pcEql3H X-Received: by 2002:a63:5847:0:b0:4eb:1c07:e5d7 with SMTP id i7-20020a635847000000b004eb1c07e5d7mr5676578pgm.6.1678221013192; Tue, 07 Mar 2023 12:30:13 -0800 (PST) X-Google-Smtp-Source: AK7set/HQ9FoagVagZoNnjIo+WpVNlmgOnqQulquN3MwuglDbe+mZb0HnsbD7nifhWnAghiZK8GwUeWgosN05vndQyE= X-Received: by 2002:a63:5847:0:b0:4eb:1c07:e5d7 with SMTP id i7-20020a635847000000b004eb1c07e5d7mr5676568pgm.6.1678221012874; Tue, 07 Mar 2023 12:30:12 -0800 (PST) MIME-Version: 1.0 References: <20230227194212.348003-1-amerey@redhat.com> <20230227194212.348003-4-amerey@redhat.com> <87r0u0qrtk.fsf@tromey.com> In-Reply-To: <87r0u0qrtk.fsf@tromey.com> From: Aaron Merey Date: Tue, 7 Mar 2023 15:30:01 -0500 Message-ID: Subject: Re: [PATCH 4/7] gdb/ui-file: Add newline tracking To: Tom Tromey Cc: Aaron Merey via Gdb-patches X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-4.8 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 Tue, Mar 7, 2023 at 2:34=E2=80=AFPM Tom Tromey wrote: > Aaron> (gdb) backtrace > Aaron> [...] > Aaron> #8 0x00007fbe8af7d7cf in pygi_invoke_c_callable ( > Aaron> Downloading separate debug info for /lib64/libpython3.11.so.1.= 0 > Aaron> function_cache=3D0x561221b224d0, state=3D... > > Still kind of badly formatted though? > > A long time ago, IIRC, the backtrace code had a second loop to do some > unwinding precisely to cause debuginfo to be loaded. I wonder if it > makes sense to resurrect this idea. It's unclear if this would work > with frame filters though. Can we accumulate the backtrace output in a buffer and print the whole thing in one shot after all frames have been computed/filtered? Then all debuginfod messages would print together, followed by the uninterrupted backtrace. Aaron