I'm hoping to single step through a program which has been compiled using gcc with the '-g' option so that I can use gdb, but I want to run it from within emacs. The program works fine on Linux but not on FreeBSD. It needs command line arguments and involves accessing a serial port (/dev/cuaU0).
Can anyone give me any tips on how to start debugging this program?
I suspect the reason it doesn't work on FreeBSD is because serial port handling on FreeBSD is different to Linux... What to look for? Where to set breakpoints?
Can anyone give me any tips on how to start debugging this program?
I suspect the reason it doesn't work on FreeBSD is because serial port handling on FreeBSD is different to Linux... What to look for? Where to set breakpoints?