This patch makes pdump's output about debug segment more consistent:
before patch:
BYTECODE_/tmp/t.pir_DB => [ # offs ..., size 33, ... mappings => [
after patch:
BYTECODE_/tmp/t.pir_DB => [ # offs ..., size 33, ...
mappings => [
$ diffstat /tmp/packfile.patch
packfile.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
Index: src/packfile.c
===================================================================
--- src/packfile.c £¨ÐÞ¶©°æ 16236£©
+++ src/packfile.c £¨¹¤×÷¿½±´£©
@@ -2187,7 +2187,7 @@
default_dump_header(interp, self);
- PIO_printf(interp, "mappings => [\n");
+ PIO_printf(interp, "\n mappings => [\n");
for (i = 0; i < debug->num_mappings; i++) {
PIO_printf(interp, " #%d\n [\n", i);
PIO_printf(interp, " OFFSET => %d,\n",
@@ -2211,7 +2211,7 @@
}
PIO_printf(interp, " ],\n");
}
- PIO_printf(interp, "]\n");
+ PIO_printf(interp, " ]\n");
j = self->data ? 0: self->file_offset + 4;
if (j % 8)