GDB printers: print as string instead of char array

Da Viper yerimyah1 at gmail.com
Tue Aug 3 16:24:53 BST 2021


There is a current problem when i try to return a python string as
part of a pretty printer children

in an gdb cli it prints as a string but in any IDE it does not print
as a string it only prints as a char array

i checked the internet the only thing is could find is a question in
stackoverflow
https://stackoverflow.com/questions/26472066/gdb-pretty-printing-returning-string-from-a-childrens-iterator-but-displaye

and a bug report in sourceware
https://sourceware.org/bugzilla/show_bug.cgi?id=18282

you could try what i mean with `QStringRef`  and view the ref_str in
kdevelop and IDE


More information about the Kde-finance-apps mailing list