blob: 123e8232c98727c388409f931e4ba147c3696ee6 [file] [log] [blame]
Chris Lattner30fdc8d2010-06-08 16:52:24 +00001//===-- CommandObjectBreakpoint.h -------------------------------*- C++ -*-===//
2//
3// The LLVM Compiler Infrastructure
4//
5// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
7//
8//===----------------------------------------------------------------------===//
9
10#ifndef liblldb_CommandObjectBreakpoint_h_
11#define liblldb_CommandObjectBreakpoint_h_
12
13// C Includes
14// C++ Includes
15
16#include <utility>
17#include <vector>
18
19// Other libraries and framework includes
20// Project includes
21#include "lldb/Core/Address.h"
22#include "lldb/Interpreter/CommandObjectMultiword.h"
Jim Ingham40af72e2010-06-15 19:49:27 +000023#include "lldb/Interpreter/Options.h"
Chris Lattner30fdc8d2010-06-08 16:52:24 +000024#include "lldb/Core/STLUtils.h"
25
26namespace lldb_private {
27
28//-------------------------------------------------------------------------
29// CommandObjectMultiwordBreakpoint
30//-------------------------------------------------------------------------
31
32class CommandObjectMultiwordBreakpoint : public CommandObjectMultiword
33{
34public:
Greg Clayton66111032010-06-23 01:19:29 +000035 CommandObjectMultiwordBreakpoint (CommandInterpreter &interpreter);
Chris Lattner30fdc8d2010-06-08 16:52:24 +000036
Pavel Labath1fb7e202015-09-02 09:33:09 +000037 ~CommandObjectMultiwordBreakpoint() override;
Chris Lattner30fdc8d2010-06-08 16:52:24 +000038
39 static void
Jim Ingham5e09c8c2014-12-16 23:40:14 +000040 VerifyBreakpointOrLocationIDs (Args &args, Target *target, CommandReturnObject &result, BreakpointIDList *valid_ids)
41 {
42 VerifyIDs (args, target, true, result, valid_ids);
43 }
Chris Lattner30fdc8d2010-06-08 16:52:24 +000044
Jim Ingham5e09c8c2014-12-16 23:40:14 +000045 static void
46 VerifyBreakpointIDs (Args &args, Target *target, CommandReturnObject &result, BreakpointIDList *valid_ids)
47 {
48 VerifyIDs (args, target, false, result, valid_ids);
49 }
50
51private:
52 static void
53 VerifyIDs (Args &args, Target *target, bool allow_locations, CommandReturnObject &result, BreakpointIDList *valid_ids);
Chris Lattner30fdc8d2010-06-08 16:52:24 +000054};
55
Chris Lattner30fdc8d2010-06-08 16:52:24 +000056} // namespace lldb_private
57
Pavel Labath1fb7e202015-09-02 09:33:09 +000058#endif // liblldb_CommandObjectBreakpoint_h_