Linux distro: Ubuntu 12.04.1 LTS 64 bit

git repo: http://openocd.zylin.com/p/openocd.git
git commit: 441914978d1b0debc2c40ef5a660165d53baad27

built like this:

cd zylin
./bootstrap
./configure --enable-maintainer-mode --enable-ft2232_libftdi
make
make DESTDIR=${HOME}/openocd install

Target PCB/board description: Beagle-xm Rev C

Configuration scripts/OpenOCD command line:

HERE=`pwd`
rm -f flyswatter.log
cd ~/openocd/usr/local/share/openocd/scripts
sudo ../../../bin/openocd -d 3 -l ${HERE}/flyswatter.log -f
interface/flyswatter2.cfg -f board/ti_beagleboard_xm.cfg -c init -c
"reset init"
cd ${HERE}

List of commands issued or GDB operations performed:

----------
telnet localhost 4444
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
Open On-Chip Debugger
> dm37x.cpu cortex_a8 dbginit
> reset halt
adapter speed: 10 kHz
JTAG tap: dm37x.jrc tap/device found: 0x2b89102f (mfg: 0x017, part:
0xb891, ver: 0x2)
JTAG tap: dm37x.dap enabled
Locking debug access failed on first, but succeeded on second try.
adapter speed: 1000 kHz
dm37x.cpu: ran after reset and before halt ...
target state: halted
target halted in ARM state due to debug-request, current mode: Supervisor
cpsr: 0x200001d3 pc: 0x40208b50
MMU: disabled, D-Cache: disabled, I-Cache: enabled
> bp 0xc08c654c 4 hw
breakpoint set at 0xc08c654c
> bp
Breakpoint(IVA): 0xc08c654c, 0x4, 1
> poll
background polling: on
TAP: dm37x.dap (enabled)
target state: halted
target halted in ARM state due to debug-request, current mode: Supervisor
cpsr: 0x200001d3 pc: 0x40208b50
MMU: disabled, D-Cache: disabled, I-Cache: enabled
> resume

... runs now until the breakpoint is hit [1] ...

target state: halted
target halted in ARM state due to breakpoint, current mode: Supervisor
cpsr: 0x600001d3 pc: 0xc08c654c
MMU: enabled, D-Cache: enabled, I-Cache: enabled
> rbp 0xc08c654c
>

----------
arm-linux-gnueabi-gdb /home/student/beagle-xm/linux-stable-custom/vmlinux
GNU gdb (GDB) 7.5
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
<http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "--host=i686-eldk-linux
--target=arm-linux-gnueabi".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from
/home/student/beagle-xm/linux-stable-custom/vmlinux...done.
(gdb) target remote localhost:3333

[ telnet:
accepting 'gdb' connection from 3333
Halting target
acknowledgment received, but no packet pending
DSCR_DTR_RX_FULL, dscr 0x4b0f6047
Timeout waiting for read dcc
DSCR_DTR_RX_FULL, dscr 0x4b0f6047
Timeout waiting for read dcc
DSCR_DTR_RX_FULL, dscr 0x4b0f6047
Timeout waiting for read dcc
DSCR_DTR_RX_FULL, dscr 0x4b0f6047
Timeout waiting for read dcc
DSCR_DTR_RX_FULL, dscr 0x4b0f6047
Timeout waiting for read dcc
DSCR_DTR_RX_FULL, dscr 0x4b0f6047
Timeout waiting for read dcc
DSCR_DTR_RX_FULL, dscr 0x4b0f6047
Timeout waiting for read dcc
DSCR_DTR_RX_FULL, dscr 0x4b0f6047
Timeout waiting for read dcc
DSCR_DTR_RX_FULL, dscr 0x4b0f6047
Timeout waiting for read dcc
DSCR_DTR_RX_FULL, dscr 0x4b0f6047
Timeout waiting for read dcc
DSCR_DTR_RX_FULL, dscr 0x4b0f6047
Timeout waiting for read dcc
>
]
... the output here is correct, but we already got some errors on the
telnet session as you can see above [2] ...
Remote debugging using localhost:3333
start_kernel () at init/main.c:469
469     {
(gdb) hbreak sys_sync
Hardware assisted breakpoint 1 at 0xc014d178: file fs/sync.c, line 103.
(gdb) info break
Num     Type           Disp Enb Address    What
1       hw breakpoint  keep y   0xc014d178 in sys_sync at fs/sync.c:103
(gdb) mon bp
... should the hardware breakpoint set in gdb not be visible here as
well? [3] ...
(gdb) continue
Continuing.
DSCR_DTR_RX_FULL, dscr 0x4b0f6047
JTAG-DP OVERRUN - check clock, memaccess, or reduce jtag speed
JTAG-DP STICKY ERROR
MEM_AP_CSW 0x80000042, MEM_AP_TAR 0x54011080
Polling target dm37x.cpu failed, GDB will be halted. Polling again in 100ms

[Remote target] #1 stopped.
start_kernel () at init/main.c:469
469     {
(gdb)
... here is no breakpoint we should not stop here - it's the old
breakpoint from before, which we removed [4] ...
[ telnet:
DSCR_DTR_RX_FULL, dscr 0x4b0f6047
JTAG-DP OVERRUN - check clock, memaccess, or reduce jtag speed
JTAG-DP STICKY ERROR
MEM_AP_CSW 0x80000042, MEM_AP_TAR 0x54011080
Polling target dm37x.cpu failed, GDB will be halted. Polling again in 100ms
Target not halted
Target not halted
Target not halted
Target not halted
Target not halted
Target not halted
Target not halted
Target not halted
Target not halted
Target not halted
Target not halted
Target not halted
Target not halted
Target not halted
Target not halted
Target not halted
Target not halted
JTAG-DP STICKY ERROR
MEM_AP_CSW 0x80000042, MEM_AP_TAR 0x54011140
cortex_a8_mmu: target not halted
cortex_a8_mmu: target not halted
cortex_a8_mmu: target not halted
cortex_a8_mmu: target not halted
cortex_a8_mmu: target not halted
cortex_a8_mmu: target not halted
cortex_a8_mmu: target not halted
cortex_a8_mmu: target not halted
cortex_a8_mmu: target not halted
cortex_a8_mmu: target not halted
cortex_a8_mmu: target not halted
JTAG-DP STICKY ERROR
MEM_AP_CSW 0x80000042, MEM_AP_TAR 0x54011080
Polling target dm37x.cpu failed, GDB will be halted. Polling again in 300ms
JTAG-DP STICKY ERROR
MEM_AP_CSW 0x80000042, MEM_AP_TAR 0x54011080
Polling target dm37x.cpu failed, GDB will be halted. Polling again in 700ms
JTAG-DP STICKY ERROR
MEM_AP_CSW 0x80000042, MEM_AP_TAR 0x54011080
Polling target dm37x.cpu failed, GDB will be halted. Polling again in 1500ms
JTAG-DP STICKY ERROR
MEM_AP_CSW 0x80000042, MEM_AP_TAR 0x54011080
...
]


Expected result/Actual result:
[1]
[2] should not happen I guess
[3] should hardware breakpoint set in gdb be visible with bp?
[4] does not stop on new, but old breakpoint (which we removed before) ????

logfile: http://pastebin.com/kmGX9Kw8

------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
_______________________________________________
OpenOCD-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to