From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id EmYlKEWj9WOvWzoAWB0awg (envelope-from ) for ; Wed, 22 Feb 2023 00:08:21 -0500 Received: by simark.ca (Postfix, from userid 112) id 97FC31E222; Wed, 22 Feb 2023 00:08:21 -0500 (EST) 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 259221E0D3 for ; Wed, 22 Feb 2023 00:08:21 -0500 (EST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id E6A663858298 for ; Wed, 22 Feb 2023 05:08:19 +0000 (GMT) Received: from bolin (unknown [155.138.147.24]) by sourceware.org (Postfix) with ESMTPS id 170573858D3C for ; Wed, 22 Feb 2023 05:08:06 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 170573858D3C Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=mail9fcb1a.bolinlang.com Authentication-Results: sourceware.org; spf=none smtp.mailfrom=mail9fcb1a.bolinlang.com Received: by bolin (Postfix, from userid 1000) id 9B8FA17750B; Wed, 22 Feb 2023 05:08:04 +0000 (UTC) From: Levo D To: Subject: Hide variables? X-Mailer: mail (GNU Mailutils 3.10) Message-Id: <20230222050804.9B8FA17750B@bolin> Date: Wed, 22 Feb 2023 05:08:04 +0000 (UTC) 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" I'm generating c source. The code isn't sophisticated yet so there's a lot of unnamed temporary variables. Would it be possible to have gdb hide them? Is there a prefix I can use (like _hiddenMyVarName), or a way to use a pretty printer to hide them? Is there a standard tool to strip the variables from the binary? I use 3 compilers with gdb, clang, gcc and tcc (tiny c compiler). I found a solution for clang but it doesn't work with gcc or tcc