diff --git a/gdb-port/top-level-parse.py b/gdb-port/top-level-parse.py
index ab973413e7fb8fa0101f341ebdb8e9d1d2bc4cf4..0ec68aaf01ad59b27d5a528c779230c99c078fa7 100644
--- a/gdb-port/top-level-parse.py
+++ b/gdb-port/top-level-parse.py
@@ -468,6 +468,7 @@ class TopLevelParse:
 		end = self.input_token_map[int(addr)]['end']
 		i = 0
 		printing_tokens = [token]
+		self.printing_index = 0
 		while i < len(printing_tokens):
 			tk = printing_tokens[i]
 			if tk.token_type == HParsedToken.TT_SEQUENCE: