summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp
diff options
context:
space:
mode:
authorSean Callanan <scallanan@apple.com>2011-01-13 08:53:35 +0000
committerSean Callanan <scallanan@apple.com>2011-01-13 08:53:35 +0000
commit92adcac9ec01e0751db8d775b12ece52625b8804 (patch)
treeb4726e59e8eda9ef4cf12f228d23ab1fdb292919 /lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp
parent02cde7ffa49a637366e0d7f05122c582cc90d011 (diff)
downloadbcm5719-llvm-92adcac9ec01e0751db8d775b12ece52625b8804.tar.gz
bcm5719-llvm-92adcac9ec01e0751db8d775b12ece52625b8804.zip
Implemented a major overhaul of the way variables are handled
by LLDB. Instead of being materialized into the input structure passed to the expression, variables are left in place and pointers to them are materialzied into the structure. Variables not resident in memory (notably, registers) get temporary memory regions allocated for them. Persistent variables are the most complex part of this, because they are made in various ways and there are different expectations about their lifetime. Persistent variables now have flags indicating their status and what the expectations for longevity are. They can be marked as residing in target memory permanently -- this is the default for result variables from expressions entered on the command line and for explicitly declared persistent variables (but more on that below). Other result variables have their memory freed. Some major improvements resulting from this include being able to properly take the address of variables, better and cleaner support for functions that return references, and cleaner C++ support in general. One problem that remains is the problem of explicitly declared persistent variables; I have not yet implemented the code that makes references to them into indirect references, so currently materialization and dematerialization of these variables is broken. llvm-svn: 123371
Diffstat (limited to 'lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp')
-rw-r--r--lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp
index 07ee8d92e3a..5925812f7f3 100644
--- a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp
+++ b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp
@@ -859,7 +859,7 @@ GDBRemoteCommunication::DeallocateMemory (addr_t addr, uint32_t timeout_seconds)
StringExtractorGDBRemote response;
if (SendPacketAndWaitForResponse (packet, response, timeout_seconds, false))
{
- if (!response.IsOKPacket())
+ if (response.IsOKPacket())
return true;
}
return false;
OpenPOWER on IntegriCloud