[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdeextragear-1/amarok/src/amarokcore
From:       Max Howell <max.howell () methylblue ! com>
Date:       2005-02-14 15:21:24
Message-ID: 20050214152124.987D01BBBB () office ! kde ! org
[Download RAW message or body]

CVS commit by mhowell: 

Man, my regexp skills suck
CCMAIL:amarok-devel@lists.sf.net


  M +5 -3      crashhandler.cpp   1.16


--- kdeextragear-1/amarok/src/amarokcore/crashhandler.cpp  #1.15:1.16
@@ -100,4 +100,6 @@ namespace amaroK
                     "bt\n"
                     "echo \\n\\n\n"
+                    "bt full\n"
+                    "echo \\n\\n\n"
                     "echo ==== (gdb) thread apply all bt ====\\n\n"
                     "thread apply all bt\n";
@@ -119,5 +121,5 @@ namespace amaroK
 
             /// clean up
-            bt.remove( QRegExp("(\\(no debugging symbols found\\)\\.\\.\\.)+\n") );
+            bt.remove( "(no debugging symbols found)..." );
             bt.stripWhiteSpace();
 
@@ -125,5 +127,5 @@ namespace amaroK
             const QString fileCommandOutput = runCommand( "file `which amarokapp`" );
 
-            if( fileCommandOutput.findRev( "not stripped", false ) >= 0 )
+            if( fileCommandOutput.findRev( "not stripped", false ) < 0 )
                 subject += " [stripped]";
 
@@ -138,5 +140,5 @@ namespace amaroK
                     subject += " [short]";
 
-                if( bt.contains( QRegExp("at \\w*\\.cpp:\\d+") ) >= 0 )
+                if( bt.contains( QRegExp("at \\w*\\.cpp:\\d+\n") ) >= 0 )
                     subject += " [good]";
             }


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic