From 66762058a9df47746fbb869b1c484f9ba832cc29 Mon Sep 17 00:00:00 2001 From: Phireh Date: Sat, 23 Sep 2023 22:03:40 +0200 Subject: [PATCH] fix: print correct length in DW_FORM_exprloc --- main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.cpp b/main.cpp index 13eb37a..750aed0 100644 --- a/main.cpp +++ b/main.cpp @@ -242,7 +242,7 @@ void parse_debuginfo_section(const void *file) p += decode_leb128((uint8_t*)p, &length); // TODO: save this data p += length; - fprintf(stdout, "(%d bytes data)\n"); + fprintf(stdout, "(%d bytes data)\n", length); } break; case DW_FORM_flag_present: {