The problem is that you did not declare anything like MyClass in the target source. If your MyClass is only for static methods, you can try something like
#if DEBUG
I assume that without declaring the class type anywhere in your code, it was optimized from search characters. From my testing that the challenge is higher, you donβt even need to urge it to work. If you look at printcmd.c from gdb , line # 1250, an error will be printed here, and this will happen after calling lookup_minimal_symbol. Although gdb cannot find a character in context, it is still fine to use only the static MyClass methods in the source code without the correction above.
Joe
source share