Hello friends,
I have integrated esp-gdbstub into a project, and am able to do breakpoints, stepping, etc.
However, when I do a backtrace at a breapoint, all the function parameters are labelled with "error reading variable: can't compute CFA for this frame" and cannot be printed. Same effect is seen when trying to examine some (but not all) local variables.
What is the cause of this behavior and how do I work around it?
esp-gdbstub: cannot view local variables
-
- Posts: 8
- Joined: Tue Nov 24, 2015 11:42 am
-
- Posts: 26
- Joined: Fri Oct 24, 2014 7:58 pm
Re: esp-gdbstub: cannot view local variables
Postby ESP_Sprite » Thu Jan 21, 2016 5:26 pm
As far as I understand it, that is a bug in gdb; because of some optimizations gcc does, some variables may be in registers or not available at all, and gdb doesn't know about that. You can try recompiling your code with -Og instead of -Os or whatever -Ox setting you're using now.
-
- Posts: 12
- Joined: Fri Mar 03, 2017 8:20 pm
Re: esp-gdbstub: cannot view local variables
Postby rajkumar patel » Tue Aug 08, 2017 9:20 pm
Hello,
i've also tried using gdbstub to debugg my esp8266.
i'm able to stop the execution as soon as i start the session using gdb tool*(esp-idf provided gdb tool i'm using. i.e. xtensa-esp32-elf-gdb).
but then i'm facing an issue which could be seen in attached image.
exact same issue i've found, on esp32 forum, which was getting produced while stepping into debugging session using openOCD - JTAG method.
that thread is here :
https://www.esp32.com/viewtopic.php?f=2 ... 2de8915fff
how could i overcome this issue? please provide your valuable suggestions and shade some light on this.
thanks.
i've also tried using gdbstub to debugg my esp8266.
i'm able to stop the execution as soon as i start the session using gdb tool*(esp-idf provided gdb tool i'm using. i.e. xtensa-esp32-elf-gdb).
but then i'm facing an issue which could be seen in attached image.
exact same issue i've found, on esp32 forum, which was getting produced while stepping into debugging session using openOCD - JTAG method.
that thread is here :
https://www.esp32.com/viewtopic.php?f=2 ... 2de8915fff
how could i overcome this issue? please provide your valuable suggestions and shade some light on this.
thanks.
Who is online
Users browsing this forum: No registered users and 288 guests
Login
Newbies Start Here
Are you new to ESP8266?
Unsure what to do?
Dunno where to start?
Start right here!
Latest SDK
Documentation
Complete listing of the official ESP8266 related documentation release by ESPRESSIF!
Must read here!
- All times are UTC+08:00
- Top
- Delete all board cookies
About Us
Espressif Systems is a fabless semiconductor company providing cutting-edge low power WiFi SoCs and wireless solutions for wireless communications and Internet of Things applications. We are the manufacturer of ESP8266EX.