mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-11 22:03:01 -06:00
Ide/Debuggers/Gdb_MI2 : small patch to avoid debugger crash when ungrabbing mouse
git-svn-id: svn://ultimatepp.org/upp/trunk@5200 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
9b9472a1bf
commit
b1e7bb00fe
1 changed files with 8 additions and 0 deletions
|
|
@ -383,6 +383,8 @@ void Gdb_MI2::Unlock()
|
|||
// so reliable as it can happen (strangely) in middle of nothing
|
||||
MIValue Gdb_MI2::ParseGdb(String const &output, bool wait)
|
||||
{
|
||||
RLOG("\n-----------------------GDB OUTPUT--------------------");
|
||||
RLOG(output);
|
||||
MIValue res;
|
||||
|
||||
// parse result data
|
||||
|
|
@ -577,6 +579,8 @@ MIValue Gdb_MI2::ReadGdb(bool wait)
|
|||
// debugger run/stop status -- all remaining asynchrnonous output is discarded
|
||||
MIValue Gdb_MI2::MICmd(const char *cmdLine)
|
||||
{
|
||||
RLOG("\n-----------------------MICMD--------------------");
|
||||
RLOG(cmdLine);
|
||||
// sends command to debugger and get result data
|
||||
|
||||
// should handle dbg unexpected termination ?
|
||||
|
|
@ -1743,6 +1747,10 @@ bool Gdb_MI2::Create(One<Host> _host, const String& exefile, const String& cmdli
|
|||
MICmd("gdb-set width 0");
|
||||
MICmd("gdb-set confirm off");
|
||||
MICmd("gdb-set print asm-demangle");
|
||||
|
||||
// avoids debugger crash if caught inside ungrabbing function
|
||||
// (don't solves all cases, but helps...)
|
||||
MICmd("gdb-set unwindonsignal on");
|
||||
|
||||
if(!IsNull(cmdline))
|
||||
MICmd("gdb-set args " + cmdline);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue