By Replacing line `if len(history_commands > 1):` to `if
len(history_commands) > 1:` in pwndbg/commands/version.py line 165
pull/1468/head
Eleanor 3 years ago committed by GitHub
parent 768cb04257
commit a4e8b2a028
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -162,7 +162,7 @@ If it is somehow unavailable, use:
history_commands = gdb.execute("show commands", to_string=True)
if history_commands:
history_commands = history_commands.split("\n")
if len(history_commands > 1):
if len(history_commands) > 1:
# The last element of the list is the `show commands` command we
# just ran, so we need to get the second to last one
last_command = history_commands[-2]

Loading…
Cancel
Save