p,pb, pd,po,px
print [-d] [-o] [-x] [-b] [-w outfile] expression
Evaluate an expression and print the result. An expression can consist of numeric values, operators, typedefs, struct/union members, symbols, or a combination of the above. Following are some examples of valid expressions: (((2*3+4/2)*2+(2/6))/2) ((struct task_struct *)0xc5c14000)->comm (*((struct task_struct *)0xc5c14000)->files.fd).f_flags & 0x8000 The pd command is the same as the print command except that it forces all integers to be displayed as decimal values. The px command is the same as the print command except that it forces all integers to be displayed as hexadecimal values. The po command is the same as the print command except that it forces all integers to be displayed as octal values. The pb command is the same as the print command except that it forces all integer values to be displayed as binary values. Note that only single values (numbers, members of structures, etc.) will be displayed in binary form. Integer values in complex data types such as structures will be displayed as decimal values.