gdb 获得数据类型的长度

(gdb) show architecture The target architecture is set automatically (currently i386) (gdb) p sizeof(void *) $1 = 4 (gdb) set architecture Requires an argument. Valid arguments are i386, i386:x86-64, i8086, i386:intel, i386:x86-64:intel, auto. (gdb) set architecture i386:x86-64 The target architecture is assumed to be i386:x86-64 (gdb) p sizeof(void *) $2 = 8

你可能感兴趣的:(Linux源码分析)