|
Message
From: realamd at 126.com<realamd@1...>
Date: Tue Nov 27 08:32:03 CET 2007
Subject: [openrisc] Why the LOAD can't work in gdb?
I attached Xilinx parallel cable III to J4 connector on the board, and connected it to parralel port on Linux computer. Connect my computer COM port to J9(dce) port by direct cable. Start JTAG port server:
jp1 -xpc3 9999
and leave it running, it displayed like this: Connected to parallel port at 378 Dropping root privileges. Read npc = 0000000c ppc = 00000024 r1 = 00000005 Expected npc = 4000000c ppc = 40000024 r1 = 00000005 Read npc = 0000000c ppc = 00000024 r1 = 00000008 Expected npc = 4000000c ppc = 40000024 r1 = 00000008 Read npc = 00000024 ppc = 00000020 r1 = 0000000b Expected npc = 40000024 ppc = 40000020 r1 = 0000000b Read npc = 00000020 ppc = 0000001c r1 = 00000018 Expected npc = 40000020 ppc = 4000001c r1 = 00000018 Read npc = 0000001c ppc = 00000018 r1 = 00000031 Expected npc = 4000001c ppc = 40000018 r1 = 00000031 Read npc = 00000020 ppc = 0000001c r1 = 00000032 Expected npc = 40000020 ppc = 4000001c r1 = 00000032 Read npc = 00000010 ppc = 0000000c r1 = 00000063 Expected npc = 40000010 ppc = 4000000c r1 = 00000063 Read npc = 00000024 ppc = 00000020 r1 = 00000065 Expected npc = 40000024 ppc = 40000020 r1 = 00000065 Read npc = 0000000c ppc = 00000024 r1 = 000000c9 Expected npc = 4000000c ppc = 40000024 r1 = 000000c9 result = 5eaddead Dropping root privileges. JTAG Proxy server started on port 9999 Press CTRL+c to exit.
>From another console,I started debugger: [zzx at localhost bin]$ ./or32-elf-gdb hello.or32 GNU gdb 5.3 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=or32-elf"... (gdb) target jtag jtag://localhost:9999 Remote or1k debugging using jtag://localhost:9999 Debug group should be available in the or1k implementation. (gdb) load You can't do that when your target is `exec'
It seemed that the or1k implementation's debug group is not available , or the gdb does'nt include the 'load' . Should I try another gdb ?
|
 |