This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Example Invocation: | |
# | |
# gcc test.c -o test -g | |
# TRACE_FUNCTIONS=fib TRACE_FILE=log gdb -x gdb_trace.py test | |
# cat log | |
# | |
# Log File Format: | |
# | |
# ('call', Parent Call ID, Call ID, Breakpoint Name, Symbol Name, Arguments) | |
# ('return', Call Id, Breakpoint Name, Return Value) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
>>> class A(object): | |
... blah = [] | |
... def hmm(self): | |
... self.blah.append("hmm") | |
... | |
>>> test = A() | |
>>> test.hmm() | |
>>> test.blah | |
['hmm'] | |
>>> test2 = A() |