From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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-Spam-Status: No, score=0.1 required=5.0 tests=BAYES_00,FSL_HELO_NON_FQDN_1,HELO_NO_DOMAIN,KAM_DMARC_STATUS,KAM_LAZY_DOMAIN_SECURITY,KHOP_HELO_FCRDNS,PDS_RDNS_DYNAMIC_FP,RDNS_DYNAMIC,SPF_NONE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: 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