From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pj1-x1030.google.com (mail-pj1-x1030.google.com [IPv6:2607:f8b0:4864:20::1030]) by sourceware.org (Postfix) with ESMTPS id 20E6338485B5 for ; Thu, 30 Jun 2022 00:12:48 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 20E6338485B5 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=optusnet.com.au Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-pj1-x1030.google.com with SMTP id cv13so17142153pjb.4 for ; Wed, 29 Jun 2022 17:12:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=sender:from:date:to:subject:message-id:reply-to:mail-followup-to :references:mime-version:content-disposition:in-reply-to; bh=7HdeXJzF1WKnykQ2RbALnvvYwCmg9II4Idk/eIPvAek=; b=hYYCXDCShVcK4yM3/kpCqaZ5IRoCXJIQxKtYXFptRNTZB3IuVq9MXJksLuioWok07K lQgHj3WuZDoTOj0QCytkLNp399vOTInWa8wK6mQ7ccz+tTxnfns/6dyZ+YuStxe8/8Zo S3PzAiGjYy4q+wFoHCfpJ0nr/4BLYKsFz4G3T8hPvwTsejIfnMikP1J/NF5oBogtX6hM YHZEIEq+flegTjWsA2tHzS+jzIcEm1V0JpgHx2Hret5evc2W1OKCNcHhev7BUcxW7y9/ nOP3Fhliymn/6k9zEr6OKDB3Kq9hx1cLSDWczVg2C43QHQc6LVW7tDusmAoaFgv+OitV w4/g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:sender:from:date:to:subject:message-id:reply-to :mail-followup-to:references:mime-version:content-disposition :in-reply-to; bh=7HdeXJzF1WKnykQ2RbALnvvYwCmg9II4Idk/eIPvAek=; b=THHNqxnylu7G9VQnFH+BSisQvRwXKth24rdaTe8SUTgVUBl61tOP5exBKOpQouJPHg 9xc/HwH3BW8J2DUd99J5fIWLMb8e7I+v/eYtUYYD8e9ooUn6FXSIBYJSRHnc8KrLa1n0 +ziU5Hn6b73Xw4XnxIg23n0Ll+rP8nbHxkDPYwGBJElqbjqFTmCAdDfX8FKhVMVchcfa VUdP0itIBGzL08DssSeb+yO65FCpxnPlJ/pfbtu6mha/kjw6ZCVj7Pup0iIKRPdBE2SY 7y7tZ0VgtybqeK7BF3dwBz1Ze5ZSTAcAGOKF2gCqknBVLDdhDIUcL+kbZs77+DhXTVvp cqCg== X-Gm-Message-State: AJIora+ZFYk3kUyeSq7fiLk2IY06AB+Fmgov52uZtsYIYF2EWSgGq0ow 3gkjzM0Q0PFqCeteK3lHHH44kPSs1pw= X-Google-Smtp-Source: AGRyM1tNl1nM1OfizvHeyYDnRx+G72Txx8MRxYawr9HQyz5jtba1O4bn65cy9H8/R8CQpWrRPUeiaA== X-Received: by 2002:a17:902:e850:b0:16a:209a:971a with SMTP id t16-20020a170902e85000b0016a209a971amr12890639plg.163.1656547966816; Wed, 29 Jun 2022 17:12:46 -0700 (PDT) Received: from slk15.local.net (n110-23-108-30.sun3.vic.optusnet.com.au. [110.23.108.30]) by smtp.gmail.com with ESMTPSA id ha24-20020a17090af3d800b001eee31fe496sm2817536pjb.29.2022.06.29.17.12.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Jun 2022 17:12:46 -0700 (PDT) Sender: Duncan Roe From: Duncan Roe X-Google-Original-From: Duncan Roe Date: Thu, 30 Jun 2022 10:12:43 +1000 To: cygwin@cygwin.com Subject: Re: variables, mostly private, not included into debug symbols list on -g3 -ggdb settings Message-ID: Reply-To: duncan_roe@optusnet.com.au Mail-Followup-To: cygwin@cygwin.com References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-0.7 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_EF, FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE, 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: cygwin@cygwin.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Jun 2022 00:12:50 -0000 Hi Ariel, On Thu, Jun 30, 2022 at 12:38:49AM +0200, Ariel Burbaickij wrote: > Hello list, > any idea why private variables from C++ source files are not included into > symbols list with -g3 and -ggdb compilation settings in gcc version 11.3.0 > under Cygwin. Like that, roughly: > > grep isInProgress * > > : bool isInProgress; > > $nm -Cal |grep isInProgress > $ > > So, watchpoints obviously do not work. Why is it like this ? > > Kind Regards > Ariel Burbaickij > I had a similar problem with -g3 -ggdb: macros were not recognised. Using -g3 -gdwarf4 fixed that for me. IIUC -ggdb is supposed to select the optimum debug format for gdb. It may be a bug that it no longer does. HTH, Cheers ... Duncan.