# Temporarily set environment variables export PKG_CONFIG_PATH="$HOME/tools/glib-2.72.4/_install/lib/pkgconfig:$PKG_CONFIG_PATH" # Use rpath to embed library path during compilation export LD_LIBRARY_PATH="$HOME/tools/glib-2.72.4/_install/lib:$LD_LIBRARY_PATH"
There is a .gdbinit in the qemu directory. Running gdb in this directory automatically executes the scripts/qemu-gdb.py script. For specific debugging methods, refer to: