diff options
Diffstat (limited to 'drkonqi')
-rw-r--r-- | drkonqi/backtrace.cpp | 28 | ||||
-rw-r--r-- | drkonqi/debugger.cpp | 4 | ||||
-rw-r--r-- | drkonqi/krashconf.cpp | 4 | ||||
-rw-r--r-- | drkonqi/krashconf.h | 10 |
4 files changed, 23 insertions, 23 deletions
diff --git a/drkonqi/backtrace.cpp b/drkonqi/backtrace.cpp index b0c3abdb2..c87384d1f 100644 --- a/drkonqi/backtrace.cpp +++ b/drkonqi/backtrace.cpp @@ -238,12 +238,12 @@ bool BackTrace::usefulBacktrace() // remove stack frames added because of TDECrash void BackTrace::processBacktrace() { - if( !m_krashconf->kcrashRegExp().isEmpty()) { - TQRegExp kcrashregexp( m_krashconf->kcrashRegExp()); - kcrashregexp.setMinimal(true); + if( !m_krashconf->tdecrashRegExp().isEmpty()) { + TQRegExp tdecrashregexp( m_krashconf->tdecrashRegExp()); + tdecrashregexp.setMinimal(true); int pos = 0; int prevpos = 0; - while ((pos = kcrashregexp.search( m_strBt, pos )) >= 0) { + while ((pos = tdecrashregexp.search( m_strBt, pos )) >= 0) { if (prevpos == pos) { // Avoid infinite loop // Shouldn't ever get here, but given that this is a crash handler, better safe than sorry! @@ -251,15 +251,15 @@ void BackTrace::processBacktrace() } prevpos = pos; if( pos >= 0 ) { - int len = kcrashregexp.matchedLength(); + int len = tdecrashregexp.matchedLength(); int nextinfochunkpos = m_strBt.find("====", pos); if (nextinfochunkpos >= 0) { // Trying to delete too much! int limitedlen = nextinfochunkpos - pos; TQString limitedstrBt = m_strBt.mid(pos, limitedlen); - int limitedpos = kcrashregexp.search( limitedstrBt ); + int limitedpos = tdecrashregexp.search( limitedstrBt ); if (limitedpos >= 0) { - len = kcrashregexp.matchedLength(); + len = tdecrashregexp.matchedLength(); } else { len = 0; @@ -287,11 +287,11 @@ void BackTrace::processBacktrace() } } } - if( !m_krashconf->kcrashRegExpSingle().isEmpty()) { - TQRegExp kcrashregexp( m_krashconf->kcrashRegExpSingle()); - int pos = kcrashregexp.search( m_strBt ); + if( !m_krashconf->tdecrashRegExpSingle().isEmpty()) { + TQRegExp tdecrashregexp( m_krashconf->tdecrashRegExpSingle()); + int pos = tdecrashregexp.search( m_strBt ); if( pos >= 0 ) { - int len = kcrashregexp.matchedLength(); + int len = tdecrashregexp.matchedLength(); if( m_strBt[ pos ] == '\n' ) { ++pos; --len; @@ -381,10 +381,10 @@ void BackTrace::processBacktrace() { // Clean up hard to read debug blocks - TQRegExp kcrashregexp( "[^\n]\n==== "); - kcrashregexp.setMinimal(true); + TQRegExp tdecrashregexp( "[^\n]\n==== "); + tdecrashregexp.setMinimal(true); int pos = 0; - while ((pos = kcrashregexp.search( m_strBt, pos )) >= 0) { + while ((pos = tdecrashregexp.search( m_strBt, pos )) >= 0) { m_strBt.insert(pos+1, "\n"); } } diff --git a/drkonqi/debugger.cpp b/drkonqi/debugger.cpp index 2de6fb3f8..fa959b4cc 100644 --- a/drkonqi/debugger.cpp +++ b/drkonqi/debugger.cpp @@ -95,7 +95,7 @@ void KrashDebugger :: slotSave() { if (m_krashconf->safeMode()) { - KTempFile tf(TQString::fromAscii("/tmp/"), TQString::fromAscii(".kcrash"), 0600); + KTempFile tf(TQString::fromAscii("/tmp/"), TQString::fromAscii(".tdecrash"), 0600); if (!tf.status()) { *tf.textStream() << m_backtrace->text(); @@ -109,7 +109,7 @@ void KrashDebugger :: slotSave() } else { - TQString defname = m_krashconf->execName() + TQString::fromLatin1( ".kcrash" ); + TQString defname = m_krashconf->execName() + TQString::fromLatin1( ".tdecrash" ); if( defname.contains( '/' )) defname = defname.mid( defname.findRev( '/' ) + 1 ); TQString filename = KFileDialog::getSaveFileName(defname, TQString::null, this, i18n("Select Filename")); diff --git a/drkonqi/krashconf.cpp b/drkonqi/krashconf.cpp index 12c8064e0..384ac76d0 100644 --- a/drkonqi/krashconf.cpp +++ b/drkonqi/krashconf.cpp @@ -110,8 +110,8 @@ void KrashConfig :: readConfig() m_invalidStackFrameRegExp = debuggers.readEntry("InvalidStackFrameRegExp"); m_frameRegExp = debuggers.readEntry("FrameRegExp"); m_neededInValidBacktraceRegExp = debuggers.readEntry("NeededInValidBacktraceRegExp"); - m_kcrashRegExp = debuggers.readEntry("TDECrashRegExp"); - m_kcrashRegExpSingle = debuggers.readEntry("TDECrashRegExpSingle"); + m_tdecrashRegExp = debuggers.readEntry("TDECrashRegExp"); + m_tdecrashRegExpSingle = debuggers.readEntry("TDECrashRegExpSingle"); m_threadRegExp = debuggers.readEntry("ThreadRegExp"); m_infoSharedLibraryHeader = debuggers.readEntry("InfoSharedLibraryHeader"); diff --git a/drkonqi/krashconf.h b/drkonqi/krashconf.h index be823cba1..409ca51b1 100644 --- a/drkonqi/krashconf.h +++ b/drkonqi/krashconf.h @@ -1,5 +1,5 @@ /***************************************************************** - * drkonqi - The KDE Crash Handler + * drkonqi - The TDE Crash Handler * * Copyright (C) 2000-2003 Hans Petter Bieker <bieker@kde.org> * @@ -65,8 +65,8 @@ public: TQString invalidStackFrameRegExp() const { return m_invalidStackFrameRegExp; } TQString frameRegExp() const { return m_frameRegExp; } TQString neededInValidBacktraceRegExp() const { return m_neededInValidBacktraceRegExp; } - TQString kcrashRegExp() const { return m_kcrashRegExp; } - TQString kcrashRegExpSingle() const { return m_kcrashRegExpSingle; } + TQString tdecrashRegExp() const { return m_tdecrashRegExp; } + TQString tdecrashRegExpSingle() const { return m_tdecrashRegExpSingle; } TQString threadRegExp() const { return m_threadRegExp; } TQString infoSharedLibraryHeader() const { return m_infoSharedLibraryHeader; } bool showBacktrace() const { return m_showbacktrace; }; @@ -110,8 +110,8 @@ private: TQString m_invalidStackFrameRegExp; TQString m_frameRegExp; TQString m_neededInValidBacktraceRegExp; - TQString m_kcrashRegExp; - TQString m_kcrashRegExpSingle; + TQString m_tdecrashRegExp; + TQString m_tdecrashRegExpSingle; TQString m_threadRegExp; TQString m_infoSharedLibraryHeader; }; |