summaryrefslogtreecommitdiffhomepage
path: root/mrbgems/mruby-bin-debugger/tools/mrdb
AgeCommit message (Collapse)Author
2019-04-01Avoid keeping pointers from `mrb_sym2name_len()`; fix #4342Yukihiro "Matz" Matsumoto
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-02-19Add "info locals" command to mrdbkimu_shu
2019-02-03Use `mrb->eException_class` instead of `mrb_class_get()`KOBAYASHI Shuji
2018-07-31Bytecode support for `mrdb`.Yukihiro "Matz" Matsumoto
2018-07-30New bytecode implementation of mruby VM.Yukihiro "Matz" Matsumoto
2018-04-04Fixed illegal memory operation on mruby debugger.mimaki
2017-12-23Do not initialize a local variable soon to be assigned.Yukihiro "Matz" Matsumoto
2017-12-23Make source compilable with C++17Lothar Scholz
Changes applied: - Removing "register" keyword - Fixing const pointer to pointer assignments - Adding type casts to rb_malloc calls
2017-11-20Add `MRB_METHOD_TABLE_INLINE` option.Yukihiro "Matz" Matsumoto
Now the method tables (in classes/modules and caches) keeps C function pointers without wrapping in `struct RProc` objects. For the sake of portability, `mrb_method_t` is represented by the struct and union, but if the most significant bit of the pointer is not used by the platform, `mrb_method_t` should be packed in `uintptr_t` to reduce memory usage. `MRB_METHOD_TABLE_INLINE` is turned on by default for linux.
2017-08-12Reduce integer type mismatch warnings in VC.Yukihiro "Matz" Matsumoto
2017-08-04Fixed a invalid source path name on mruby debugger.Hiroshi Mimaki
2017-08-01Better class name management.Yukihiro "Matz" Matsumoto
The change removes several internal instance variables used by class name management. The variables `__classid__` and `__classpath__` are no longer available. `__outer__` is used only for unnamed outer classes/modules (and will be removed after they are named). [Important note] Along with this change we removed several public functions. - mrb_class_outer_module() - mrb_class_sym() We believe no one have used those functions, but if you do, please ask us for the workaround.
2017-04-03Unify `else` clause styleYukihiro "Matz" Matsumoto
2017-04-03Remove spaces around parensYukihiro "Matz" Matsumoto
2017-02-08Fixed mixture of signed/unsigned integersYukihiro "Matz" Matsumoto
in mrbgems/mruby-bin-debugger.
2016-09-28Removed trailing spacesNobuyoshi Nakada
2016-07-31intptr_t should be used instead of uint32_t to hold a pointer.Guo Xiao
Fix warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
2015-12-26remove execute bit from mrbgems/mruby-bin-debugger filesYukihiro "Matz" Matsumoto
2015-12-23fix bug that doesn't stop program when execute next command.Yuhei Okazaki
2015-12-23fixed next command's comment.Yuhei Okazaki
2015-12-23add next command to mrdb.Yuhei Okazaki
2015-12-22fix build on VS2012Yasuhiro Matsumoto
2015-11-27include changed from by quotes ("") to by brackets (<>); close #3032Yukihiro "Matz" Matsumoto
2015-07-02Fix incorrect memory allocation of mrdb_state_new.Blaž Hrastnik
As detected in a Coverity scan. https://scan8.coverity.com/reports.htm#v26153/p11375/fileInstanceId=6844472&defectInstanceId=2516000&mergedDefectId=75866
2015-06-19Fix typos in documentation and error messages [skip ci]Anton Davydov
2015-04-18Suppress warnings generated by -Wwrite-stringsKouhei Sutou
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-03-31fix maximum value of the index when access breakpoints.Yuhei Okazaki
2015-01-19Merge pull request #2680 from sdottaka/add-fflushYukihiro "Matz" Matsumoto
mrdb, mirb: Add fflush() so that a external program can read output imme...
2015-01-18mrdb: fix crash when stepping into Proc.callsdottaka
How to reproduce: ``` cat a.rb Proc.new { 1 }.call echo step | mrdb a.rb ```
2015-01-10Merge pull request #2697 from cubicdaiya/use-sizeofYukihiro "Matz" Matsumoto
Use sizeof() instead of strlen().
2015-01-03Removed duplicated declarations.Tatsuhiko Kubo
* `mrb_show_version()` * `mrb_show_copyright()`
2015-01-03Use sizeof() instead of strlen().Tatsuhiko Kubo
2015-01-03fixed error-handling for mrb_open().Tatsuhiko Kubo
When mrb_open() is called again, it is not checked.
2015-01-03Add fflush() (2)sdottaka
2015-01-01Remove redundant NULL checks for mrb_malloc().Tatsuhiko Kubo
2014-12-20mrdb: fix that break command cannot handle Windows pathssdottaka
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-19mrdb, mirb: Add fflush() so that a external program can read output immediately.sdottaka
2014-11-29closing to Local Scopemurase_syuka
2014-11-27adhoc fix for pass buildmurase_syuka
2014-11-26Merge pull request #2652 from cremno/mrdb-add-missing-null-terminationYukihiro "Matz" Matsumoto
mrdb: add missing null-termination
2014-11-26free memory used by breakpointscremno
2014-11-26free return value of dirname()cremno
2014-11-25Merge pull request #2644 from cremno/mrdb-minor-changesHiroshi Mimaki
mrdb: minor changes
2014-11-25add missing null-terminationcremno
2014-11-22use mrb_str_xxx_lit for mrdb.Tatsuhiko Kubo
2014-11-20remove const type qualifiercremno
clang 3.5.0 with -Wextra produces a -Wignored-qualifiers diagnostic.
2014-11-20don't convert function pointer to object pointercremno
2014-11-20remove castcremno
C99+TC3, 7.19.7.1p2: [...] the fgetc function obtains that character as an unsigned char converted to an int [...]
2014-11-20fix heap-use-after-freecremno
2014-11-18Add mruby debugger (mrdb)mimaki