需要有关“设置字节序”的信息在Solaris机器上
任何1都可以告诉或显示我在solaris机器上的gdb中“设置endian little”之前和之后任何程序的行为差异吗?
我想知道改变后的效果。
谢谢!
Can any 1 please tell or show the difference in the behaviour of any program before and after I "set endian little" in gdb on solaris machine?
I want to know the effect of changing it.
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
在进行本机(而不是远程)调试时,您应该永远不必设置字节序。
不过,您可以观察到这样做的不良影响:(
这是在 Linux/x86 计算机上,但我希望您在 Solaris/x86 和 Solaris/SPARC 上会得到类似的结果)。
You should never have to set endianness when doing native (as opposed to remote) debugging.
You can however observe the ill effects of doing that:
(This is on Linux/x86 machine, but I expect you'll get similar results on Solaris/x86 and Solaris/SPARC).
为了完全回答您的问题,此设置对调试程序绝对没有任何影响,仅对 gdb 输出产生影响,正如 Employed Russian 已经指出的那样。
To fully answer your question, this setting will have absolutely no effect whatsoever on the debugged program, only on gdb output as Employed Russian already stated.