Yukihiro "Matz" Matsumoto
d0ecf862d9
Fixed mixture of signed/unsigned integers
...
in mrbgems/mruby-bin-debugger.
2017-02-08 23:27:17 +09:00
Nobuyoshi Nakada
6511bfd79a
Removed trailing spaces
2016-09-28 12:29:41 +09:00
Guo Xiao
339005e1d5
intptr_t should be used instead of uint32_t to hold a pointer.
...
Fix warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
2016-07-31 12:53:39 +08:00
Yukihiro "Matz" Matsumoto
76d44b1b48
remove execute bit from mrbgems/mruby-bin-debugger files
2015-12-26 00:07:16 +09:00
Yuhei Okazaki
887a56ba80
fix bug that doesn't stop program when execute next command.
2015-12-23 22:16:36 +09:00
Yuhei Okazaki
a08439a7c0
fixed next command's comment.
2015-12-23 22:16:36 +09:00
Yuhei Okazaki
e1cc814ec4
add next command to mrdb.
2015-12-23 22:16:36 +09:00
Yasuhiro Matsumoto
7cc33af2dc
fix build on VS2012
2015-12-22 17:46:20 +09:00
Yukihiro "Matz" Matsumoto
5c405dea3d
include changed from by quotes ("") to by brackets (<>); close #3032
2015-11-27 17:48:23 +09:00
Zachary Scott
c0ff5b475f
Typo in mruby-bin-debugger/mrbgem.rake
2015-09-01 23:43:36 -04:00
Blaž Hrastnik
a4f63caa79
Fix incorrect memory allocation of mrdb_state_new.
...
As detected in a Coverity scan. https://scan8.coverity.com/reports.htm#v26153/p11375/fileInstanceId=6844472&defectInstanceId=2516000&mergedDefectId=75866
2015-07-02 20:47:22 +02:00
Anton Davydov
dcc316d3b8
Fix typos in documentation and error messages [skip ci]
2015-06-19 15:52:23 +03:00
Kouhei Sutou
09419874c8
Suppress warnings generated by -Wwrite-strings
...
Here are suppressed warnings:
src/fmt_fp.c: In function 'fmt_fp':
src/fmt_fp.c:124:16: warning: initialization discards 'const' qualifier from pointer target type
char *ss = (t&32)?"inf":"INF";
^
src/fmt_fp.c:125:17: warning: assignment discards 'const' qualifier from pointer target type
if (y!=y) ss=(t&32)?"nan":"NAN";
^
mrbgems/mruby-string-ext/src/string.c: In function 'mrb_str_succ_bang':
mrbgems/mruby-string-ext/src/string.c:302:27: warning: assignment discards 'const' qualifier from pointer target type
if (e == b) prepend = "1";
^
mrbgems/mruby-string-ext/src/string.c:305:27: warning: assignment discards 'const' qualifier from pointer target type
if (e == b) prepend = "a";
^
mrbgems/mruby-string-ext/src/string.c:308:27: warning: assignment discards 'const' qualifier from pointer target type
if (e == b) prepend = "A";
^
mrbgems/mruby-bin-mruby/tools/mruby/mruby.c: In function 'main':
mrbgems/mruby-bin-mruby/tools/mruby/mruby.c:213:13: warning: assignment discards 'const' qualifier from pointer target type
cmdline = args.cmdline ? args.cmdline : "-";
^
mrbgems/mruby-bin-debugger/tools/mrdb/cmdbreak.c: In function 'print_breakpoint':
mrbgems/mruby-bin-debugger/tools/mrdb/cmdbreak.c:159:3: warning: initialization discards 'const' qualifier from pointer target type
char* enable_letter[] = {BREAK_INFO_MSG_DISABLE, BREAK_INFO_MSG_ENABLE};
^
mrbgems/mruby-bin-debugger/tools/mrdb/cmdbreak.c:159:3: warning: initialization discards 'const' qualifier from pointer target type
2015-04-18 21:43:58 +09:00
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