Update pwndbg/commands/context.py

pull/1015/head
Disconnect3d 4 years ago
parent f2d0fc2a01
commit 9dac5d2371

@ -137,7 +137,7 @@ parser.add_argument("banner", type=str, nargs='?', default="both", help="Where a
parser.add_argument("width", type=int, nargs='?', default=None, help="Sets a fixed width (used for banner). Set to None for auto")
@pwndbg.commands.ArgparsedCommand(parser, aliases=['ctx-out'])
def contextoutput(section, path, clearing, banner="both", width=None):
if(width != None):
if width is not None:
width = int(width.cast(gdb.lookup_type('long')))
outputs[section] = path
output_settings[section] = dict(clearing=clearing,

Loading…
Cancel
Save