问题
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