[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gcc
Subject:    Re: Question on path from C parser to DECL_INITIAL
From:       Martin Jambor <mjambor () suse ! cz>
Date:       2022-03-23 12:46:50
Message-ID: ri6o81wx2dh.fsf () suse ! cz
[Download RAW message or body]

Hi,

On Wed, Mar 23 2022, Erick Ochoa via Gcc wrote:
> Hi,
>
> I am trying to understand what path is executed in GCC from parsing a C
> expression (in a global variable declaration) to the value in DECL_INITIAL.
> At the moment, I have annotated a tree during parsing. I have another
> debugging pass that looks for this tree in subsequent passes. The
> annotation persists if the tree is inside a function body. However, if the
> tree is in a global variable initialization (i.e., DECL_INITIAL), then I am
> unable to see the annotation even when placing the debugging pass at the
> beginning of passes.def.
>
> Can someone provide a little bit of guidance?

Sounds like a gdb watchpoint should help here.

Martin

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic