You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
83 lines
2.6 KiB
83 lines
2.6 KiB
/* |
|
* Copyright (C) 2012 Webdoc SA |
|
* |
|
* This file is part of Open-Sankoré. |
|
* |
|
* Open-Sankoré is free software; you can redistribute it and/or |
|
* modify it under the terms of the GNU Library General Public |
|
* License as published by the Free Software Foundation, version 2, |
|
* with a specific linking exception for the OpenSSL project's |
|
* "OpenSSL" library (or with modified versions of it that use the |
|
* same license as the "OpenSSL" library). |
|
* |
|
* Open-Sankoré is distributed in the hope that it will be useful, |
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
|
* Library General Public License for more details. |
|
* |
|
* You should have received a copy of the GNU Library General Public |
|
* License along with Open-Sankoré; if not, see |
|
* <http://www.gnu.org/licenses/>. |
|
*/ |
|
|
|
|
|
#ifndef CRASHWINDOW_H_ |
|
#define CRASHWINDOW_H_ |
|
|
|
#include <QtGui> |
|
#include "google_breakpad/processor/basic_source_line_resolver.h" |
|
#include "google_breakpad/processor/call_stack.h" |
|
#include "google_breakpad/processor/code_module.h" |
|
#include "google_breakpad/processor/minidump.h" |
|
#include "google_breakpad/processor/minidump_processor.h" |
|
#include "google_breakpad/processor/process_state.h" |
|
#include "google_breakpad/processor/stack_frame_cpu.h" |
|
#include "google_breakpad/processor/system_info.h" |
|
#include "processor/pathname_stripper.h" |
|
#include "processor/scoped_ptr.h" |
|
#include "processor/simple_symbol_supplier.h" |
|
|
|
using std::string; |
|
|
|
using google_breakpad::BasicSourceLineResolver; |
|
using google_breakpad::CallStack; |
|
using google_breakpad::CodeModule; |
|
using google_breakpad::CodeModules; |
|
using google_breakpad::MinidumpProcessor; |
|
using google_breakpad::PathnameStripper; |
|
using google_breakpad::ProcessState; |
|
using google_breakpad::scoped_ptr; |
|
using google_breakpad::StackFrame; |
|
using google_breakpad::StackFramePPC; |
|
using google_breakpad::StackFrameX86; |
|
using google_breakpad::SystemInfo; |
|
|
|
namespace Ui |
|
{ |
|
class UniboardCrashreporter; |
|
} |
|
|
|
class CrashWindow : public QDialog |
|
{ |
|
Q_OBJECT; |
|
public: |
|
CrashWindow(QWidget* parent = 0); |
|
virtual ~CrashWindow(); |
|
|
|
void setDumpFilePath(const QString &fileName); |
|
|
|
private slots: |
|
void showReport(); |
|
void chooseDumpFile(); |
|
void chooseSymboleFile(); |
|
|
|
private: |
|
int PrintRegister(const char *name, u_int32_t value, int sequence); |
|
void PrintStack(const CallStack* stack, const string &cpu); |
|
void PrintRegisters(const CallStack *stack, const string &cpu); |
|
void PrintModules(const CodeModules *modules); |
|
Ui::UniboardCrashreporter* mCrashReporterUi; |
|
QString mReport; |
|
}; |
|
|
|
#endif /* CRASHWINDOW_H_ */
|
|
|