Wednesday, June 17, 2009

Debugging & USB

To help me debug userspace apps, the kernel has a builtin GDB stub, that allows debugging of any app on the device using the serial port. Unfortunately my PC has no serial port and I have no USBtoSerial adapters, so I am now writing the USB driver code, so that I can debug using USB.

This should be a useful tool for all other developers too, of course.

4 comments:

Harold Goldner said...

Aw, heck, you may as well do a parallel port version, too for folks with *really* old PC's. ;-)

Dmitry Grinberg said...

Well, no, USB is modern. My PC is modern, so i had no serial cable to debug, so i am writing usb drivers...i think you have it backwards

Winston said...

Hmm, I haven't had USB on mine since I messed it up. I hotsync via WiFi o my main computer and via US Bluetooth on the laptop. Direct USB was faster with WiFi neary as fast. B takes longer but a whole lot faster than Serial.

Winston said...

damn I need to fix my keyboard