Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* Re: Need some help with xtensa processor
@ 2016-09-01  4:23 doark
  2016-09-01 14:18 ` Ben Greear
  0 siblings, 1 reply; 5+ messages in thread
From: doark @ 2016-09-01  4:23 UTC (permalink / raw)
  To: gdb; +Cc: Ben Greear

On 08/16/16(Tue) 20:01 <greearb@candelatech.com> wrote:
> Hello!
> 
> I'm working on a closed source (not my decision) project that uses
> an xtensa cpu.  I have no jtag access to this board, but I can pass
> messages, including grabbing 'logs' and stack traces on crash, and so
> forth.
> 
> Currently, I have narrowed down a bug to a wild write on a structure of
> method pointers.  Next time code tries to execute one of these methods,
> it crashes spectacularly.

It's been about a two weeks, did you ever solve the issue?
It might be helpful to others with similar problems (you don't need to
provide identifying information).

Sincerely,
David


^ permalink raw reply	[flat|nested] 5+ messages in thread
* Need some help with xtensa processor
@ 2016-08-17  0:02 Ben Greear
  2016-08-17  0:11 ` Sterling Augustine
  0 siblings, 1 reply; 5+ messages in thread
From: Ben Greear @ 2016-08-17  0:02 UTC (permalink / raw)
  To: gdb

Hello!

I'm working on a closed source (not my decision) project that uses
an xtensa cpu.  I have no jtag access to this board, but I can pass
messages, including grabbing 'logs' and stack traces on crash, and so forth.

Currently, I have narrowed down a bug to a wild write on a structure of
method pointers.  Next time code tries to execute one of these methods,
it crashes spectacularly.

So, I wanted to tell the processor to set a watchpoint on this address, and
then assert or otherwise give me an ability to grab the program counter, stack,
etc, when something writes on the memory.

I think I know how to set the BREAKA, BREAKC registers, but I must be missing something
related perhaps to setting up a proper exception vector handler for this?  Whatever
the cause, I can scribble on memory after setting the watchpoint and nothing useful
happens.

So, I'd appreciate pointers if someone has some ideas.  And, if someone wants to
work on this for pay, please contact me off-list.

Thanks,
Ben

-- 
Ben Greear <greearb@candelatech.com>
Candela Technologies Inc  http://www.candelatech.com


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2016-09-01 14:18 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-09-01  4:23 Need some help with xtensa processor doark
2016-09-01 14:18 ` Ben Greear
  -- strict thread matches above, loose matches on Subject: below --
2016-08-17  0:02 Ben Greear
2016-08-17  0:11 ` Sterling Augustine
2016-08-17  0:22   ` Ben Greear

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox