Ignore:
Timestamp:
Jul 9, 2020, 8:51:43 AM (4 years ago)
Author:
coas-nagasima
Message:

mrubyを2.1.1に更新

Location:
EcnlProtoTool/trunk/mruby-2.1.1
Files:
1 edited
1 moved

Legend:

Unmodified
Added
Removed
  • EcnlProtoTool/trunk/mruby-2.1.1/mrbgems/mruby-bin-debugger/tools/mrdb/apiprint.c

    r331 r439  
    2222  c->no_exec = TRUE;
    2323  c->capture_errors = TRUE;
    24   c->filename = (char*)dbg->prvfile;
     24  mrbc_filename(mrb, c, (const char*)dbg->prvfile);
    2525  c->lineno = dbg->prvline;
    2626
     
    3232
    3333mrb_value
    34 mrb_debug_eval(mrb_state *mrb, mrb_debug_context *dbg, const char *expr, size_t len, mrb_bool *exc)
     34mrb_debug_eval(mrb_state *mrb, mrb_debug_context *dbg, const char *expr, size_t len, mrb_bool *exc, int direct_eval)
    3535{
    36   void (*tmp)(struct mrb_state *, struct mrb_irep *, mrb_code *, mrb_value *);
     36  void (*tmp)(struct mrb_state *, struct mrb_irep *, const mrb_code *, mrb_value *);
    3737  mrb_value ruby_code;
    3838  mrb_value s;
     
    4848    v = mrb_obj_value(mrb->exc);
    4949    mrb->exc = 0;
     50  }
     51  else if (direct_eval) {
     52    recv = dbg->regs[0];
     53
     54    v = mrb_funcall(mrb, recv, expr, 0);
    5055  }
    5156  else {
     
    7075  }
    7176
    72   s = mrb_funcall(mrb, v, "inspect", 0);
     77  s = mrb_inspect(mrb, v);
    7378
    7479  /* enable code_fetch_hook */
Note: See TracChangeset for help on using the changeset viewer.