Repository : ssh://git@open-mesh.org/doc
On branches: backup-redmine/2019-11-07,master
commit f809bcd64efee8f54b0a03e0472b3fe3631f4859 Author: Sven Eckelmann sven@narfation.org Date: Sun Oct 13 13:47:36 2019 +0000
doc: open-mesh/Kernel_debugging_with_kgdb
f809bcd64efee8f54b0a03e0472b3fe3631f4859 open-mesh/{OpenWrt_KGDB.textile => Kernel_debugging_with_kgdb.textile} | 2 +- .../{Emulation_Debug.textile => Kernel_hacking_Debian_image.textile} | 0 open-mesh/{Emulation.textile => Vde_switch_virtual_network.textile} | 0 3 files changed, 1 insertion(+), 1 deletion(-)
diff --git a/open-mesh/OpenWrt_KGDB.textile b/open-mesh/Kernel_debugging_with_kgdb.textile similarity index 96% rename from open-mesh/OpenWrt_KGDB.textile rename to open-mesh/Kernel_debugging_with_kgdb.textile index ca27377..104bdec 100644 --- a/open-mesh/OpenWrt_KGDB.textile +++ b/open-mesh/Kernel_debugging_with_kgdb.textile @@ -195,7 +195,7 @@ lx-symbols ../batman-adv-2019.2/.pkgdir/ ../backports-4.19.66-1/.pkgdir/ ../butt
The rest of the usage now works similar to debugging using gdbserver. Just set some additional breakpoints and let the kernel run again. kgdb will then inform gdb whenever a breakpoints was hit. Just keep in mind that it is not possible to interrupt the kernel from gdb (without a Oops or an already existing breakpoint) - use sysrq from linux for that.
-Some other ideas are documented in [[Emulation_Debug#Using-GDB]]. This document also contains important hints about [[Emulation_Debug#Building-the-batman-adv-module|increasing the chance of getting debugable modules]] which didn't had all information optimized away. THe relevant flags could be set directly in the routing feed like this: +Some other ideas are documented in [[Emulation_Debug#Using-GDB]]. This document also contains important hints about [[Emulation_Debug#Building-the-batman-adv-module|increasing the chance of getting debugable modules]] which didn't had all information optimized away. The relevant flags could be set directly in the routing feed like this:
<pre> diff --git a/batman-adv/Makefile b/batman-adv/Makefile diff --git a/open-mesh/Emulation_Debug.textile b/open-mesh/Kernel_hacking_Debian_image.textile similarity index 100% rename from open-mesh/Emulation_Debug.textile rename to open-mesh/Kernel_hacking_Debian_image.textile diff --git a/open-mesh/Emulation.textile b/open-mesh/Vde_switch_virtual_network.textile similarity index 100% rename from open-mesh/Emulation.textile rename to open-mesh/Vde_switch_virtual_network.textile