GDB Remote debugging in Windows
Posted: Mon Nov 13, 2006 12:29 am
Hi,
I tried GDB remote debugging a real machine using direct serial connection, but it is not working. Anybody tried it under windows environment (cygwin/mingw)?
Details:
I tested my serial direct cable connection with Windows Hyperterminal and my OS. It is working perfectly. I copied the i386-stub.c from the GDB source. Latest version of GDB(6.x.x) is crashing on remote debugging so I am using GDB 5.1.1(cygwin).
GDB connects to my kernel on hardcoded breakpoint (int3). However it is not able to read or write memory locations correctly. From the gdb debug messages I found that GDB sends only last two hexadecimal values for memory read/write.
(gdb) printf "%X\n", &wel
C0053F88
(gdb) printf "%X", wel
Sending packet: $m88,4#3d...Ack
Packet received: 17e800f0
Has any one faced this problem before?
Thanks
Sam
I tried GDB remote debugging a real machine using direct serial connection, but it is not working. Anybody tried it under windows environment (cygwin/mingw)?
Details:
I tested my serial direct cable connection with Windows Hyperterminal and my OS. It is working perfectly. I copied the i386-stub.c from the GDB source. Latest version of GDB(6.x.x) is crashing on remote debugging so I am using GDB 5.1.1(cygwin).
GDB connects to my kernel on hardcoded breakpoint (int3). However it is not able to read or write memory locations correctly. From the gdb debug messages I found that GDB sends only last two hexadecimal values for memory read/write.
(gdb) printf "%X\n", &wel
C0053F88
(gdb) printf "%X", wel
Sending packet: $m88,4#3d...Ack
Packet received: 17e800f0
Has any one faced this problem before?
Thanks
Sam