From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id fZs+DBsXM2QCOScAWB0awg (envelope-from ) for ; Sun, 09 Apr 2023 15:50:51 -0400 Received: by simark.ca (Postfix, from userid 112) id 24A731E221; Sun, 9 Apr 2023 15:50:51 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI,RDNS_DYNAMIC autolearn=ham autolearn_force=no version=3.4.6 Received: from sourceware.org (ip-8-43-85-97.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id A7C631E0D3 for ; Sun, 9 Apr 2023 15:50:50 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id E3A403858C00 for ; Sun, 9 Apr 2023 19:50:49 +0000 (GMT) Received: from mail-out.m-online.net (mail-out.m-online.net [212.18.0.9]) by sourceware.org (Postfix) with ESMTPS id C23073858D28 for ; Sun, 9 Apr 2023 19:50:33 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org C23073858D28 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=linux-m68k.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=nefkom.net Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 4PvjQ00wgyz1r5hW; Sun, 9 Apr 2023 21:50:32 +0200 (CEST) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 4PvjQ00Mgpz1qqlS; Sun, 9 Apr 2023 21:50:32 +0200 (CEST) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id 4mhQWG7wVIKf; Sun, 9 Apr 2023 21:50:31 +0200 (CEST) X-Auth-Info: SVXNBPFVYjZ+KeW2sCDsIZ2tO19zxyJ5WhCsbK2TCnDlp/LIggANCCk554a7OgKf Received: from igel.home (aftr-82-135-86-94.dynamic.mnet-online.de [82.135.86.94]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPSA; Sun, 9 Apr 2023 21:50:31 +0200 (CEST) Received: by igel.home (Postfix, from userid 1000) id 0780D2C1CB0; Sun, 9 Apr 2023 21:50:30 +0200 (CEST) From: Andreas Schwab To: Jonny Grant Cc: gdb@sourceware.org Subject: Re: Inspecting memory address contents in GDB References: X-Yow: MMM-MM!! So THIS is BIO-NEBULATION! Date: Sun, 09 Apr 2023 21:50:30 +0200 In-Reply-To: (Jonny Grant's message of "Sun, 9 Apr 2023 19:09:04 +0100") Message-ID: <87y1n0sum1.fsf@igel.home> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain 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: , Errors-To: gdb-bounces+public-inbox=simark.ca@sourceware.org Sender: "Gdb" On Apr 09 2023, Jonny Grant wrote: > Hi > Pasting some output lines from a core dump gdb session below. > I noticed after "x/8c" the line seems stuck in ASCII mode. So when I do "x/8b" it doesn't go back to output in hex, is that expected? >From help x: Defaults for format and size letters are those previously used. Default count is 1. Default address is following last thing printed with this command or "print". 'c' is a format, 'b' is a size letter. Each one will independently remain in effect until a different format and size, resp., is used. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1 "And now for something completely different."