pull/1161/head
disconnect3d 3 years ago committed by Disconnect3d
parent f322fae4a2
commit d2ba9955b5

@ -572,7 +572,7 @@ def context_disasm(target=sys.stdout, with_banner=True, width=None):
arch = pwndbg.gdblib.arch.current
emulate = bool(pwndbg.config.emulate)
info = ' / %s / set emulate %s' % (arch, 'on' if emulate else 'off')
info = " / %s / set emulate %s" % (arch, "on" if emulate else "off")
banner = [pwndbg.ui.banner("disasm", target=target, width=width, extra=info)]
result = pwndbg.commands.nearpc.nearpc(to_string=True, emulate=emulate, lines=code_lines // 2)

@ -38,7 +38,7 @@ def check_title_position():
title_position.revert_default()
def banner(title, target=sys.stdin, width=None, extra=''):
def banner(title, target=sys.stdin, width=None, extra=""):
title = title.upper()
if width is None: # auto width. In case of stdout, it's better to use stdin (b/c GdbOutputFile)
_height, width = get_window_size(target=target if target != sys.stdout else sys.stdin)

Loading…
Cancel
Save