[Bug 28729] New: lldb python failed to get watchpoint type

Bug ID 28729
Summary lldb python failed to get watchpoint type
Product lldb
Version unspecified
Hardware All
OS All
Status NEW
Severity normal
Priority P
Component All Bugs
Assignee lldb-dev@lists.llvm.org
Reporter pianoboysai@gmail.com
CC llvm-bugs@lists.llvm.org
Classification Unclassified

no method could get watchpoint type(read/write/rw)

for idx in xrange(self.target.GetNumWatchpoints()):
    lldbwp = self.target.GetWatchpointAtIndex(idx)
    print lldbwp.GetCondition() #always print None

Greg Clayton changed bug 28729

What Removed Added
CC clayborg@gmail.com
Resolution INVALID

Comment # 1 on bug 28729 from Greg Clayton

This function:

    const char *
    SBWatchpoint::GetCondition ();

Gets the condition text, it doesn't tell you the watchpoint type.