From 4c95c6cb2d2b7d7acb86a7ba8afc3cf1e374fa58 Mon Sep 17 00:00:00 2001 From: pompolic <pompolic@special-circumstanc.es> Date: Tue, 9 May 2023 23:19:49 +0200 Subject: [PATCH] Remove some debug asserts --- gdb-port/parser.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/gdb-port/parser.py b/gdb-port/parser.py index 8951705..0d0e994 100644 --- a/gdb-port/parser.py +++ b/gdb-port/parser.py @@ -267,15 +267,11 @@ class ParserStack: # We assume that there is either a string of "push" events before current event, or ev_list only contains the current event # This is because if there were a "pop" event, it'd have triggered a commit already, moving self.committed up to its index - assert len(ev_list) > 0 # DEBUG - assert ev_list[-1] == current_event # DEBUG # The memory allocated in the "frame" enclosed by current_event and the push event just prior current_frame_alloc = current_event[1] - previous_event[1] #print("commit_at_pop: current_frame_alloc", current_frame_alloc) # DEBUG pop_allocs = {} - assert self.arena # DEBUG - # TODO: clean up if len(ev_list) == 1: # Compare bytes allocated in arena to last known value, which will be the additional bytes allocated since reentering the stack frame @@ -291,7 +287,6 @@ class ParserStack: differences = map(lambda smaller, bigger: bigger-smaller, bytes_list[:-1], bytes_list[1:]) for index, event in enumerate(ev_list[:-1]): alloc = next(differences) - assert event != current_event #print("commit_at_pop: alloc:", alloc) # DEBUG #print("commit_at_pop: adding to parser", event[2].name, hex(event[2].address)) #event[2].add_mem_use(int(self.arena), alloc) -- GitLab