Re: Access RTX register information

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,
Yes, thanks for replying.
The above command works but it returns an IDENTIFIER_NODE so it
requires IDENTIFIER_POINTER(DECL_NAME(CONST_CAST_TREE(REG_EXPR(object))))
to give the name of the variable.
Thanks.

Eashan

On Wed, May 6, 2020 at 11:05 PM Jeff Law <law@xxxxxxxxxx> wrote:

> On Wed, 2020-05-06 at 05:12 +0530, eashan gupta wrote:
> > Hi,
> > Thanks a lot for replying.
> > I have tried tracing the print_rtl_single too following the REG_EXPR but
> it
> > ends up in the code of printing the complete tree.
> Right.  It's that tree structure that will have the name emebedded in it.
>
> >
> > Is it possible to access this information directly, ie get the variable
> name
> > stored in a string instead of printing it out?
> Probably something like DECL_NAME (REG_EXPR (object)) or
> DECL_ASSEMBLER_NAME
> (REG_EXPR (object))
>
>
> > I am not too familiar with the code for the tree and it would be very
> helpful
> > to me if I could get the method to get the variable name
> stored/extracted from
> > the tree.
> You're almost certainly going to need to refer to tree.h and tree.def to
> understand how to dig out the information you want.
>
> jeff
> >
>
>



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux