Re: [lldb-dev] Accessing only specific words in guest memory

2018-06-21 Thread Jim Ingham via lldb-dev
>> >> Andrew >> >> From: jing...@apple.com on behalf of Jim Ingham >> >> Sent: Thursday, June 21, 2018 11:32:03 AM >> To: Andrew Baumann >> Cc: lldb-dev@lists.llvm.org >> Subject: Re: [lldb-dev] Accessing only specific words in guest

Re: [lldb-dev] Accessing only specific words in guest memory

2018-06-21 Thread Jim Ingham via lldb-dev
; regardless of how small I set it. > > Andrew > > From: jing...@apple.com on behalf of Jim Ingham > > Sent: Thursday, June 21, 2018 11:32:03 AM > To: Andrew Baumann > Cc: lldb-dev@lists.llvm.org > Subject: Re: [lldb-dev] Accessing only specific words in guest memo

Re: [lldb-dev] Accessing only specific words in guest memory

2018-06-21 Thread Andrew Baumann via lldb-dev
behalf of Jim Ingham Sent: Thursday, June 21, 2018 11:32:03 AM To: Andrew Baumann Cc: lldb-dev@lists.llvm.org Subject: Re: [lldb-dev] Accessing only specific words in guest memory By default, lldb uses a memory cache to avoid making lots of tiny memory requests, which tends to be inefficient

Re: [lldb-dev] Accessing only specific words in guest memory

2018-06-21 Thread Jim Ingham via lldb-dev
By default, lldb uses a memory cache to avoid making lots of tiny memory requests, which tends to be inefficient especially when talking to a remote device. You can turn this off with the "target.process.disable-memory-cache" setting. You can also adjust the cache page size with "target.proce

[lldb-dev] Accessing only specific words in guest memory

2018-06-21 Thread Andrew Baumann via lldb-dev
Hi, I’m trying to use lldb 6.0 on Linux to debug a process that has an SGX enclave inside it. One of the data structures there (the “TCS”) only permits access to certain fields. The problem is that when I try to access those fields in LLDB, it tries to read an entire page of memory from the gue