Skip to content

Commit

Permalink
Add mruby debugger (mrdb)
Browse files Browse the repository at this point in the history
  • Loading branch information
mimaki committed Nov 18, 2014
1 parent 4c7e812 commit e5bacc0
Show file tree
Hide file tree
Showing 23 changed files with 4,261 additions and 1 deletion.
11 changes: 11 additions & 0 deletions AUTHORS
Expand Up @@ -20,3 +20,14 @@ Original Authors "mruby developers" are:
Tatsuhiko Kubo
Takeshi Watanabe
Yuki Kurihara
specified non-profit corporation mruby Forum
Kazuaki Tanaka
Hiromasa Ishii
Hiroshi Mimaki
Satoshi Odawara
Mitsubishi Electric Micro-Computer Application Software Co.,Ltd.
Hiroyuki Matsuzaki
Yuhei Okazaki
Manycolors, Inc.
Shota Nakano
Yuichi Osawa
10 changes: 10 additions & 0 deletions Rakefile
Expand Up @@ -75,6 +75,16 @@ MRuby.each_target do |target|
FileUtils.cp t.prerequisites.first, t.name, { :verbose => $verbose }
end
depfiles += [ install_path ]
elsif target == MRuby.targets['host-debug']
unless MRuby.targets['host'].gems.map {|g| g.bins}.include?([bin])
install_path = MRuby.targets['host-debug'].exefile("#{MRUBY_ROOT}/bin/#{bin}")

file install_path => exec do |t|
FileUtils.rm_f t.name, { :verbose => $verbose }
FileUtils.cp t.prerequisites.first, t.name, { :verbose => $verbose }
end
depfiles += [ install_path ]
end
else
depfiles += [ exec ]
end
Expand Down
25 changes: 25 additions & 0 deletions build_config.rb
Expand Up @@ -83,6 +83,31 @@
# conf.enable_bintest
end

MRuby::Build.new('host-debug') do |conf|
# load specific toolchain settings

# Gets set by the VS command prompts.
if ENV['VisualStudioVersion'] || ENV['VSINSTALLDIR']
toolchain :visualcpp
else
toolchain :gcc
end

enable_debug

# include the default GEMs
conf.gembox 'default'

# C compiler settings
conf.cc.defines = %w(ENABLE_DEBUG)

# Generate mruby debugger command (require mruby-eval)
conf.gem :core => "mruby-bin-debugger"

# bintest
# conf.enable_bintest
end

# Define cross build settings
# MRuby::CrossBuild.new('32bit') do |conf|
# toolchain :gcc
Expand Down

0 comments on commit e5bacc0

Please sign in to comment.