diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2014-01-21 17:12:14 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2014-01-21 17:12:14 +0900 |
| commit | b3f8f8a5b0baffec17b0a9e7ef2fbace30f71b64 (patch) | |
| tree | c35f53d1641c19887c4538e0ac0ccd870dd294c3 | |
| parent | 4a12d351bbc8d0aa43847dbc693f4057b6aa2488 (diff) | |
| download | mruby-b3f8f8a5b0baffec17b0a9e7ef2fbace30f71b64.tar.gz mruby-b3f8f8a5b0baffec17b0a9e7ef2fbace30f71b64.zip | |
describe call stack overwritten problem of mrb_get_backtrace; close #1661
| -rw-r--r-- | src/backtrace.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/backtrace.c b/src/backtrace.c index 8edc27776..a221d5e5c 100644 --- a/src/backtrace.c +++ b/src/backtrace.c @@ -129,6 +129,13 @@ mrb_output_backtrace(mrb_state *mrb, struct RObject *exc, output_stream_func fun } } +/* mrb_print_backtrace/mrb_get_backtrace: + + function to retrieve backtrace information from the exception. + note that if you call method after the exception, call stack will be + overwritten. So invoke these functions just after detecting exceptions. +*/ + void mrb_print_backtrace(mrb_state *mrb) { |
