Skip to content

Instantly share code, notes, and snippets.

View nixawk's full-sized avatar
💭
http://www.catb.org/~esr/faqs/smart-questions.html

nixawk

💭
http://www.catb.org/~esr/faqs/smart-questions.html
View GitHub Profile
@hngouveia01
hngouveia01 / debugging_kernel.txt
Last active February 6, 2026 15:44
Debugging kernel code line by line with Qemu and GDB
We are going to use buildroot to download, configure and compile the kernel.
First, download and uncompress buildroot: https://buildroot.org/download.html
Go to the directory and:
make qemu_x86_defconfig
make menuconfig
import asyncio
loop = asyncio.get_event_loop()
async def hello():
await asyncio.sleep(3)
print('Hello!')
if __name__ == '__main__':
loop.run_until_complete(hello())