This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug python/12027] Can't get to value from a global symbol usingPyhton API
- From: "kevin.pouget at gmail dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Wed, 01 Feb 2012 09:55:38 +0000
- Subject: [Bug python/12027] Can't get to value from a global symbol usingPyhton API
- Auto-submitted: auto-generated
- References: <bug-12027-4717@http.sourceware.org/bugzilla/>
http://sourceware.org/bugzilla/show_bug.cgi?id=12027
--- Comment #6 from Kevin Pouget <kevin.pouget at gmail dot com> 2012-02-01 09:55:38 UTC ---
> The problem isn't that it is impossible to get the value, the problem is that
> there is no way of getting the value trough the Pyton API (proper).
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?
I dropped the last line in the previous comment, here it is:
> (gdb) python print gdb.parse_and_eval("foo").__class__.__name__
> Value
--
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.