eclipse-cdt-cloud / eclipse-cdt-cloud/cdt-gdb-adapter

Local Variable of same name in between function update variable failed.

Open
#358 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
39
Forks
56
Avg merge
3d 9h
Merged PRs (30d)
2

Description

I found a phenomenon similar to [cortex-debug issue]( https://github.com/Marus/cortex-debug/issues/923)

```
#include
#include

void function_one() {
int num = 10;
printf("function one\r\n");
}

void function_two() {
int num = 20;
printf("function two\r\n");
}

int main() {
printf("hello world!");
function_one();
function_two();
return 0;
}
```

_function_one_ context:

![Image](https://github.com/user-attachments/assets/2eda77fa-7d1e-4915-b599-8f1127d6852c)

_function_two_ context:

![Image](https://github.com/user-attachments/assets/0514a452-e912-43cb-b649-1d81275caedc)

**Additional:**

CDT GDB Debug Adapter Extension: v2.0.1
Version 1.60.200
VS Code API Version: 1.98.2

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.