'why GDB crushed in VScode when I click rigester button?

What's this "register" button used for when debugging in VScode? When I click it, GDB crushed and I don't know why.If I want to check registers when debugging, what am I supposed to do? when I click this button, GDB crushed



Solution 1:[1]

I've met the same problem just like you.

The reason for it is that there's a bug in GCC 8.1. When you use the info registers command in GDB, the GDB crashes. You can try to use other GCC versions to solve this problem.

You can see the bug here.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1