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 #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.


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