[ECOS] Debug session

Xavier xavier@localhost.localdomain
Sun Sep 12 19:07:00 GMT 2004


arm-elf-gdb redboot.elf
GNU gdb 5.3 (eCosCentric)
Copyright 2002 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "--host=i686-pc-linux-gnu --target=arm-elf"...
(gdb) target rdi /dev/ttyS0
JEENI (ADP, ARM7TDI) Rev 2.0
Rebuilt on Oct 18 1999 at 18:31:13
SN=0101J107 ENET=00:80:CF:00:0C:68 IP=192.168.72.88 (255.255.255.0)
Serial Rate:   9600
Connected to ARM RDI target.
(gdb) list set_debug_comm
255
256         CYG_ASSERT(__comm_id >= CYGNUM_CALL_IF_SET_COMM_ID_MANGLER
257                    && __comm_id < CYGNUM_HAL_VIRTUAL_VECTOR_NUM_CHANNELS,
258                    "Invalid channel");
259
260         switch (__comm_id) {
261         case CYGNUM_CALL_IF_SET_COMM_ID_QUERY_CURRENT:
262             if (__selected_id > 0)
263                 res = __selected_id-1;
264             else if (__selected_id == 0)
(gdb) list 271
266             else
267                 res = __selected_id;
268             break;
269
270         case CYGNUM_CALL_IF_SET_COMM_ID_EMPTY:
271             CYGACC_CALL_IF_DEBUG_PROCS_SET(0);
272             __selected_id = __comm_id;
273             break;
274
275         case CYGNUM_CALL_IF_SET_COMM_ID_MANGLER:
(gdb) break 271
Breakpoint 1 at 0x5764: file /usr/local/ecos/ecos-2.0/packages/hal/common/v2_0/src/hal_if.c, line 271.
(gdb) run
The program being debugged has been started already.
Start it from the beginning? (y or n) y

Starting program: /home/xavier/project/ecos/lpc2294/redboot.elf

Breakpoint 1, set_debug_comm (__comm_id=-536707060)
    at /usr/local/ecos/ecos-2.0/packages/hal/common/v2_0/src/hal_if.c:271
271             CYGACC_CALL_IF_DEBUG_PROCS_SET(0);
(gdb) info local
__selected_id = 22356
__chan = (volatile CYG_ADDRWORD (*)[8]) 0x84
interrupt_state = -2130696852
res = 252
update = 16
(gdb) step
272             __selected_id = __comm_id;
(gdb) info local
__selected_id = 22356
__chan = (volatile CYG_ADDRWORD (*)[8]) 0x40000070
interrupt_state = -2130696852
res = 252
update = 16
(gdb) step
RDI_setbreak: data abort, no memory at specified address?
RDI_execute: prefetch abort, execution ran into unmapped memory?
RDI_read: data abort, no memory at specified address?
RDI_read: data abort, no memory at specified address?
Error accessing memory address 0xfffffffe: Resource temporarily unavailable.
RDI_setbreak: data abort, no memory at specified address?
Warning:
Cannot insert breakpoint 0.
Error accessing memory address 0x5e20: Input/output error.
The same program may be running in another process.
(gdb)

Any suggestions as to which way to go from here?


-- 
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