$ ./gdb -nx ./gdb GNU gdb (GDB) 7.3.50.20111027-cvs (gdb) python gdb.lookup_symbol("gdb_stdin") Traceback (most recent call last): File "<string>", line 1, in <module> gdb.error: No frame selected. Error while executing Python code. But `gdb_stdin' is a global variable, there is no need for any frame.
See https://sourceware.org/ml/gdb-patches/2012-01/msg01019.html
I recently ran into this -- looks like the patch never landed?
There was some problem with the patch IIRC. I don't recall what, you'd have to check the archives. Perhaps it can be resurrected.