From mboxrd@z Thu Jan 1 00:00:00 1970 From: Yu Xuanwei To: gdb@sources.redhat.com Subject: Remote debugging Date: Tue, 28 Nov 2000 00:59:00 -0000 Message-id: <3A2373B3.9FF0E29E@chinacluster.com> X-SW-Source: 2000-11/msg00263.html Hi, buddies: I've scanned all gdb mailist archives and gdb manual. I'm still confused. What I 've done: 1. cross-compile gdbserver by m68k-pic-coff compiler. 2. Download gdbserver into M68EZ328 ADS board. 3. Run it as: EZ328> gdbserver MyHost:port test, (test is stripped). 4. Native compile(Intel) in host: gcc -g test.c -o htest, (test.c is just a HelloWorld) 5. Run gdb in Intel host: MyHost> gdb gdb> target remote EZ328:port gdb> symbol-file htest gdb> b main gdb> c gdb> n . . . gdb> Program exit normally 6. See 'Hello World!' in target screen, and the gdbserver end when the gdb session is over. Idoubt whether I was right. I don't know how to 'load'. I don't know how to prevent gdbserver exiting after one gdb session. I don't understand whether I got the exact case in target via TCP. I feel unconfident. Thanks a lot, Yu Xuanwei