From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr1-f50.google.com (mail-wr1-f50.google.com [209.85.221.50]) by sourceware.org (Postfix) with ESMTPS id 6678E38133E3 for ; Tue, 28 Jun 2022 13:43:26 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 6678E38133E3 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-f50.google.com with SMTP id o16so17799001wra.4 for ; Tue, 28 Jun 2022 06:43:26 -0700 (PDT) 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=FXTRDCg5Xk9Lu7SYNKIBzSxFAXfjbNB5k1Z7TgQxJGI=; b=u/dpcjE2Nau/BJhP4Bj7Uq6tHmFj6RyzTKzzvtmxMiWp2LC7zC4yR6ilDTyy8fc1NX S25FCQvDGnTYPn6NfhmccREYPGMKCn0SD3ve1mJ4gQw2edqRaC39eZz5WvoKrl4aermb 5C2a42RM6d0sjd6f6LLDVUFfIOOPPQZ6Tnkzv+ICzdhQxaJRFjxQt/NU4NhFg0IfxEBy p5QqgE9f15RXG1yLh92BRActbQYAhTxM9WfxT1WJQaZkcxm8XTREOcp71aeXQ4sXbIQI 3VL/lvOzgH27+Fr1qo0+SF1o4WBkwn59GQdQQuQU5u+xmmoZ7e4in+9Y7allUItSe43N mHlA== X-Gm-Message-State: AJIora9gWi/+ruTPkkgUxkR66zRjxuhaGySoUGvpXqGANeAwt75lLJSi MXW8kDX9/N6AK5EaUZdb/Zk= X-Google-Smtp-Source: AGRyM1uh2vS2MySlUlql5LI3+nnqiRsg74dXmsEyJ+c5GOE9TE99Ii2X9BZv2T7Z0X8okmq+192wuA== X-Received: by 2002:a05:6000:70b:b0:21b:a816:85c6 with SMTP id bs11-20020a056000070b00b0021ba81685c6mr17178661wrb.639.1656423805463; Tue, 28 Jun 2022 06:43:25 -0700 (PDT) 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 i6-20020adfe486000000b0021b892f4b35sm14122176wrm.98.2022.06.28.06.43.24 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 28 Jun 2022 06:43:24 -0700 (PDT) Message-ID: Date: Tue, 28 Jun 2022 14:43:23 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.10.0 Subject: Re: Refresh TUI source panel after "monitor reset" Content-Language: en-US To: "R. Diez" , Andrew Burgess Cc: gdb@sourceware.org References: <48b5be62-64c1-c7bb-a560-e454ffe2f0ba.ref@yahoo.de> <48b5be62-64c1-c7bb-a560-e454ffe2f0ba@yahoo.de> <87h74ab1ia.fsf@redhat.com> <7699942f-4c45-4cf4-0f54-dc1948262c9f@yahoo.de> From: Pedro Alves In-Reply-To: <7699942f-4c45-4cf4-0f54-dc1948262c9f@yahoo.de> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.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, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) 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: Tue, 28 Jun 2022 13:43:28 -0000 On 2022-06-24 15:57, R. Diez via Gdb wrote: > > But then I experimented a little further. Command "list" seems to work if you supply a known function name. If the function does not exist, you get an error message like 'Function "test" not defined.'. > > However, if you specify an address which does not fall in the known code area, GDB just ignores the "list" command. For example, I tried these commands: > > list * 0x1000000 > list * 0x8000000 > > And there were just silently ignored. > > The reset address does not fall into the current firmware, but in the bootloader area, and the currently-loaded ELF does not have debug symbols for the bootloader area. That is perhaps the reason why the "list *$pc" has no effect. > > But then your suggestion gave me the idea of trying "disassemble $pc,+10". That did the trick. > Did you try just "frame"? That's what I typically use to make the source pane refocus on the current frame, where the program is stopped.