Repository : ssh://git@open-mesh.org/doc
On branches: backup-redmine/2019-11-07,master
commit 71231b61fa3338720dc54b2ebe2edc8a14045ed9 Author: Sven Eckelmann sven@narfation.org Date: Sun Oct 27 18:36:20 2019 +0000
doc: open-mesh/Kernel_debugging_with_qemu's_GDB_server
71231b61fa3338720dc54b2ebe2edc8a14045ed9 open-mesh/Kernel_debugging_with_qemu's_GDB_server.textile | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/open-mesh/Kernel_debugging_with_qemu's_GDB_server.textile b/open-mesh/Kernel_debugging_with_qemu's_GDB_server.textile index 5217b46..6411ba3 100644 --- a/open-mesh/Kernel_debugging_with_qemu's_GDB_server.textile +++ b/open-mesh/Kernel_debugging_with_qemu's_GDB_server.textile @@ -8,11 +8,12 @@ h2. Debugging Session
The debugging session with gdb can be started from the linux-next directory:
-<pre> -$ gdb -iex "set auto-load safe-path scripts/gdb/" -ex 'target remote 127.0.0.1:23001' -ex c ./vmlinux -</pre> +<pre><code class="shell"> +gdb -iex "set auto-load safe-path scripts/gdb/" -ex 'target remote 127.0.0.1:23001' -ex c ./vmlinux +</code></pre> +
-The module can now be loaded in the qemu instance. After that, we have to reload the symbol information via <code>lx-symbol</code> and can set any kind of breakpoints on the batman-adv module: +The module can now be loaded in the qemu instance as normal. But after that, we have to reload the symbol information via <code>lx-symbol</code>. This allows us to set any kind of breakpoints on the batman-adv module and to to get useful backtraces in gdb:
<pre> ^C