Commit Graph

24 Commits

Author SHA1 Message Date
Yuhei Okazaki 06435f5bc7 fix maximum value of the index when access breakpoints. 2015-03-31 10:52:10 +09:00
Yukihiro "Matz" Matsumoto d764632f86 Merge pull request #2680 from sdottaka/add-fflush
mrdb, mirb: Add fflush() so that a external program can read output imme...
2015-01-19 08:30:52 +09:00
sdottaka af51a4ac9d mrdb: fix crash when stepping into Proc.call
How to reproduce:

```
cat a.rb
Proc.new { 1 }.call

echo step | mrdb a.rb
```
2015-01-18 10:00:56 +09:00
Yukihiro "Matz" Matsumoto 53da1fb5a1 Merge pull request #2697 from cubicdaiya/use-sizeof
Use sizeof() instead of strlen().
2015-01-10 10:50:21 +09:00
Tatsuhiko Kubo dae42ffe54 Removed duplicated declarations.
* `mrb_show_version()`
 * `mrb_show_copyright()`
2015-01-03 22:56:36 +09:00
Tatsuhiko Kubo 2b753167ca Use sizeof() instead of strlen(). 2015-01-03 22:37:11 +09:00
Tatsuhiko Kubo df5f83cb84 fixed error-handling for mrb_open().
When mrb_open() is called again, it is not checked.
2015-01-03 20:56:49 +09:00
sdottaka 71548aabb7 Add fflush() (2) 2015-01-03 14:52:11 +09:00
Tatsuhiko Kubo 606095f2fe Remove redundant NULL checks for mrb_malloc(). 2015-01-01 05:12:41 +09:00
sdottaka 80a742df51 mrdb: fix that break command cannot handle Windows paths
Before fix:
```
$ mrdb c:\tmp\b.rb
(c:\tmp\b.rb:1) break c:\tmp\b.rb:3
Class name 'c' is invalid.
```

After fix:
```
$ mrdb c:\tmp\b.rb
(c:\tmp\b.rb:1) break c:\tmp\b.rb:3
Breakpoint 1: file c:\tmp\b.rb, line 3.
```
2014-12-20 08:32:28 +09:00
sdottaka 9a0fb6f91b mrdb, mirb: Add fflush() so that a external program can read output immediately. 2014-12-19 16:09:55 +09:00
murase_syuka 39b4caea81 closing to Local Scope 2014-11-29 01:02:40 +09:00
murase_syuka 1248e2ba8a adhoc fix for pass build 2014-11-27 01:12:01 +09:00
Yukihiro "Matz" Matsumoto 1365151dcb Merge pull request #2652 from cremno/mrdb-add-missing-null-termination
mrdb: add missing null-termination
2014-11-26 01:05:04 +09:00
cremno 553b9df306 free memory used by breakpoints 2014-11-26 00:43:39 +09:00
cremno 1cc6eaca2a free return value of dirname() 2014-11-26 00:43:39 +09:00
Hiroshi Mimaki 251dbca8e2 Merge pull request #2644 from cremno/mrdb-minor-changes
mrdb: minor changes
2014-11-25 14:11:57 +09:00
cremno 5f1e90fc58 add missing null-termination 2014-11-25 01:46:06 +01:00
Tatsuhiko Kubo 48a04ff1b4 use mrb_str_xxx_lit for mrdb. 2014-11-22 10:43:01 +09:00
cremno c9c0f9a79b remove const type qualifier
clang 3.5.0 with -Wextra produces a -Wignored-qualifiers diagnostic.
2014-11-20 02:39:48 +01:00
cremno c2bc44e131 don't convert function pointer to object pointer 2014-11-20 02:39:47 +01:00
cremno 337395c1ee remove cast
C99+TC3, 7.19.7.1p2: [...] the fgetc function obtains that character as
an unsigned char converted to an int [...]
2014-11-20 02:39:46 +01:00
cremno 83c48ff966 fix heap-use-after-free 2014-11-20 00:55:46 +01:00
mimaki e5bacc03f2 Add mruby debugger (mrdb) 2014-11-18 23:33:32 +09:00