Changes between Version 2 and Version 3 of DebuggingWithQEMUAndGDB


Ignore:
Timestamp:
2016-07-09T14:41:42Z (8 years ago)
Author:
Jakub Jermář
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • DebuggingWithQEMUAndGDB

    v2 v3  
    11= Using QEMU and GDB to debug kernel and uspace tasks =
    22[[PageOutline(2-3)]]
     3
     4{{{#!box type=note
     5Some of the debugging techniques and procedures described in this article are illustrated on an example involving the [wiki:Arch/Ia32 ia32] architecture. Other architectures should behave in a similar or analogous way, but dealing with potential differences is left to the reader as an exercise.
     6}}}
    37
    48The combination of QEMU and GDB allows HelenOS to be comfortably debugged either on the assembly or the source code level. For detailed information on low-level debugging, see for example this [http://d3s.mff.cuni.cz/teaching/crash_dump_analysis/ course] on crash dump analysis.
     
    123127== Useful macros ==
    124128
    125 When debugging the kernel, it is sometimes useful to find out some information about the current process. For that, we will need to mimic the computation of the `THE` structure. We will start by defining a macro:
     129When debugging the kernel, it is sometimes useful to find out some information about the current process. For that, we will need to mimic the computation of the address of the `THE` structure. We will start by defining a macro:
    126130
    127131{{{