Debugger will not show local variables

This issue might have been posted before, and if so please direct me to the solution.

The problem is that when I am debugging my CNU gcc compiled C code with the GDB debugger it claims it cannot find local variables and thus show their values. Global variables works fine.

Any clues?

Thanks,

Jens.

Reply to
Jens Munk
Loading thread data ...

Maybe your locals are optimized out by the compiler - try to build your code with -O0

--
:wq
^X^Cy^K^X^C^C^C^C
Reply to
Ico

Thanks. That helps.

Jens.

Reply to
Jens Munk

ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.