-->
Page 6 of 17

Re: Preliminary openocd JTAG debugger support for Xtensa/esp

PostPosted: Wed May 20, 2015 5:46 am
by cal
I think I have applied your patch. (I applied it to crosstool-ng in a dirty way and it seems it survived..)

Did improve a little bit:
Some bogus entry vanished from the bt but still I get an endless loop.

Code: Select all(gdb) bt
#0  gdb_breakpoint () at arch_esp8266.c:19
#1  0x402367e0 in nodemcu_init () at user_main.c:225
#2  0x402367e0 in nodemcu_init () at user_main.c:225
#3  0x402367e0 in nodemcu_init () at user_main.c:225
...

I have to understand more on that ...

Cal

Re: Preliminary openocd JTAG debugger support for Xtensa/esp

PostPosted: Wed May 20, 2015 5:56 am
by projectgus
Hmm OK. Sorry to mislead you, then.

There should be some more stack frames under user_main. I've mostly been playing with the RTOS SDK lately so maybe that's part of the difference...

Re: Preliminary openocd JTAG debugger support for Xtensa/esp

PostPosted: Wed May 20, 2015 8:25 am
by cal
You didn't mislead me!

I got a small improvement, you lead me to the code thats responsible and maybe I will understand
the stack stuff ...

BTW: I found out that the function in question is (speaken in java terms) an "method" of the "object"
frame_unwind which has some documentation in its own heder file about the purpose of the "method".

I consider that "documenting the interface" which reduces the need for documenting
the purpose of explicit method implementations for me.

Can you do me a favor?
As far as I understand the OCD/JTAG/whatever stuff the gdb communitates with some JTAG speaking
gdbserver.
Do you have access to the logs of such a communication between gdb and gdb server from the startup to
some single stepping and continue?
I would like to clarify how some gdb stuff is used on a bare metal target.

Thanks in advance and I got the strong feeling there is more gdb communication to come ...

There seem to be only a few people interested in using a debugger to debug. Strange.

Cal

Re: Preliminary openocd JTAG debugger support for Xtensa/esp

PostPosted: Wed May 20, 2015 8:34 am
by Markus Gritsch
cal wrote:There seem to be only a few people interested in using a debugger to debug. Strange.

Quite the contrary. I would love to *use* source level debugging. But I lack the knowledge to implement it.