[RTEMS Project] #2681: GDB on Windows (x86_64-w64-mingw32) does not work in cmd.exe

RTEMS trac trac at rtems.org
Fri Apr 1 07:26:19 UTC 2016

#2681: GDB on Windows (x86_64-w64-mingw32) does not work in cmd.exe
 Reporter:  chrisj   |      Owner:  chrisj
     Type:  defect   |     Status:  new
 Priority:  high     |  Milestone:  4.11
Component:  MinGW    |    Version:  4.11
 Severity:  blocker  |   Keywords:
 A x86_64-w64-mingw32 gdb for RTEMS targets does not work in cmd.exe.
 Pressing any key results in gdb exiting to the cmd.exe command line

 This is due to gdb's internal readline being built for __MINGW32__ and
 calling 'getch()' and this has been changed to _getch. Debugging shows:

 (gdb) call _getch()
 $4 = 13
 (gdb) call getch()
 $5 = -1

 and so gdb sees EOF and quits.

 The solution is to build gdb using --with-system-readline on win32 hosts.

Ticket URL: <http://devel.rtems.org/ticket/2681>
RTEMS Project <http://www.rtems.org/>
RTEMS Project

More information about the bugs mailing list