diff --git a/gdb-port/parser-type-instrumentation-gdb.py b/gdb-port/parser-type-instrumentation-gdb.py
index 7532a255df20364b285282160b93329a620a4ee4..ee9b45b70315bb9243f91afde7aa8e3323ad8c5f 100644
--- a/gdb-port/parser-type-instrumentation-gdb.py
+++ b/gdb-port/parser-type-instrumentation-gdb.py
@@ -135,8 +135,8 @@ class BitsEnv(HParserEnv):
 	def __init__(self, parser, top_level_parse):
 		self.parser = parser
 
-		self.length =  gdb.parse_and_eval("((HBitsEnv *) parser->env)->length")
-		self.signedp =  gdb.parse_and_eval("((HBitsEnv *) parser->env)->signedp")
+		self.length =  gdb.parse_and_eval("((struct bits_env *) parser->env)->length")
+		self.signedp =  gdb.parse_and_eval("((struct bits_env *) parser->env)->signedp")
 		super().__init__(parser, top_level_parse)
 
 	def __str__(self):