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: "joel.borggren.franck at gmail dot com"<sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Tue, 15 Mar 2011 09:34:23 +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 #3 from Joel BorggrÃn-Franck <joel.borggren.franck at gmail dot com> 2011-03-15 09:34:16 UTC ---
An example:
---
#include "stdio.h"
int foo = 0;
int main(void) {
printf("something\n");
}
---
foo isn't part of any frame.
IIRC can't lookup foo through Frame.read_var, but even if I could, that isn't a
very good API.
That is why I propose:
gdb.get_global_value(sym) and
Symbol.get_global_value(self)
cheers
/J
--
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.