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

Reply via email to