On Fri, 28 Apr 2006, wangji wrote: > I remark in the IDEintegration.html,a hint to run host_debugger_wrapper as > ddd --debugger `/scratchbox/login -d $HOME armeb-linux-gdb ./progr ` > Did anyone run his ,say armeb-gdbserver under emulation_qemu mode? > Or it is assumed cpu_transparency mode !! (+ nfsmount of course) > I got qemu not supporting syscall 26 ! > Anyone got scratchbox working with anjuta_IDE ? details,please ! > Thanks.
The qemu doesn't support all neccessary syscalls that gdb uses. Qemu should support gdb server mode though, try to start your program with "qemu-arm -g your_prog" and then connect to it with ddd (used port was 1234 if I remember it correctly, check it from qemu site). This way the qemu replaces the gdb server part of ide integration page. Following example should work: 1) Run qemu in sbox: qemu-arm -g ./a.out 2) Start ddd: ddd --debugger `/scratchbox/login -d $HOME armeb-linux-gdb ./a.out` 3) Connect to qemu: (gdb) target remote HOST-IP:PORT (gdb) break main (gdb) cont It may have some instabilities, sometimes the program didn't segfault because it was incorrect but because of qemu. I have witnessed situation where program running normally with qemu segfaulted but worked when qemu was single stepping it ;) Of course these situations are quite rare and most of the time the gdb server mode is really usefull. -- Valtteri Rahkonen [EMAIL PROTECTED] http://www.rahkonen.org +358 40 5077041 _______________________________________________ Scratchbox-devel mailing list [email protected] http://lists.scratchbox.org/cgi-bin/mailman/listinfo/scratchbox-devel
