llvm-project/lldb/source/Host/common/NativeWatchpointList.cpp
Zachary Turner 97206d5727 Rename Error -> Status.
This renames the LLDB error class to Status, as discussed
on the lldb-dev mailing list.

A change of this magnitude cannot easily be done without
find and replace, but that has potential to catch unwanted
occurrences of common strings such as "Error".  Every effort
was made to find all the obvious things such as the word "Error"
appearing in a string, etc, but it's possible there are still
some lingering occurences left around.  Hopefully nothing too
serious.

llvm-svn: 302872
2017-05-12 04:51:55 +00:00

32 lines
913 B
C++

//===-- NativeWatchpointList.cpp --------------------------------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
#include "lldb/Host/common/NativeWatchpointList.h"
#include "lldb/Utility/Log.h"
using namespace lldb;
using namespace lldb_private;
Status NativeWatchpointList::Add(addr_t addr, size_t size, uint32_t watch_flags,
bool hardware) {
m_watchpoints[addr] = {addr, size, watch_flags, hardware};
return Status();
}
Status NativeWatchpointList::Remove(addr_t addr) {
m_watchpoints.erase(addr);
return Status();
}
const NativeWatchpointList::WatchpointMap &
NativeWatchpointList::GetWatchpointMap() const {
return m_watchpoints;
}