[Bug exp/26629] evaluate expression in a given context

tromey at sourceware dot org sourceware-bugzilla@sourceware.org
Thu Sep 17 14:04:57 GMT 2020


https://sourceware.org/bugzilla/show_bug.cgi?id=26629

Tom Tromey <tromey at sourceware dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
                 CC|                            |tromey at sourceware dot org
   Last reconfirmed|                            |2020-09-17
     Ever confirmed|0                           |1

--- Comment #2 from Tom Tromey <tromey at sourceware dot org> ---
I think there's some support for this internally, in that if
the inferior is stopped in a method, it will look for members
and types using their unqualified name.
So, perhaps this could be extended to let the scope be passed
in.  Then MI could be enhanced to let the user do this.

See c-exp.y:classify_inner_name, which does:

  yylval.ssym.sym = cp_lookup_nested_symbol (type, copy.c_str (), block,
                                             VAR_DOMAIN);

Here the block implies the scope.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Gdb-prs mailing list