Skip to content

Instantly share code, notes, and snippets.

View dbussink's full-sized avatar

Dirkjan Bussink dbussink

View GitHub Profile
dirkjan@nvc1372 ~/Documents/projects/rubinius master $ gdb --args ./bin/rbx -XJ -Xjit.inline.debug
GNU gdb 6.3.50-20050815 (Apple version gdb-1344) (Fri Jul 3 01:19:56 UTC 2009)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "x86_64-apple-darwin"...Reading symbols for shared libraries .... done
(gdb) run
gdb --args ./bin/rbx -XJ benchmark/rubinius/numerics/bm_add.rb GNU gdb 6.3.50-20050815 (Apple version gdb-1344) (Fri Jul 3 01:19:56 UTC 2009)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "x86_64-apple-darwin"...Reading symbols for shared libraries .... done
(gdb) run
Starting program: /Users/dirkjan/Documents/projects/rubinius/bin/rbx -XJ benchmark/rubinius/numerics/bm_add.rb
otool -L bin/rbx
bin/rbx:
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 124.1.1)
/usr/lib/libffi.dylib (compatibility version 1.0.0, current version 1.0.0)
/usr/lib/libstdc++.6.dylib (compatibility version 7.0.0, current version 7.9.0)
[2009-09-15 15:08:49] /Users/dirkjan/.rvm/ruby-1.8.6-p383/bin/gem install rake --no-rdoc --no-ri -q
++ nice -n 0 /bin/bash -l -c '/Users/dirkjan/.rvm/ruby-1.8.6-p383/bin/gem install rake --no-rdoc --no-ri -q'
Added keychain identities.
/bin/bash: /Users/dirkjan/.rvm/ruby-1.8.6-p383/bin/gem: No such file or directory
<i> Installing rubygems dedicated to ruby-1.8.6-p383...
+ rvm_gem_package_name=rubygems-1.3.5
+ rvm_gem_url=http://rubyforge.org/frs/download.php/60718/rubygems-1.3.5.tgz
+ '[' -d /Users/dirkjan/.rvm/src/rubygems-1.3.5 ']'
+ cd /Users/dirkjan/.rvm/src/rubygems-1.3.5
+ gsed -i.orig 's/require_paths\.join/require_paths.to_a.join/' /Users/dirkjan/.rvm/src/rubygems-1.3.5/lib/rubygems/gem_path_searcher.rb
gsed: can't read /Users/dirkjan/.rvm/src/rubygems-1.3.5/lib/rubygems/gem_path_searcher.rb: No such file or directory
+ rm -f /Users/dirkjan/.rvm/src/rubygems-1.3.5/lib/rubygems/gem_path_searcher.rb.orig
+ __rvm_run rubygems.install GEM_HOME=/Users/dirkjan/.rvm/gems/ruby/1.8.6 /Users/dirkjan/.rvm/ruby-1.8.6-p383/bin/ruby /Users/dirkjan/.rvm/src/rubygems-1.3.5/setup.rb
+ log_file_name=rubygems.install
diff --git a/lib/dm-core/property.rb b/lib/dm-core/property.rb
index dbb6de9..5d54323 100644
--- a/lib/dm-core/property.rb
+++ b/lib/dm-core/property.rb
@@ -766,6 +766,23 @@ module DataMapper
"#<#{self.class.name} @model=#{model.inspect} @name=#{name.inspect}>"
end
+ # Test a value to see if it matches the primitive type
+ #
~ Connecting to database...
/opt/local/lib/ruby/gems/1.8/gems/dm-core-0.10.0/lib/dm-core/adapters.rb:13:in `initialize': wrong number of arguments (2 for 0) (ArgumentError)
from /opt/local/lib/ruby/gems/1.8/gems/dm-core-0.10.0/lib/dm-core/adapters.rb:13:in `new'
from /opt/local/lib/ruby/gems/1.8/gems/dm-core-0.10.0/lib/dm-core/adapters.rb:13:in `new'
from /opt/local/lib/ruby/gems/1.8/gems/dm-core-0.10.0/lib/dm-core.rb:179:in `setup'
from /opt/local/lib/ruby/gems/1.8/gems/merb_datamapper-1.1/lib/merb/orms/data_mapper/connection.rb:44:in `setup_connections'
from /opt/local/lib/ruby/gems/1.8/gems/merb_datamapper-1.1/lib/merb/orms/data_mapper/connection.rb:27:in `connect'
from /opt/local/lib/ruby/gems/1.8/gems/merb_datamapper-1.1/lib/merb_datamapper.rb:41:in `run'
from /opt/local/lib/ruby/gems/1.8/gems/merb-core-1.1/lib/merb-core/bootloader.rb:99:in `run'
from /opt/local/lib/ruby/gems/1.8/gems/merb-core-1.1/lib/merb-core/server.rb:172:in `bootup'
dirkjan@imac ~/Documents/projects/rubinius master $ gdb --args ./bin/rbx -Xjit.enabled -Xjit.inline.generic
GNU gdb 6.3.50-20050815 (Apple version gdb-1344) (Fri Jul 3 01:19:56 UTC 2009)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "x86_64-apple-darwin"...Reading symbols for shared libraries .... done
(gdb) run
diff --git a/lib/iconv.rb b/lib/iconv.rb
index 88342a4..8f26357 100644
--- a/lib/iconv.rb
+++ b/lib/iconv.rb
@@ -153,7 +153,7 @@ class Iconv
is = FFI::MemoryPointer.new(str.size + 10)
is.write_string str, str.size
- l1.write_long is.address
+ l1.write_pointer is.address
GNU gdb 6.8-debian
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu"...
(gdb) run
Starting program: /home/dbussink/rubinius/bin/rbx -XJ
[Thread debugging using libthread_db enabled]