espressif / idf-eclipse-plugin

Espressif-IDE (based on Eclipse CDT) for ESP-IDF CMake based projects 4.x and above
Eclipse Public License 2.0
295 stars 115 forks source link

IEP-1135 Incorrect default gdb executable for RISCV targets #874

Closed sigmaaa closed 6 months ago

sigmaaa commented 6 months ago

Description

Fixed debugger patterns to get correct gdb executables. The problem was, that without "$" at the end we could get the wrong executable, for example, bin\xtensa-esp32-elf-gdb-3.7.exe, etc.

Fixes # (IEP-1135)

Type of change

Please delete options that are not relevant.

How has this been tested?

Test 1: try to debug with different targets Test 2: check the actual executable path in the debugger tab for different targets Test Configuration:

Dependent components impacted by this PR:

Checklist

kolipakakondal commented 6 months ago

Hi @AndriiFilippov Can you please verify this

AndriiFilippov commented 6 months ago

@sigmaaa , @kolipakakondal hi !

Tested under: OS: Windows 10 / MacOS ESP-IDF: v5.1.2

LGTM 👍 Able to Debug.

1) on Windows: Debug works but for targets H2 / C6 the USB-JTAG ports are not identified in Launch Target :
image

2) all platforms: H2 target Debug starts very slow and with some errors like this: image image

3) in general, the Debug console is accompanied with errors like this, but without impact on Debug work.

image

Should I create separate tasks for those issues ?

sigmaaa commented 6 months ago

Hi @AndriiFilippov, yes we can create a separate issue for this since it's not related to the PR. Thanks