Hi all,
Since I switched my apps to Unicode I was without debugging support for strings (std::wstring and wchar_t*). Googling for a solution didn't help too much, and mostly gave solutions that required a combination of helper functions in my app to be called by gdb and/or gdb init script and/or Code::Blocks gdb_types.script code. Since I only want to manage this in one place (because next time I upgrade anything to my build system I will have forgotten all about how I did it the previous time), I've developed a pure Code::Blocks gdb_types.script solution. For eveyone that wants to use it, see the attached .txt document.
The only problem I still have with this solution is that the correct formatting is only used in the debug tooltips, and not in the watches window. I'm probably overlooking something basic here, but can anyone point me in the right direction?
Kind regards,
Carl Colijn