hint users about libthread_db configuration if arena not found (#2868)

* hint users about libthreaddb configuration if arena is None

* gate the hint for gdb only
pull/2877/head
tesuji 8 months ago committed by GitHub
parent df0c4a7f8a
commit 2125864a2e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -144,6 +144,13 @@ def print_no_arena_found_error(tid=None) -> None:
f"No arena found for thread {message.hint(tid)} (the thread hasn't performed any allocations)."
)
)
if pwndbg.dbg.name() == pwndbg.dbg_mod.DebuggerType.GDB:
print(
message.hint(
"Use `set libthread-db-search-path <path>` if the path contains a compatible libthread_db.\n"
"Then rerun the program."
)
)
def print_no_tcache_bins_found_error(tid: int | None = None) -> None:

Loading…
Cancel
Save