Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Debugging C++ with OpenOCD gives NO Symbol in current context errors. (OCD-1064) #354

Open
Jackiii1989 opened this issue Jan 15, 2025 · 2 comments

Comments

@Jackiii1989
Copy link

Jackiii1989 commented Jan 15, 2025

Development Kit

ESP32-DevKitC

Module or chip used

ESP32-S3-WROOM-1

Debug Adapter

ESP-PROG

OpenOCD version

Open On-Chip Debugger v0.12.0-esp32-20241016

Operating System

Windows

Using an IDE ?

Visual Studio COde

OpenOCD command line

occurs by stepwise debugging (G10)

JTAG Clock Speed

clock speed 40000 kHz

ESP-IDF version

v5.4.0

Problem Description

We have a C++ project that includes C files using extern "C". After adding a new breakpoint in a newly created task, we run the program until the breakpoint is hit. When debugging step-by-step using F10, the following error occurs:
Unbenannt2

The code is running okay.
Could someone explain why is this happenig?

Debug Logs

GNU gdb (esp-gdb) 14.2_20240403
Copyright (C) 2023 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "--host=x86_64-w64-mingw32 --target=xtensa-esp-elf".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word".
warning: could not convert 'main' from the host encoding (CP1252) to UTF-32.
This normally should not happen, please file a bug report.
set remotetimeout 20
0x40000400 in ?? ()

Expected behavior

I could debug the code step by step.

Screenshots

No response

@github-actions github-actions bot changed the title Debugging C++ with OpenOCD gives NO Symbol in current context errors. Debugging C++ with OpenOCD gives NO Symbol in current context errors. (OCD-1064) Jan 15, 2025
@erhankur
Copy link
Collaborator

@Jackiii1989 Could you share minimal reproducer application for our tests?

@Jackiii1989
Copy link
Author

So you want a code example that you can debug yourself?... okay, give me some time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants