diff --git a/gdb-port/parser.py b/gdb-port/parser.py index 89517051a0710171c7b868addc2ce02bbe98115d..0d0e9941a729a981f692ecb01614b803703e5d01 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)