gdb: No symbol “i” in current context

后端 未结 6 476
谎友^
谎友^ 2021-02-02 10:02

While debugging a C program in gdb I have a breakpoint in a for loop. I cannot print the value of \"i\" ( I get : No symbol \"i\" in current context.). I can print the value of

6条回答
  •  不思量自难忘°
    2021-02-02 10:35

    Check your optimization options. It's possible the GCC could replace the variable with a pointer into feature_mask.

提交回复
热议问题