summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2013-11-15 14:16:49 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2013-11-15 14:16:49 +0900
commit2bda9652585616b49449904aad0195d8b23e58a4 (patch)
treee1296722eb924d830dc159e764eec3710ec78eac /src
parent13c2d65b028f9fdc5eb5a038d4060af12a2eb80d (diff)
downloadmruby-2bda9652585616b49449904aad0195d8b23e58a4.tar.gz
mruby-2bda9652585616b49449904aad0195d8b23e58a4.zip
should output debug info for child ireps; close #1575
Diffstat (limited to 'src')
-rw-r--r--src/dump.c5
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);