5 Lesser-Known GDB Debugger Tips

5 Lesser-Known GDB Debugger Tips

Learn how to use some lesser-known features of gdb to inspect and fix your code. — Tim Waugh GNU Debugger (gdb) is a valuable tool for inspecting running processes and troubleshooting while developing programs. You can set breakpoints at specific locations (by function name, line number, etc.), enable and disable these breakpoints, display and change … Read more

In-Depth Study of Makefile

In-Depth Study of Makefile

In-Depth Study of Makefile In previous articles, we analyzed character device drivers together. If we have already written the driver code, what should we do next? First, we need to run make, and upon successful compilation, a globalmem.ko file will be generated. Next, we need to insert this kernel module into the kernel and use … Read more