From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr1-f48.google.com (mail-wr1-f48.google.com [209.85.221.48]) by sourceware.org (Postfix) with ESMTPS id 464063858436 for ; Mon, 7 Mar 2022 17:18:16 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 464063858436 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-f48.google.com with SMTP id e24so11452882wrc.10 for ; Mon, 07 Mar 2022 09:18:16 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=Mrr9PAphP9QqLMYldLByyuPyudFX4OOZvGjK5CMbTF8=; b=GWjlH6SDNJLya7Ce8QMiRCA6OeA/Ldtv/Jyek6bDi8tDyNsIa9JBg2nF5EULPjjd5v ukWVwzKp54R3gnznjo7e7BYqpXpqfaoN/E977EFI887PCy1ekhbwU+1QXlnuhrqx7J9Q iDg990suNUFPAJNy69bw2ko4rUdU1HiUXdRm69XBL6moqVqhukkd/H/Px7FQtDP/vXUh s2DYaaTS3YJyiFAwkL6VP7s4Vr8KJDqYzxMppUuFCLYoW0l2DDw1GKnubgO9QJ1Pxic7 A+I7tGhX2fSfPi+54OoK5dSygmiuFhWoKw0hcJQ36hd7H20x9T/I3YZhDbvi06inAvxU kOfw== X-Gm-Message-State: AOAM531holiNrLDsC830C6WS2OnNf6OI/LgzTT0qFbwREMiFvxw9Vu2e NDeHEDTNLv1w6UiKOinLei4= X-Google-Smtp-Source: ABdhPJwQYjJMQ9r9KxZnAyk9Zn978ygvjhtKzT8o35CnKhL+EIq1oWI+R9cFcamRbkNjFex3Cha5Nw== X-Received: by 2002:a5d:404b:0:b0:1f1:f880:7aca with SMTP id w11-20020a5d404b000000b001f1f8807acamr4450943wrp.179.1646673495262; Mon, 07 Mar 2022 09:18:15 -0800 (PST) Received: from ?IPV6:2001:8a0:f924:2600:209d:85e2:409e:8726? ([2001:8a0:f924:2600:209d:85e2:409e:8726]) by smtp.gmail.com with ESMTPSA id m14-20020a05600c4f4e00b0038181486018sm15447722wmq.40.2022.03.07.09.18.13 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 07 Mar 2022 09:18:14 -0800 (PST) Message-ID: <950cc915-d5dd-dbcb-67a2-9186792af8fe@palves.net> Date: Mon, 7 Mar 2022 17:18:12 +0000 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.6.1 Subject: Re: How to backtrace an separate stack? Content-Language: en-US To: Tom Tromey , Stefan Hajnoczi Cc: gdb@sourceware.org, qemu-devel@nongnu.org, "Dr. David Alan Gilbert" References: <87mti11yy9.fsf@tromey.com> From: Pedro Alves In-Reply-To: <87mti11yy9.fsf@tromey.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.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, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: gdb@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Mar 2022 17:18:17 -0000 On 2022-03-07 16:58, Tom Tromey wrote: >>>>>> "Stefan" == Stefan Hajnoczi writes: > > Stefan> I hoped that "select-frame address ADDRESS" could be used instead so > Stefan> this would work on coredumps too. Unfortunately "select-frame" only > Stefan> searches stack frames that GDB is already aware of, so it cannot be used > Stefan> to backtrace coroutine stacks. > > I wonder if "select-frame view" is closer to what you want. > > I can't attest to how well it works or doesn't work. I've never tried > it. A backtrace after "select-frame view" will still start at the current (machine register's) frame. Maybe it's sufficient to emulate it with a sequence of "up" + "frame", though. Keep in mind that you'll lose the view with "info threads" or any command that flushes the frame cache internally, as I mentioned in that ancient discussion.