Debugger[TRK]: Report crashs with signals.

Show the message box correctly on signal 11 reported.

Reviewed-by: hjk
This commit is contained in:
Friedemann Kleint
2010-09-29 16:39:46 +02:00
parent 2e6217b756
commit 8c956abedd
5 changed files with 22 additions and 8 deletions

View File

@@ -73,6 +73,12 @@ struct MemoryRange
QDebug operator<<(QDebug d, const MemoryRange &range);
// Signals to be passed to gdb server as stop reason (2 digit hex)
enum GdbServerStopReason {
gdbServerSignalTrap = 5, // Trap/Breakpoint, etc.
gdbServerSignalSegfault = 11 // Segfault
};
namespace Symbian {
enum CodeMode
@@ -135,7 +141,7 @@ struct Snapshot
QByteArray gdbQsThreadInfo() const;
QByteArray gdbQThreadExtraInfo(const QByteArray &cmd) const;
// Format a gdb T05 stop message with thread and register set
QByteArray gdbStopMessage(uint threadId, bool reportThreadId) const;
QByteArray gdbStopMessage(uint threadId, int signalNumber, bool reportThreadId) const;
// Format a log message for memory access with some smartness about registers
QByteArray memoryReadLogMessage(uint addr, uint threadId, bool verbose, const QByteArray &ba) const;
// Gdb command parse helpers: 'salnext'