Improve load_custom_structure message (#3474)

Fixes #3472. Makes the "Symbols are loaded!" message less confusing by
changing it to: "Loaded custom symbols! (from {path})" so that the user
can inspect what were the symbols loaded.
pull/3451/head^2
Disconnect3d 4 days ago committed by GitHub
parent a97aff4f1c
commit 7084a4321e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -289,7 +289,7 @@ def load_custom_structure(custom_structure_name: str, custom_structure_path: str
return # generate_debug_symbols prints on failures return # generate_debug_symbols prints on failures
pwndbg.dbg.selected_inferior().add_symbol_file(pwndbg_debug_symbols_output_file) pwndbg.dbg.selected_inferior().add_symbol_file(pwndbg_debug_symbols_output_file)
loaded_symbols[custom_structure_name] = pwndbg_debug_symbols_output_file loaded_symbols[custom_structure_name] = pwndbg_debug_symbols_output_file
print(message.success("Symbols are loaded!")) print(message.success(f"Loaded custom symbols! (from {custom_structure_path})"))
@OnlyWhenStructFileExists @OnlyWhenStructFileExists

Loading…
Cancel
Save