(self, filename, address)
| 138 | self.bt = [] |
| 139 | |
| 140 | def addFrame(self, filename, address): |
| 141 | # If libc was able to determine the symbols names, the filename |
| 142 | # argument will be of the form <filename>(<function>+<offset>) |
| 143 | # So, strip off anything after the last '(' |
| 144 | idx = filename.rfind('(') |
| 145 | if idx >= 0: |
| 146 | filename = filename[:idx] |
| 147 | |
| 148 | addr = get_address(filename, address) |
| 149 | self.bt.append(addr) |
| 150 | |
| 151 | def write(self, f, options): |
| 152 | f.write(self.header) |
no test coverage detected