Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
v目前,当我在 GDB ( ) 中打印一个变量的值时,print v我得到一个整数。
v
print v
是否可以让 GDB 以十六进制或二进制形式打印此类整数变量?
是的。试试这些:
# Hexadecimal p/x variable # Binary p/t variable
请参阅输出格式。