From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from eggs.gnu.org (eggs.gnu.org [IPv6:2001:470:142:3::10]) by sourceware.org (Postfix) with ESMTPS id 250873858D1E for ; Tue, 24 Jan 2023 15:29:06 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 250873858D1E Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gnu.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gnu.org Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pKLEP-0005Cx-84; Tue, 24 Jan 2023 10:29:05 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=In-Reply-To:Subject:From:References:To:MIME-Version: Date; bh=jmtzSTgTFqAK4IV4x9mOjbc6KpXnEZahjRPj4Fp7vro=; b=ZVLc16bgkINbBsI7rkTV OlggR8h3w5l+8fx6WeEppcSs+hkCPHXaOrNFXefGBw7skMuhkY8iaiQqgAXLWBqg5JBg0y+s6pz1z pWy2qsQXC4IW8DnzDCVxwM6eSRh4jePUO1pTuKhsEKqqFPgeigpiiy4/EfatYoFk7Hjw0fY7dIO03 Ucxgb5rG0r723EOt21keVHi2EfxeI74LFb3neyxTVYLCpYzP5V8POrEFFQYPNOT8Yu9U7wMgM6L3g AvEI4Is5RplgsaiCb4vMv9YZVtPs/6d5wxyNFexV+JPtm971sTHZmICDhsinMaN4rNLMpN36Vk6db MUgVWqESTbH5Kg==; Received: from ip5f5a8893.dynamic.kabel-deutschland.de ([95.90.136.147] helo=[192.168.111.41]) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pKLEO-0006rO-LX; Tue, 24 Jan 2023 10:29:04 -0500 Message-ID: <197002b4-9671-8833-2940-174ebd499b7a@gnu.org> Date: Tue, 24 Jan 2023 16:29:02 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.6.1 To: varun.erigila@blackfigtech.com References: Content-Language: en-US Cc: GDB mailing list From: Simon Sobisch Subject: Re: gdb deletes watchpoint for local variables in scope In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,SPF_HELO_PASS,SPF_PASS,TXREP,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: If you did not do that already try adding -O -ggdb to your clang invocation. Also: * Does it make any difference if you compile with gcc? * Does "print q" still return something - and the same as before "watch q"? Simon