-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to generate a coredump when emulation hits a crash? #1858
Comments
Coredump is generated when a process exits abnormally, e.g. To save a "coredump", you may look at context API. |
Thanks for reply! |
uc_context will include both cpu registers and memory if you tweak it by uc_ctl api.
…________________________________
From: Boyu Chang ***@***.***>
Sent: Wednesday, August 2, 2023 9:56:26 AM
To: unicorn-engine/unicorn ***@***.***>
Cc: lazymio ***@***.***>; Comment ***@***.***>
Subject: Re: [unicorn-engine/unicorn] How to generate a coredump when emulation hits a crash? (Issue #1858)
Thanks for reply!
I found functions like uc_context_*, uc_mem_* and uc_reg_*. However, it seems that there is no single function aims to save all information. ( I'm not sure )
Maybe I should try to combine them.
―
Reply to this email directly, view it on GitHub<#1858 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AHJULO54XXW7HMWGLYI64IDXTGXUVANCNFSM6AAAAAA27URECY>.
You are receiving this because you commented.Message ID: ***@***.***>
|
Thanks for reply! I think this issue could be closed : ) |
Hi there,
Does unicorn support generate a coredump (to save memory data, registers, environment variables, etc.) when emulation hits a crash ( such as UC_ERR_READ_UNMAPPED) ? A coredump can automatically generates in normal linux system. I'm wondering if unicorn has already support the same feature, or one needs to implement such mechanism manually (in exit handler) ?
The text was updated successfully, but these errors were encountered: