equal
deleted
inserted
replaced
69 void CMemSpyCommandLine::PerformOpL(const CCommandLineArguments& aCommandLine) |
69 void CMemSpyCommandLine::PerformOpL(const CCommandLineArguments& aCommandLine) |
70 { |
70 { |
71 const TInt count = aCommandLine.Count(); |
71 const TInt count = aCommandLine.Count(); |
72 TRACE( RDebug::Printf( "[MemSpyCmdLine] CMemSpyCommandLine::PerformOpL() - START - arg count: %d, this: 0x%08x", count, this ) ); |
72 TRACE( RDebug::Printf( "[MemSpyCmdLine] CMemSpyCommandLine::PerformOpL() - START - arg count: %d, this: 0x%08x", count, this ) ); |
73 |
73 |
74 if (count >= 1) |
74 if (count > 1) |
75 { |
75 { |
76 // Get main command |
76 // Get main command |
77 TBuf<KMemSpyCommandLineMaxLength> command; |
77 TBuf<KMemSpyCommandLineMaxLength> command; |
78 command.Copy(aCommandLine.Arg(1)); |
78 command.Copy(aCommandLine.Arg(1)); |
79 command.UpperCase(); |
79 command.UpperCase(); |
89 // Perform op |
89 // Perform op |
90 PerformSingleOpL(command, *args); |
90 PerformSingleOpL(command, *args); |
91 |
91 |
92 // Tidy up |
92 // Tidy up |
93 CleanupStack::PopAndDestroy(args); |
93 CleanupStack::PopAndDestroy(args); |
|
94 } |
|
95 else if ( count == 1 ) |
|
96 { |
|
97 TRACE( RDebug::Printf( "[MemSpyCmdLine] CMemSpyCommandLine::PerformOpL() - nno commands and parameters set" ) ); |
94 } |
98 } |
95 else |
99 else |
96 { |
100 { |
97 User::Leave(KErrUnderflow); |
101 User::Leave(KErrUnderflow); |
98 } |
102 } |