This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug python/12027] Can't get to value from a global symbol usingPyhton API


http://sourceware.org/bugzilla/show_bug.cgi?id=12027

--- Comment #8 from Tom Tromey <tromey at redhat dot com> 2012-02-01 15:37:12 UTC ---
(In reply to comment #6)

> I'm not sure to get the distinction, `gdb.parse_and_eval` is part of the Python
> API, and the value returned and be read, modified, etc. from Python scripts;
> could you point something we can't currently do?

Yes.  Suppose you have variable shadowing inside a function.
Right now you can iterate over the blocks and get two different symbols,
representing the two variables with the same name.
However, parse_and_eval will only let you fetch the value of the
innermost one.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]