Quantcast
Channel: Active questions tagged gcc - Stack Overflow
Viewing all articles
Browse latest Browse all 22085

Gdb and dollars in identifiers

$
0
0

I'd like to debug a program that uses the dollars in identifiers extension.

Take

#include <stdio.h>
int main()
{
    int $a = 42, b= 43;
    printf("%d %d\n", $a, b);
}

for a simplified example. If I run it under gdb, I can inspect b using p b, but for p $a I get void. I can only show the value with info locals.

Is there a way to refer to $-containing identifiers in gdb?


Viewing all articles
Browse latest Browse all 22085

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>