GDB: Attempt to use a type name as an expression

Viewed 1181

I am facing an ambiguity with my variable names and gdb reserved keywords. I have few variables named as 'param', 'header'. Now I cannot change the variable names as it is a very big project. I am unable to print the contents of these variables using print command in gdb as I am getting below error.

(gdb) print param
Attempt to use a type name as an expression

(gdb) print header
Attempt to use a type name as an expression

Is there any option available in gdb to resolve this ambiguity?

0 Answers
Related