X-Recipient: archive-cygwin@delorie.com
X-Original-To: cygwin@cygwin.com
Delivered-To: cygwin@cygwin.com
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
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)
From: Duncan Roe <duncan_roe@optusnet.com.au>
X-Google-Original-From: Duncan Roe <dunc@slk15.local.net>
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: <Yrzqe4Ksl35/p8JA@slk15.local.net>
Mail-Followup-To: cygwin@cygwin.com
References: <CANeJNHp7xjeqqMDFeST9k14VFPQ=SY1EPqomGtc8nGBqD1bnrQ@mail.gmail.com>
MIME-Version: 1.0
Content-Disposition: inline
In-Reply-To: <CANeJNHp7xjeqqMDFeST9k14VFPQ=SY1EPqomGtc8nGBqD1bnrQ@mail.gmail.com>
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 <cygwin.cygwin.com>
List-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-request@cygwin.com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=subscribe>
Reply-To: duncan_roe@optusnet.com.au
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Errors-To: cygwin-bounces+archive-cygwin=delorie.com@cygwin.com
Sender: "Cygwin" <cygwin-bounces+archive-cygwin=delorie.com@cygwin.com>

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 *
>
> <file_name>:    bool isInProgress;
>
> $nm -Cal <file_name_of_executable>|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.

-- 
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple
