diff options
author | Jason Molenda <jmolenda@apple.com> | 2011-11-09 08:03:56 +0000 |
---|---|---|
committer | Jason Molenda <jmolenda@apple.com> | 2011-11-09 08:03:56 +0000 |
commit | 3dc8583c96e249fba8884b9785ea02910f418f2b (patch) | |
tree | d9a80c29cd08a31e195243954dbbd0d1d023e958 /lldb/tools/debugserver/source/MacOSX/MachProcess.h | |
parent | 8c8a43105720bcc5eedd35efc490afc84c8fe668 (diff) | |
download | bcm5719-llvm-3dc8583c96e249fba8884b9785ea02910f418f2b.tar.gz bcm5719-llvm-3dc8583c96e249fba8884b9785ea02910f418f2b.zip |
Remove the QAddressIsExecutable packet I added last night.
Add a more general purpose qMemoryRegionInfo packet which can
describe various attributes about a memory region. Currently it
will return the start address, size, and permissions (read, write,
executable) for the memory region. It may be possible to add
additional attributes in the future such as whether the region is
designated as stack memory or jitted code a la vmmap.
I still haven't implemented the lldb side of the code to use this
packet yet so there may be unexpected behavior - but the basic implementation looks
about right. I'll hook it up to lldb soon and fix any problems that crop up.
llvm-svn: 144175
Diffstat (limited to 'lldb/tools/debugserver/source/MacOSX/MachProcess.h')
-rw-r--r-- | lldb/tools/debugserver/source/MacOSX/MachProcess.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/tools/debugserver/source/MacOSX/MachProcess.h b/lldb/tools/debugserver/source/MacOSX/MachProcess.h index b68fa7f49e2..732d50d69db 100644 --- a/lldb/tools/debugserver/source/MacOSX/MachProcess.h +++ b/lldb/tools/debugserver/source/MacOSX/MachProcess.h @@ -99,7 +99,7 @@ public: bool Detach (); nub_size_t ReadMemory (nub_addr_t addr, nub_size_t size, void *buf); nub_size_t WriteMemory (nub_addr_t addr, nub_size_t size, const void *buf); - bool IsAddressExecutable(nub_addr_t address); + int MemoryRegionInfo(nub_addr_t address, char *outbuf, nub_size_t outbufsize); //---------------------------------------------------------------------- // Path and arg accessors |