You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If an enclave is loaded with sgx_create_enclave_from_buffer_ex, then the sgx-gdb doesn't work. We get a Python exception every time the gdb extension script is called: Python Exception <class 'gdb.error'> No symbol table is loaded. Use the "file" command.:
It appears that retrieve_enclave_info assumes the enclave was loaded by file:
If an enclave is loaded from a buffer the debug_enclave_info_t object won't have lpFileName populated. Thus, the debugger extensions cannot load the symbols, and gdb gets quite sad.
The text was updated successfully, but these errors were encountered:
If the enclave is loaded via buffer, couldn't the gdb plugin gather the symbol information from the buffer itself? IIRC, the buffer is no different from an external file, in terms of contents. It's just loaded from memory instead of an external file. Thus, all the information needed to load symbols should still be there.
If an enclave is loaded with
sgx_create_enclave_from_buffer_ex
, then the sgx-gdb doesn't work. We get a Python exception every time the gdb extension script is called:Python Exception <class 'gdb.error'> No symbol table is loaded. Use the "file" command.:
It appears that
retrieve_enclave_info
assumes the enclave was loaded by file:linux-sgx/sdk/debugger_interface/linux/gdb-sgx-plugin/gdb_sgx_plugin.py
Line 355 in 5db5a81
If an enclave is loaded from a buffer the
debug_enclave_info_t
object won't havelpFileName
populated. Thus, the debugger extensions cannot load the symbols, and gdb gets quite sad.The text was updated successfully, but these errors were encountered: