def dump_debug_info(self, f=sys.stdout, prefix=None):
    debug_info = self.get_debug_info()
    if prefix:
        f.write(prefix)
    if debug_info:
        f.write(('debug info @ %#8.8x:\n' % debug_info.get_offset()))
        debug_info.dump_debug_info(f=f, prefix=prefix)
        f.write('\n')
    else:
        f.write('no debug info\n')
def dump_debug_info(self, f=sys.stdout, prefix=None):
    debug_info = self.get_debug_info()
    if prefix:
        f.write(prefix)
    if debug_info:
        f.write(('debug info @ %#8.8x:\n' % debug_info.get_offset()))
        debug_info.dump_debug_info(f=f, prefix=prefix)
        f.write('\n')
    else:
        f.write('no debug info\n')