hi, what optimiztion option should i use to get the local variables while using a gdb.i have used -gstabs, -gdwarf-2 , and -g3 but couldn't still access the variable. thanks. Renjish. If you love life, don't waste time, for time is what life is made up of. -- Bruce Lee