From: Rocky Bernstein Date: 2010-02-05T18:29:16+09:00 Subject: [ruby-core:28061] Is there way to iterate over RubyVM::InstructionSequence's ? --001636e0a75a722c5a047ed71521 Content-Type: text/plain; charset=ISO-8859-1 Hi - For an experimental Ruby 1.9 debugger it would be convenient to be able to get and maintain a list of all RubyVM instruction sequences. Think something analogous to SCRIPT_LINES__ (a hash where keys are source-code filenames). Short of iterating over the entire ObjectSpace checking each object, can anyone think of a better way to do this? I don't mind patching Ruby 1.9, but of course I wouldn't want to do this if it were not necessary. If folks need or want further background and motivation let me know. Thanks. --001636e0a75a722c5a047ed71521 Content-Type: text/html; charset=ISO-8859-1 Hi -

For an experimental Ruby 1.9 debugger it would be convenient to be able to get and maintain a list of all RubyVM instruction sequences. Think something analogous to SCRIPT_LINES__ (a hash where keys are source-code filenames).

Short of iterating over the entire ObjectSpace checking each object, can anyone think of a better way to do this?

I don't mind patching Ruby 1.9, but of course I wouldn't want to do this if it were not necessary.

If folks need or want further background and motivation let me know.

Thanks.
--001636e0a75a722c5a047ed71521--