[Lldb-commits] [lldb] r281804 - Fix boolean logic error in BreakpointID.
Zachary Turner via lldb-commits
lldb-commits at lists.llvm.org
Fri Sep 16 19:34:41 PDT 2016
Author: zturner
Date: Fri Sep 16 21:34:40 2016
New Revision: 281804
URL: http://llvm.org/viewvc/llvm-project?rev=281804&view=rev
Log:
Fix boolean logic error in BreakpointID.
Modified:
lldb/trunk/source/Breakpoint/BreakpointID.cpp
Modified: lldb/trunk/source/Breakpoint/BreakpointID.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Breakpoint/BreakpointID.cpp?rev=281804&r1=281803&r2=281804&view=diff
==============================================================================
--- lldb/trunk/source/Breakpoint/BreakpointID.cpp (original)
+++ lldb/trunk/source/Breakpoint/BreakpointID.cpp Fri Sep 16 21:34:40 2016
@@ -113,7 +113,7 @@ bool BreakpointID::StringIsBreakpointNam
return false;
// First character must be a letter or _
- if (!isalpha(str[0]) || str[0] != '_')
+ if (!isalpha(str[0]) && str[0] != '_')
return false;
// Cannot contain ., -, or space.
More information about the lldb-commits
mailing list