Changes between Version 2 and Version 3 of DebuggingWithQEMUAndGDB
- Timestamp:
- 2016-07-09T14:41:42Z (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
DebuggingWithQEMUAndGDB
v2 v3 1 1 = Using QEMU and GDB to debug kernel and uspace tasks = 2 2 [[PageOutline(2-3)]] 3 4 {{{#!box type=note 5 Some 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 }}} 3 7 4 8 The 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. … … 123 127 == Useful macros == 124 128 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:129 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 address of the `THE` structure. We will start by defining a macro: 126 130 127 131 {{{