microsoft / MIEngine

The Visual Studio MI Debug Engine ("MIEngine") provides an open-source Visual Studio Debugger extension that works with MI-enabled debuggers such as gdb and lldb.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Wrong exit-code parsing

slon872 opened this issue · comments

See DebuggedProcess.cs, lines 246-256

GDB returns exit code as octal number, not decimal

      ui_out_field_fmt (uiout, "exit-code", "0%o", (unsigned int) exitstatus);

So:

  1. Parsing must be fixed
  2. Complains about exit code 'don't fit into uint' are baseless.

BTW, 030000000472 == 0xC000013A == STATUS_CONTROL_C_EXIT