如何让 gdb 以十六进制模式打印出所有值? [英] How to make gdb print out all values in hexadecimal mode?

查看:33
本文介绍了如何让 gdb 以十六进制模式打印出所有值?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

By default, gdb always prints/displays all variables / arguments in base 10. Is there any way to ask gdb to always use base 16 while printing anything (and turn back to default settings when I don't need that) ? I know that it can be printed by supplying the '/x' argument to print/display, but I don't want to do it everytime....

解决方案

set output-radix 16 (and set output-radix 10 to switch it back).

这篇关于如何让 gdb 以十六进制模式打印出所有值?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆