Change decimal separator in GDB

和自甴很熟 提交于 2019-12-12 12:23:26

问题


Is there a way to change decimal separator in gdb, without changing it in the whole system?

I have a French ubuntu 14.04 (with comma as decimal separator). But in gdb, any floating point written with a dot (for example p 2.0) leads to "invalid number" message; and comma is interpreted as list separator...

I have tried to create a gdbinit file with set environment LC_NUMERIC="C" within, but it didn't work...

来源:https://stackoverflow.com/questions/24865689/change-decimal-separator-in-gdb

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!