Yukihiro "Matz" Matsumoto
b99c389ec3
internal.h: aggregate internal functions.
...
Internal functions can only be called from within the library.
Functions listed in `mruby/internal.h` can be called from:
* core (src/*.c)
* gems (mrbgems/**/*.c)
But not from the application linked with `libmruby`.
2022-04-02 18:25:13 +09:00
Yukihiro "Matz" Matsumoto
d6dd6f0e7b
Update struct initializer to work with relatively older C++.
2021-09-20 19:13:17 +09:00
Yukihiro "Matz" Matsumoto
8619ba6a38
Use struct initializer instead of memset.
2021-09-15 13:02:15 +09:00
Yukihiro "Matz" Matsumoto
504d05232d
mrdb.c: do not skip OP_JMP on step execution.
2021-08-02 16:19:08 +09:00
dearblue
04a4e59c83
Fix build error for mruby-bin-debugger
...
This is a missing change in #5272 .
This issue was reported by @shuujii.
https://github.com/mruby/mruby/pull/5272#issuecomment-761819737
2021-01-18 00:00:53 +09:00
Yukihiro "Matz" Matsumoto
b9007244bd
Add const before struct mrb_irep in mruby-bin-debugger gem.
2020-10-12 18:20:23 +09:00
Yukihiro "Matz" Matsumoto
029c7c1116
Add const modifier to mrb_irep for code_fetch_hook.
2020-10-12 16:21:05 +09:00
dearblue
cc1db2d117
Remove unnecessary 'stdio.h'; ref #4947
...
'stdio.h' is included in 'mruby.h' ('mrbconf.h').
However, keep 'stdio.h' used by mruby-test.
2020-03-08 21:42:09 +09:00
dearblue
279c21b816
Prohibit changes to iseq in principle
2019-08-18 15:00:32 +09:00
Yukihiro "Matz" Matsumoto
2871d0cdc5
Avoid keeping pointers from mrb_sym2name_len(); fix #4342
...
The addresses for packed inline symbols reference `mrb->symbuf` that
could be overridden by the later call of `mrb_sym2name_len`. Since
file names in call stack information are kept as symbols, keeping the
address in the C structures could cause problems like #4342 .
This changes small incompatible changes in function prototypes:
* `mrb_parser_get_filename`: return value changed to `mrb_sym`.
* `mrb_debug_get_filename`: add `mrb_state*` as a first argument.
* `mrb_debug_get_line`: ditto.
I believe above functions are almost internal, and no third-party
mrbgem use them.
2019-04-01 14:13:06 +09:00
kimu_shu
477ffc7473
Add "info locals" command to mrdb
2019-02-19 18:10:05 +09:00
Yukihiro "Matz" Matsumoto
beb6e5c299
Bytecode support for mrdb.
2018-07-31 17:28:42 +09:00
Yukihiro "Matz" Matsumoto
891839b976
New bytecode implementation of mruby VM.
2018-07-30 22:57:54 +09:00
Lothar Scholz
06f90a3b45
Make source compilable with C++17
...
Changes applied:
- Removing "register" keyword
- Fixing const pointer to pointer assignments
- Adding type casts to rb_malloc calls
2017-12-23 01:10:43 +01:00
Yukihiro "Matz" Matsumoto
8bf492f127
Reduce integer type mismatch warnings in VC.
2017-08-12 09:35:35 +09:00
Yukihiro "Matz" Matsumoto
fbf4089d2f
Remove spaces around parens
2017-04-03 16:49:18 +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
Yukihiro "Matz" Matsumoto
5c405dea3d
include changed from by quotes ("") to by brackets (<>); close #3032
2015-11-27 17:48:23 +09: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
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
9a0fb6f91b
mrdb, mirb: Add fflush() so that a external program can read output immediately.
2014-12-19 16:09:55 +09:00
cremno
553b9df306
free memory used by breakpoints
2014-11-26 00:43:39 +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
mimaki
e5bacc03f2
Add mruby debugger (mrdb)
2014-11-18 23:33:32 +09:00