Patches from Jean-Daniel:

One (stepout.patch) to fix a problem in ThreadPlanStepOut.cpp. There is an erroneous semi colon at end of an if statement that make the condition useless (if body is empty).

And the second patch is to remove to useless typedef on enum, and so avoid a lot of warnings with clang++.

llvm-svn: 124874
This commit is contained in:
Johnny Chen 2011-02-04 17:21:08 +00:00
parent 74c9ea6343
commit b0616a6f32
3 changed files with 3 additions and 3 deletions

View File

@ -544,7 +544,7 @@ public:
static size_t
ResolveUsername (const char *src_path, char *dst_path, size_t dst_len);
typedef enum EnumerateDirectoryResult
enum EnumerateDirectoryResult
{
eEnumerateDirectoryResultNext, // Enumerate next entry in the current directory
eEnumerateDirectoryResultEnter, // Recurse into the current entry if it is a directory or symlink, or next if not

View File

@ -30,7 +30,7 @@ class StackFrame :
public ExecutionContextScope
{
public:
typedef enum ExpressionPathOption
enum ExpressionPathOption
{
eExpressionPathOptionCheckPtrVsMember = (1u << 0),
eExpressionPathOptionsNoFragileObjcIvar = (1u << 1)

View File

@ -114,7 +114,7 @@ ThreadPlanStepOut::PlanExplainsStop ()
if (site_sp && site_sp->IsBreakpointAtThisSite (m_return_bp_id))
{
const uint32_t num_frames = m_thread.GetStackFrameCount();
if (m_stack_depth > num_frames);
if (m_stack_depth > num_frames)
SetPlanComplete();
// If there was only one owner, then we're done. But if we also hit some