When I was debugging redis, I encountered a very simple problem, but I was at a loss.。when gdb,it display, value has been optimized out。I have changed Makefile OPTIMIZATION?=-O2 ----->OPTIMIZATION?=-O0
Comment From: oranagra
you can use make noopt
Comment From: We1less1111
excuse me,I have tried, ubuntu@ubuntu:/usr/local/redis/src$ make noopt make OPTIMIZATION="-O0" make[1]: Entering directory `/usr/local/redis/src' CC adlist.o ...
but It still doesn't seem to work 2441 if (r->type != REDIS_REPLY_ARRAY || (gdb) p r->type value has been optimized out (gdb)
Comment From: oranagra
@We1less1111 i think the src/.make-settings is getting in the way. please do make distclean and then make noopt
Comment From: We1less1111
tks,I enjoyed the great benefit