Re: [Openocd-development] with telnet interface, soft bp effects one time

2010-11-22 Thread Øyvind Harboe
> ..but that doesn't really mean much. Please mention which commit that > was marked as the offending commit, after git bisect was completed? I have never use the "bp" commands in telnet. Could they be broken by design and inheritably incompatible with gdb breakpoints? gdb breakpoints is a key fe

Re: [Openocd-development] with telnet interface, soft bp effects one time

2010-11-21 Thread Peter Stuge
Øyvind Harboe wrote: > Which commit was is that actually broke this? The source line was introduced by: commit efef05870d726fe4cb6786d785fae4628fe7ec1e Author: oharboe Date: Fri Aug 28 09:47:19 2009 + restore ICE watchpoint registers when the *last* software breakpoint is removed

Re: [Openocd-development] with telnet interface, soft bp effects one time

2010-11-21 Thread Øyvind Harboe
Good work! Which commit was is that actually broke this? -- Øyvind Harboe Can Zylin Consulting help on your project? US toll free 1-866-980-3434 / International +47 51 63 25 00 http://www.zylin.com/zy1000.html ARM7 ARM9 ARM11 XScale Cortex JTAG debugger and flash programmer

Re: [Openocd-development] with telnet interface, soft bp effects one time

2010-11-20 Thread 韦东山
with "git bisect", I can resolve this problem, the patch is: --- src/target/arm7_9_common.c.origin Sun Nov 21 10:33:21 2010 +++ src/target/arm7_9_common.c Sun Nov 21 10:33:24 2010 @@ -404,7 +404,7 @@ /* We have removed the last sw breakpoint, clear the hw breakpoint we u

Re: [Openocd-development] with telnet interface, soft bp effects one time

2010-11-18 Thread Øyvind Harboe
On Thu, Nov 18, 2010 at 1:14 PM, 韦东山 wrote: > > I have test some tags: > > $ git tag > v0.1.0 > v0.2.0       // ok > v0.3.0       // error > v0.3.0-rc0 > v0.3.1      // error > v0.4.0      // error > v0.4.0-rc1 > v0.4.0-rc2 Good work. Could you complete the binary search? Read "git bisect" docum

Re: [Openocd-development] with telnet interface, soft bp effects one time

2010-11-18 Thread 韦东山
I have test some tags: $ git tag v0.1.0 v0.2.0 // ok v0.3.0 // error v0.3.0-rc0 v0.3.1 // error v0.4.0 // error v0.4.0-rc1 v0.4.0-rc2 master // error >Can you try a "git bisect" ? > > >-- >Øyvind Harboe > >Can Zylin Consulting help on your project? > >US t

Re: [Openocd-development] with telnet interface, soft bp effects one time

2010-11-18 Thread Øyvind Harboe
Can you try a "git bisect" ? -- Øyvind Harboe Can Zylin Consulting help on your project? US toll free 1-866-980-3434 / International +47 51 63 25 00 http://www.zylin.com/zy1000.html ARM7 ARM9 ARM11 XScale Cortex JTAG debugger and flash programmer __

Re: [Openocd-development] with telnet interface, soft bp effects one time

2010-11-18 Thread 韦东山
I compare the log and source code between the latest openocd and the old r717, and can't find the problem. They do the same thing below when "resume" : 1. unset breakpoint 0x7c 2. enable single-step 3. (do the single-step ?) 4. disable single-step 5. entered debug state at PC 0x80 6. set breakpo

Re: [Openocd-development] with telnet interface, soft bp effects one time

2010-11-18 Thread Øyvind Harboe
On Thu, Nov 18, 2010 at 11:18 AM, 韦东山 wrote: > Øyvind_Harboe, gdb is ok. I want to use telnet interface. The telnet bp commands is a less trodden path I suppose. Did you read up on the source code? -- Øyvind Harboe Can Zylin Consulting help on your project? US toll free 1-866-980-3434 / Inte

Re: [Openocd-development] with telnet interface, soft bp effects one time

2010-11-18 Thread 韦东山
Øyvind_Harboe, gdb is ok. I want to use telnet interface. >On Thu, Nov 18, 2010 at 11:05 AM, 韦东山 wrote: >> I have try the latest master branch, the problem is the same. > >Did you try from gdb? > > > > > >-- >Øyvind Harboe > >Can Zylin Consulting help on your project? > >US toll free 1-866-980-

Re: [Openocd-development] with telnet interface, soft bp effects one time

2010-11-18 Thread 韦东山
The log: Open On-Chip Debugger > halt > load_image leds/leds_elf 156 bytes written at address 0x downloaded 156 bytes in 0.078125s (1.950 KiB/s) > bp > bp 0x78 4 breakpoint set at 0x0078 > resume 0 target state: halted target halted in ARM state due to breakpoint, current mode: Supervi

Re: [Openocd-development] with telnet interface, soft bp effects one time

2010-11-18 Thread Øyvind Harboe
On Thu, Nov 18, 2010 at 11:05 AM, 韦东山 wrote: > I have try the latest master branch, the problem is the same. Did you try from gdb? -- Øyvind Harboe Can Zylin Consulting help on your project? US toll free 1-866-980-3434 / International +47 51 63 25 00 http://www.zylin.com/zy1000.html ARM7

Re: [Openocd-development] with telnet interface, soft bp effects one time

2010-11-18 Thread 韦东山
I have try the latest master branch, the problem is the same. >Please try with the latest master branch. > >Thanks! > >-- >Øyvind Harboe > >Can Zylin Consulting help on your project? > >US toll free 1-866-980-3434 / International +47 51 63 25 00 > >http://www.zylin.com/zy1000.html >ARM7 ARM9 ARM

Re: [Openocd-development] with telnet interface, soft bp effects one time

2010-11-17 Thread Øyvind Harboe
Please try with the latest master branch. Thanks! -- Øyvind Harboe Can Zylin Consulting help on your project? US toll free 1-866-980-3434 / International +47 51 63 25 00 http://www.zylin.com/zy1000.html ARM7 ARM9 ARM11 XScale Cortex JTAG debugger and flash programmer _

[Openocd-development] with telnet interface, soft bp effects one time

2010-11-17 Thread 韦东山
Hi, with openocd 0.4, I use the "bp 0x84 4" to set a breakpoint , then "resume", but the bp effects only one time: the target can be breaked only one time. Use the "bp 0x84 4 hw", and it effects all time. With gdb, both "soft breakpoint" and "hard point" work. I want to use the teln