diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2013-11-15 14:16:49 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2013-11-15 14:16:49 +0900 |
| commit | 2bda9652585616b49449904aad0195d8b23e58a4 (patch) | |
| tree | e1296722eb924d830dc159e764eec3710ec78eac /src/dump.c | |
| parent | 13c2d65b028f9fdc5eb5a038d4060af12a2eb80d (diff) | |
| download | mruby-2bda9652585616b49449904aad0195d8b23e58a4.tar.gz mruby-2bda9652585616b49449904aad0195d8b23e58a4.zip | |
should output debug info for child ireps; close #1575
Diffstat (limited to 'src/dump.c')
| -rw-r--r-- | src/dump.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/dump.c b/src/dump.c index 6ecc6085a..77555f8ee 100644 --- a/src/dump.c +++ b/src/dump.c @@ -616,6 +616,11 @@ write_section_debug(mrb_state *mrb, mrb_irep *irep, uint8_t *cur) dlen = write_debug_record(mrb, irep, cur, filenames, filenames_len); cur += dlen; section_size += dlen; + for (i=0; i<irep->rlen; i++) { + dlen = write_debug_record(mrb, irep->reps[i], cur, filenames, filenames_len); + cur += dlen; + section_size += dlen; + } memcpy(header->section_identify, RITE_SECTION_DEBUG_IDENTIFIER, sizeof(header->section_identify)); uint32_to_bin(section_size, header->section_size); |
