Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Serial Device Names in MinGW

Tags:

gnu

mingw

gdb

I am attempting to use GDB to debug a remote target over a serial line on a windows box using MinGW. The target remote command GDB expects a path to a device driver (e.g. /dev/ttyS0) in order to connect to the remote target. There are 4 properly functioning serial ports on my machine, but they don't seem to be visible from MinGW. Is there a way to install them, or is this just not possible in the self proclaimed minimalist MinGW?

I did some searching on MinGW, Google, and here and wasn't able to find anything relevant.

like image 647
PeterM Avatar asked Nov 15 '25 13:11

PeterM


1 Answers

Per @J.J Hakala com ports are just named com1, com2, etc in windows. They are in the root directory so ./com1 works as well. There is no need to install drivers.

like image 52
PeterM Avatar answered Nov 18 '25 20:11

PeterM



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!