Fix configfile

pull/1574/head
Gulshan Singh 3 years ago
parent afa96abfa0
commit db0ab81bb8

@ -150,9 +150,15 @@ def configfile_print_scope(scope, show_all=False) -> None:
if not show_all:
print(hint("Showing only changed values:"))
for p in params:
native_default = pwndbg.gdblib.config_mod.Parameter._value_to_gdb_native(
p.default, param_class=p.param_class
)
native_value = pwndbg.gdblib.config_mod.Parameter._value_to_gdb_native(
p.value, param_class=p.param_class
)
print("# %s: %s" % (p.name, p.set_show_doc))
print("# default: %s" % p.native_default)
print("set %s %s" % (p.name, p.native_value))
print("# default: %s" % native_default)
print("set %s %s" % (p.name, native_value))
print()
else:
print(hint("No changed values. To see current values use `%s`." % scope))

Loading…
Cancel
Save