Bug 13351 - lookup_symbol: No frame selected. - but none is needed
Summary: lookup_symbol: No frame selected. - but none is needed
Status: NEW
Alias: None
Product: gdb
Classification: Unclassified
Component: python (show other bugs)
Version: HEAD
: P2 normal
Target Milestone: ---
Assignee: Tom Tromey
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-27 14:05 UTC by Jan Kratochvil
Modified: 2019-07-01 18:50 UTC (History)
3 users (show)

See Also:
Host: x86_64-unknown-linux-gnu
Target: x86_64-unknown-linux-gnu
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Kratochvil 2011-10-27 14:05:27 UTC
$ ./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.
Comment 2 Christian Biesinger 2019-06-25 22:50:48 UTC
I recently ran into this -- looks like the patch never landed?
Comment 3 Tom Tromey 2019-07-01 18:50:34 UTC
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.