Bug #8243

ruby-debug-base fails because a function is no longer exported

Added by Eric Promislow about 1 year ago. Updated about 1 year ago.

[ruby-core:54150]
Status:Rejected
Priority:Normal
Assignee:-
Category:core
Target version:-
ruby -v:ruby 2.0.0p0 (2013-02-24 revision 39474) [x86_64-linux] Backport:

Description

The ruby-debug-base project (now at https://github.com/cldwalker/debugger )
fails with 2.0 giving an error message like

dyld: lazy symbol binding failed: Symbol not found: rbvmgetsourceline
Referenced from: /usr/local/rvm/gems/ruby-2.0.0-p0@apono/bundler/gems/debugger-e98dc5762a48/lib/ruby_debug.bundle
Expected in: flat namespace

When I reinstate this line in vm_backtrace.c the debugger works fine:

RUBYFUNCEXPORTED int rbvmgetsourceline(const rbcontrolframet *cfp);

bug08243.patch Magnifier - Patch for fix (551 Bytes) Eric Promislow, 04/10/2013 06:17 AM

History

#1 Updated by Eric Promislow about 1 year ago

This patch reinstates the RUBYFUNCEXPORTED declaration, including
the comment from 1.9.3 stating that a better interface would be used
in the next version. I don't know of any such interface in the 2.0 code.

#2 Updated by Jeremy Kemper about 1 year ago

Hey Eric -

@ko1 updated it to use the new Ruby 2 debugging API!

See the debugger2 branch: https://github.com/cldwalker/debugger/compare/master...debugger2

#3 Updated by Nobuyoshi Nakada about 1 year ago

  • Status changed from Open to Rejected

Also available in: Atom PDF