From 182c31a2085c89c722f188102603ce857696de11 Mon Sep 17 00:00:00 2001
From: Paul Sokolovsky <pfalcon@users.sourceforge.net>
Date: Thu, 27 Mar 2014 12:29:34 +0200
Subject: [PATCH] showbc: Add few bytecodes related to "with".

---
 py/showbc.c | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/py/showbc.c b/py/showbc.c
index eb743bd29..d4382de44 100644
--- a/py/showbc.c
+++ b/py/showbc.c
@@ -244,6 +244,15 @@ void mp_byte_code_print(const byte *ip, int len) {
                 printf("SETUP_LOOP " UINT_FMT, ip + unum - ip_start);
                 break;
 
+            case MP_BC_SETUP_WITH:
+                DECODE_ULABEL; // loop-like labels are always forward
+                printf("SETUP_WITH " UINT_FMT, ip + unum - ip_start);
+                break;
+
+            case MP_BC_WITH_CLEANUP:
+                printf("WITH_CLEANUP");
+                break;
+
             case MP_BC_UNWIND_JUMP:
                 DECODE_SLABEL;
                 printf("UNWIND_JUMP " UINT_FMT " %d", ip + unum - ip_start, *ip);
-- 
GitLab