admin

What is lambda in Python? First, it is an expression, so called lambda expression. The expression evaluates to the value after the colon. Since it’s an expression, it can occur […]

You can call a function of the debugged inferior in GDB CLI. Suppose you have a program: #include <stdio.h> void sayhi() { printf(“hi\n”); } int main() { printf(“hello world\n”); sayhi(); […]

Qt Creator loads the GDB pretty printers in the following manner. First, it imports the gdbbridge module by running the following gdb command. python from gdbbridge import * The file […]

Believe or not, you can run python code in GDB. (gdb) python print(“hello world”) &”python print(\”hello world\”)\n” ~”hello world\n” ^done (gdb) In the above example, we call the python function […]

Some day, you may want to debug qmake, … for fun. How to debug qmake? In the source directory of qmake(c:\Qt5.12.1\5.12.1\Src\qtbase\qmake), you will find a .pro file qmake.pro, which would […]

You can find some qt configure options in its official document. But more options are undocumented. To get a full list of qt configure options, you should understand how qt […]