I'm trying to debug the ./encode program, but I can't seem to get the remote debugging to work. Page 58 of the MontaVista Linux Professional Edition 4.0 Application Developers Guide (Document Release Date January 6, 2006) gives instructions on how to do remote debugging using gdbserver and ddd. The instructions uses the command
>ddd --debugger 586-gdb --gdb ./encode
This does not work because gdb doesn't startup. I have to change the command to
>ddd --debugger gdb --gdb ./encode
This seems to work the prompt on the target changes from "Listening on port 1000" to "Remote debuggin from host 10.8.105.18" DDD does startup, but there's no source code displayed. I figured this was because the code was not compiled with a debug option so I ran >make debug in the dvsdk_1_30_01_41 directory which seems to work, but I get an error when I do a >make install
What's the best way to debug a Monta Vista application?