> > Have a look at the -var-* commands. The testsuite is currently the best > source of examples. > In other words try: (gdb) -var-create - * b ... -var-evaluate-expression var1 Using the varobj, as shown to be more reliable. and we use -data-evaluate-expression only for hovering or quick evaluation.