[ECOS] RE: ctrl-c in GDB

Vikas K. Prasad vikas.prasad@ittiam.com
Tue Sep 28 15:51:00 GMT 2004


Hi,

I got the interrupt to work. The UART RSR register
was not  read  (and so the interrupt bit was never
cleared).

However, I am still having issues with gdb ^c. Can
someone help me out? The program is loaded correctly
but control does not get transfered to application
and neither the ^c work.

(gdb) so ldl.spt
0x00003018 in ?? ()
Loading section .rom_vectors, size 0x40 lma 0x4100000
Loading section .text, size 0xf6c8 lma 0x4100180
Loading section .rodata, size 0x26c lma 0x410f848
Loading section .data, size 0x3a0 lma 0x410fab4
Start address 0x4100180, load size 64788
Transfer rate: 86384 bits/sec, 298 bytes/write.
(gdb) c
Continuing.
Interrupted while waiting for the program.
Give up (and stop debugging it)? (y or n) y

Regards,
Vikas

-----Original Message-----
From: Vikas K. Prasad 
Sent: Monday, September 27, 2004 9:24 PM
To: 'ecos-discuss@sources.redhat.com'
Cc: Vikas K. Prasad
Subject: RE: ctrl-c in GDB



Hi,

One more observation:

The serial driver implemented in my platform port is
of the simple polling type. The  moment I enable the
Rx interrupt in UART IES register, the following is
observed:
1) REDBOOT> appears on HyperTerminal.
2) The moment 'help' (or any char is typed), REDBOOT>
   prompt appears in infinite loop (goes on printing
   on HyperTerminal).

Should to use GDB,  should  we  always  write serial
driver in the interrupt mode?  What  could have gone
wrong in the above case (is  the interrupt not being
acknowledged?)

Regards,
Vikas

-----Original Message-----
From: Vikas K. Prasad 
Sent: Monday, September 27, 2004 3:43 PM
To: 'ecos-discuss@sources.redhat.com'
Cc: Vikas K. Prasad
Subject: ctrl-c in GDB



Hi,

I have completed the platform port of eCos and was able
to get REDBOOT> prompt on HyperTerminal.  Further,  all
commands  (like, version, help, etc)  are  working from
HyperTerminal. Even ^C is recognized.

On using GDB, I am able to connect to remote target and
here is the output:

    (gdb) set remotebaud 115200
    (gdb) target remote /dev/COM1
    Remote debugging using /dev/COM1
    0x04002ffc in ?? ()
    (gdb) c
    Continuing.
    Interrupted while waiting for the program.
    Give up (and stop debugging it)? (y or n) y

But if you notice, after a continue,  I  am  not getting
the control back to gdb. Am I doing anything wrong here?

Can I write a small  program (without eCos) and download
via redboot  and test it (May be simple main pgm to turn
on a LED)?

The port is for ARM922T on Excalibur device.

Regards,
Vikas

--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss



More information about the Ecos-discuss mailing list