mirror of
https://github.com/intel/llvm.git
synced 2026-01-16 05:32:28 +08:00
Chnage VerifyWatchpointIDs() from a static function to a class function to be called from other source files.
llvm-svn: 158751
This commit is contained in:
@@ -101,8 +101,8 @@ WithRSAIndex(llvm::StringRef &Arg)
|
||||
|
||||
// Return true if wp_ids is successfully populated with the watch ids.
|
||||
// False otherwise.
|
||||
static bool
|
||||
VerifyWatchpointIDs(Args &args, std::vector<uint32_t> &wp_ids)
|
||||
bool
|
||||
CommandObjectMultiwordWatchpoint::VerifyWatchpointIDs(Args &args, std::vector<uint32_t> &wp_ids)
|
||||
{
|
||||
// Pre-condition: args.GetArgumentCount() > 0.
|
||||
assert(args.GetArgumentCount() > 0);
|
||||
@@ -306,7 +306,7 @@ protected:
|
||||
{
|
||||
// Particular watchpoints selected; enable them.
|
||||
std::vector<uint32_t> wp_ids;
|
||||
if (!VerifyWatchpointIDs(command, wp_ids))
|
||||
if (!CommandObjectMultiwordWatchpoint::VerifyWatchpointIDs(command, wp_ids))
|
||||
{
|
||||
result.AppendError("Invalid watchpoints specification.");
|
||||
result.SetStatus(eReturnStatusFailed);
|
||||
@@ -406,7 +406,7 @@ protected:
|
||||
{
|
||||
// Particular watchpoints selected; enable them.
|
||||
std::vector<uint32_t> wp_ids;
|
||||
if (!VerifyWatchpointIDs(command, wp_ids))
|
||||
if (!CommandObjectMultiwordWatchpoint::VerifyWatchpointIDs(command, wp_ids))
|
||||
{
|
||||
result.AppendError("Invalid watchpoints specification.");
|
||||
result.SetStatus(eReturnStatusFailed);
|
||||
@@ -491,7 +491,7 @@ protected:
|
||||
{
|
||||
// Particular watchpoints selected; disable them.
|
||||
std::vector<uint32_t> wp_ids;
|
||||
if (!VerifyWatchpointIDs(command, wp_ids))
|
||||
if (!CommandObjectMultiwordWatchpoint::VerifyWatchpointIDs(command, wp_ids))
|
||||
{
|
||||
result.AppendError("Invalid watchpoints specification.");
|
||||
result.SetStatus(eReturnStatusFailed);
|
||||
@@ -574,7 +574,7 @@ protected:
|
||||
{
|
||||
// Particular watchpoints selected; delete them.
|
||||
std::vector<uint32_t> wp_ids;
|
||||
if (!VerifyWatchpointIDs(command, wp_ids))
|
||||
if (!CommandObjectMultiwordWatchpoint::VerifyWatchpointIDs(command, wp_ids))
|
||||
{
|
||||
result.AppendError("Invalid watchpoints specification.");
|
||||
result.SetStatus(eReturnStatusFailed);
|
||||
@@ -715,7 +715,7 @@ protected:
|
||||
{
|
||||
// Particular watchpoints selected; ignore them.
|
||||
std::vector<uint32_t> wp_ids;
|
||||
if (!VerifyWatchpointIDs(command, wp_ids))
|
||||
if (!CommandObjectMultiwordWatchpoint::VerifyWatchpointIDs(command, wp_ids))
|
||||
{
|
||||
result.AppendError("Invalid watchpoints specification.");
|
||||
result.SetStatus(eReturnStatusFailed);
|
||||
@@ -872,7 +872,7 @@ protected:
|
||||
{
|
||||
// Particular watchpoints selected; set condition on them.
|
||||
std::vector<uint32_t> wp_ids;
|
||||
if (!VerifyWatchpointIDs(command, wp_ids))
|
||||
if (!CommandObjectMultiwordWatchpoint::VerifyWatchpointIDs(command, wp_ids))
|
||||
{
|
||||
result.AppendError("Invalid watchpoints specification.");
|
||||
result.SetStatus(eReturnStatusFailed);
|
||||
|
||||
@@ -32,6 +32,10 @@ public:
|
||||
|
||||
virtual
|
||||
~CommandObjectMultiwordWatchpoint ();
|
||||
|
||||
static bool
|
||||
VerifyWatchpointIDs(Args &args, std::vector<uint32_t> &wp_ids);
|
||||
|
||||
};
|
||||
|
||||
} // namespace lldb_private
|
||||
|
||||
Reference in New Issue
Block a user