aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
diff options
context:
space:
mode:
authorJohnny Chen <johnny.chen@apple.com>2011-10-14 00:42:25 +0000
committerJohnny Chen <johnny.chen@apple.com>2011-10-14 00:42:25 +0000
commit01a678603a0d39a52eff956b5eb5a83ccb7a9fa3 (patch)
tree093d868ffa0030e5ba0e2072501cfd068766826e /lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
parenteafa9d50c2be7900d3cab2079123f1e91a54bcbd (diff)
downloadllvm-01a678603a0d39a52eff956b5eb5a83ccb7a9fa3.zip
llvm-01a678603a0d39a52eff956b5eb5a83ccb7a9fa3.tar.gz
llvm-01a678603a0d39a52eff956b5eb5a83ccb7a9fa3.tar.bz2
SBValue::Watch() and SBValue::WatchPointee() are now the official API for creating
a watchpoint for either the variable encapsulated by SBValue (Watch) or the pointee encapsulated by SBValue (WatchPointee). Removed SBFrame::WatchValue() and SBFrame::WatchLocation() API as a result of that. Modified the watchpoint related test suite to reflect the change. Plus replacing WatchpointLocation with Watchpoint throughout the code base. There are still cleanups to be dome. This patch passes the whole test suite. Check it in so that we aggressively catch regressions. llvm-svn: 141925
Diffstat (limited to 'lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp')
-rw-r--r--lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp b/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
index beed1f2..e1f86a6 100644
--- a/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
+++ b/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
@@ -22,7 +22,7 @@
// Other libraries and framework includes
-#include "lldb/Breakpoint/WatchpointLocation.h"
+#include "lldb/Breakpoint/Watchpoint.h"
#include "lldb/Interpreter/Args.h"
#include "lldb/Core/ArchSpec.h"
#include "lldb/Core/Debugger.h"
@@ -1900,7 +1900,7 @@ ProcessGDBRemote::DisableBreakpoint (BreakpointSite *bp_site)
// Pre-requisite: wp != NULL.
static GDBStoppointType
-GetGDBStoppointType (WatchpointLocation *wp)
+GetGDBStoppointType (Watchpoint *wp)
{
assert(wp);
bool watch_read = wp->WatchpointRead();
@@ -1917,7 +1917,7 @@ GetGDBStoppointType (WatchpointLocation *wp)
}
Error
-ProcessGDBRemote::EnableWatchpoint (WatchpointLocation *wp)
+ProcessGDBRemote::EnableWatchpoint (Watchpoint *wp)
{
Error error;
if (wp)
@@ -1951,7 +1951,7 @@ ProcessGDBRemote::EnableWatchpoint (WatchpointLocation *wp)
}
else
{
- error.SetErrorString("Watchpoint location argument was NULL.");
+ error.SetErrorString("Watchpoint argument was NULL.");
}
if (error.Success())
error.SetErrorToGenericError();
@@ -1959,7 +1959,7 @@ ProcessGDBRemote::EnableWatchpoint (WatchpointLocation *wp)
}
Error
-ProcessGDBRemote::DisableWatchpoint (WatchpointLocation *wp)
+ProcessGDBRemote::DisableWatchpoint (Watchpoint *wp)
{
Error error;
if (wp)
@@ -1995,7 +1995,7 @@ ProcessGDBRemote::DisableWatchpoint (WatchpointLocation *wp)
}
else
{
- error.SetErrorString("Watchpoint location argument was NULL.");
+ error.SetErrorString("Watchpoint argument was NULL.");
}
if (error.Success())
error.SetErrorToGenericError();