Re: [Openocd-development] OpenOCD SVN /trunk and GDB not showing the correct PC

2008-07-23 Thread Øyvind Harboe
> When I found the bug > - my target was running > - the OpenOCD was running > - I realized that my application was locked, i.e. it must have crashed > somewhere, or entered some infinite loop > - I wanted to know where my application was, and possibly examine some data, > registers etc. > > In tha

Re: [Openocd-development] OpenOCD SVN /trunk and GDB not showing the correct PC

2008-07-23 Thread Dominic Rath
On Wednesday 23 July 2008 21:19:50 you wrote: > I've committed the fix for " is missing" problem. Thanks. > > * Also, since the halt() is asynchronous target connect will be > > * instantaneous and thus avoiding annoying timeout problems during > > * connect. > > */ > > > > The a

Re: [Openocd-development] OpenOCD SVN /trunk and GDB not showing the correct PC

2008-07-23 Thread Øyvind Harboe
I've committed the fix for " is missing" problem. >/* a gdb session just attached, try to put the target in halt mode. > * > * DANGER > * > * If the halt fails(e.g. target needs a reset, JTAG communication not > * working, etc.), then the GDB connect will succeed as >

Re: [Openocd-development] OpenOCD SVN /trunk and GDB not showing the correct PC

2008-07-23 Thread Dominic Rath
On Tuesday 22 July 2008 23:17:40 you wrote: > Take #2 > > Perhaps poll() has not been invoked? That didn't fix it either. The situation is actually worse than just a bogus 0x0 which can be easily identified. [EMAIL PROTECTED]:~/arm$ ntoarm-gdb /home/vmaster/arm/qnx/workspace/sam9_l9260/Images/

Re: [Openocd-development] OpenOCD SVN /trunk and GDB not showing the correct PC

2008-07-22 Thread Øyvind Harboe
Take #2 Perhaps poll() has not been invoked? -- Øyvind Harboe http://www.zylin.com/zy1000.html ARM7 ARM9 XScale Cortex JTAG debugger and flash programmer Index: C:/workspace/trunk/src/server/gdb_server.c === --- C:/workspace/trunk

Re: [Openocd-development] OpenOCD SVN /trunk and GDB not showing the correct PC

2008-07-22 Thread Dominic Rath
On Tuesday 22 July 2008 22:15:08 you wrote: > > -gdb-gdb-gdb-gdb- > >--- [EMAIL PROTECTED]:~/arm$ > > ntoarm-gdb > > /home/vmaster/arm/qnx/workspace/sam9_l9260/Images/startup-at91sam9263ek.s > >ym GNU gdb 6.7 > > Copyright (C) 2007 Free So

Re: [Openocd-development] OpenOCD SVN /trunk and GDB not showing the correct PC

2008-07-22 Thread Øyvind Harboe
> (gdb) target remote localhost: > Remote debugging using localhost: > warning: while parsing target memory map (at line 2): Required element > is missing Does this patch remove the warning above? (Unrelated to the pc=0 upon connect problems I think) -- Øyvind Harboe http://www.zylin.

Re: [Openocd-development] OpenOCD SVN /trunk and GDB not showing the correct PC

2008-07-22 Thread Øyvind Harboe
> -gdb-gdb-gdb-gdb > [EMAIL PROTECTED]:~/arm$ > ntoarm-gdb > /home/vmaster/arm/qnx/workspace/sam9_l9260/Images/startup-at91sam9263ek.sym > GNU gdb 6.7 > Copyright (C) 2007 Free Software Foundation, Inc. > License GPLv3+: GNU GPL versi

[Openocd-development] OpenOCD SVN /trunk and GDB not showing the correct PC

2008-07-22 Thread Dominic Rath
Hi list, is it possible that GDB support in OpenOCD is currently at least partially broken? Are there known bugs that came with TCL, is this something unrelated, but known, or is this something new? I let the OpenOCD attach to a running target (AT91SAM9260, currently executing u-boot), poll th