Am Samstag, den 08.03.2008, 20:36 +0300 schrieb Maxim Kuvyrkov: > Robert Brusa wrote: > > Am Freitag, den 07.03.2008, 17:35 +0000 schrieb Nathan Sidwell: > >> Robert Brusa wrote: > >>> Hi all > >>> > >>> further to my previous cry for help, I have have some news. > >>> > >>> The uClinux I am running on my COBRA5282-board includes a gdbserver. So > >>> I firstly connect my working directory to the target using ntfs, then I > >>> start the gdbserver on the target. This looks as follows (I am using > >>> minicom on a host running debian etch) > >>> > >>>> /> mount -t nfs -o rsize=4096,wsize=4096 > >>>> 192.168.0.55:/home/rwb/ws1 /usr > >>>> /> gdbserver localhost:10000 /usr/factorial/Debug/factorial > >>>> Process /usr/factorial/Debug/factorial created; pid = 35 > >>>> code at 0x3c8040 - 0x3cbd20, data at 0x3cbd24 > >> gdbserver is listening on localhost:10000 -- the target board > >> > >>> Then I go back to my Sourcery_GXX_IDE with the factorial example and > >>> start a debug-session by clicking on the debug-icon and get the messag > >>> > >>> Error creating session: localhost:10000: Connection refused > >> gdb is trying to talk to localhost:10000 -- the host system > >> > >> nathan > > Nathan - sorry, but I do not understand what your comments try to tell > > me. What exactly should I do to make it work? > > From what you've posted, I understand that you configured IDE debugger > to connect to your local system, instead of your board. You should > specify your board's name or IP address in the IDE's debugger configuration. > > E.g., on the board you should run > > $ gdbserver :10000 myprog > > and on your host system gdb should connect to myboard:10000 . > > -- > Maxim > Hi, Your input helped. Now the two systems connect. But I get an error - see attachment Error1.txt. What I have done is the following: On the serial terminal (mini) connected to my COBRA5282 board I enter the commands: > /> mount -t nfs -o rsize=4096,wsize=4096 192.168.0.55:/home/rwb/ws1 /usr > /> gdbserver :10000 /usr/factorial/Debug/factorial Then I launch Sourcery_GXX_IDE with the program factorial. There I had (previously) configured the debug connection - see attachment DebugCfg.png. When the IDE ist up and ready, I run the program with F11 (debug last launched) now the error-message pops up. All this seems overly complicated. I would expect the gdbserver to be capable of downloading the program from the host. After all, the two systems are connected - even twice: serial link and LAN. Why do I have to tell the target which program to debug? Why doesn' the IDE tell this to the target? I doubt that I am on the right track. However, the documentation delivered by codesourcery does not give any clue about these details. Any help around? Thank you and best regards Bob -- ------------------------------ Bob Brusa BRUSAG Sensorik & messtechn. Entwicklungen Chapfwiesenstr. 14 CH-8712 Staefa (Switzerland) bob.brusa@xxxxxxxxx +41 44 926 74 74 www.brusag.ch
Execution is suspended because of error. Remote 'g' packet reply is too long: 003ce3f001000000000000000000000000000001003cbd240025dec80025deb4003c813a003cbcec003cc398003cff6c003cbcf000530004003cff18003cff1000000000003c8140000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 Remote 'g' packet reply is too long: 003ce3f001000000000000000000000000000001003cbd240025dec80025deb4003c813a003cbcec003cc398003cff6c003cbcf000530004003cff18003cff1000000000003c81400000000000000000000
Attachment:
DebugCfg.png
Description: PNG image