[Openocd-development] some question about openocd gdb

2010-03-15 Thread loody
Dear all: I have some questions when useing opoecd: 1. I compile my kernel with "-g" option and also remove the CFLAG of "optimize for size". But when I use host gdb connect to the gdbserver on openocd throught port . I find the the source code show in host gdb is wrong. (for example, the be

Re: [Openocd-development] some question about openocd

2009-11-04 Thread David Brownell
On Tuesday 03 November 2009, Øyvind Harboe wrote: > The above is a tcl script that you paste into your config file. > > Then on the openocd command line you type: > > fwd 1 > => invokes step 1x > fwd 100 > => invokes step 100x And it spits out 1 or 100 lines of "step" output each time, yes? It

Re: [Openocd-development] some question about openocd

2009-11-03 Thread Øyvind Harboe
>> proc fwd {n} { >>   for {set i 0} {$i < n} {set i [expr $i+1]} { >>     step >>   } >> } > If I guess correctly the above is bash script, could we execute bash > script under openocd console? > appreciate your help, > miloody The above is a tcl script that you paste into your config file. Then

Re: [Openocd-development] some question about openocd

2009-11-03 Thread David Brownell
On Tuesday 03 November 2009, loody wrote: > 4. why we cannot set break point in the branch slot? That would be a core-specific issue. I use OpenOCD mostly for ARMs ... which doesn't have such a notion. >    if I remember correctly, branch slot is the place that cpu may/may >not execute.But w

Re: [Openocd-development] some question about openocd

2009-11-03 Thread David Brownell
On Tuesday 03 November 2009, loody wrote: > 3. can we do some constant steps? >   we can use "step" to execute 1 instruction, but is there any "step > 10", which can let up execute 10 instructions? Not today. The parameter to "step" is an address to resume from, not a count. I've wanted such a

Re: [Openocd-development] some question about openocd

2009-11-03 Thread loody
Hi: thanks all your kind help :) 2009/11/4 Øyvind Harboe : > On Tue, Nov 3, 2009 at 8:58 PM, David Brownell wrote: >> On Tuesday 03 November 2009, loody wrote: >>> 3. can we do some constant steps? >>>   we can use "step" to execute 1 instruction, but is there any "step >>>   10", which can let up

Re: [Openocd-development] some question about openocd

2009-11-03 Thread Øyvind Harboe
On Tue, Nov 3, 2009 at 8:58 PM, David Brownell wrote: > On Tuesday 03 November 2009, loody wrote: >> 3. can we do some constant steps? >>   we can use "step" to execute 1 instruction, but is there any "step >>   10", which can let up execute 10 instructions? > > Not today.  The parameter to "step"

Re: [Openocd-development] some question about openocd

2009-11-03 Thread David Brownell
On Tuesday 03 November 2009, loody wrote: > 1. what are the differences between bp hw and bp sw? >I know some cpu, like mips, have break assembly instruction. >Does that mean if we use bp hw, the openocd will insert the "break" > assembly at the location we assign? That would be "bp sw".

[Openocd-development] some question about openocd

2009-11-03 Thread loody
Dear all: I have some questions about Openocd: 1. what are the differences between bp hw and bp sw? I know some cpu, like mips, have break assembly instruction. Does that mean if we use bp hw, the openocd will insert the "break" assembly at the location we assign? 2. why we need to set lengt