码迷,mamicode.com
首页 > 数据库 > 详细

gdb 命令汇总

时间:2019-04-23 23:53:45      阅读:314      评论:0      收藏:0      [点我收藏+]

标签:enum   effect   ide   typename   int   function   ast   data   section   

https://ftp.gnu.org/old-gnu/Manuals/gdb/html_node/gdb_109.html

 

whatis expr

举例 whatis  uint64      ->   unsigned  long long 

Print the data type of expression exprexpr is not actually evaluated, and any side-effecting operations (such as assignments or function calls) inside it do not take place. See section Expressions.whatisPrint the data type of $, the last value in the value history.ptype typenamePrint a description of data type typenametypename may be the name of a type, or for C code it may have the form `class class-name`struct struct-tag`unionunion-tag or `enum enum-tag.ptype exprptypePrint a description of the type of expression exprptype differs from whatis by printing a detailed description, instead of just the name of the type. For example, for this variable declaration:

struct complex {double real; double imag;} v;

the two commands give this output:

(gdb) whatis v
type = struct complex
(gdb) ptype v
type = struct complex {
    double real;
    double imag;
}

 

gdb 命令汇总

标签:enum   effect   ide   typename   int   function   ast   data   section   

原文地址:https://www.cnblogs.com/aerfa828/p/10759836.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!