Solaris kernel debugging: Difference between revisions
From Lolly's Wiki
Jump to navigationJump to search
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
* Direkt in den Debugger booten | * Direkt in den Debugger booten | ||
< | <pre> | ||
ok> boot -kd | ok> boot -kd | ||
... | ... | ||
Line 6: | Line 6: | ||
kmdb: unable to determine terminal type: assuming `vt100' | kmdb: unable to determine terminal type: assuming `vt100' | ||
[0]> | [0]> | ||
</ | </pre> | ||
oder bei x86 Grubeintrag auswählen und in der "kernel"-Zeile -kd hinzufügen... | oder bei x86 Grubeintrag auswählen und in der "kernel"-Zeile -kd hinzufügen... | ||
* Mod-Debug aktivieren | * Mod-Debug aktivieren | ||
< | <pre> | ||
[0]> moddebug/W 0x80000000 | [0]> moddebug/W 0x80000000 | ||
moddebug: 0 = 0x80000000 | moddebug: 0 = 0x80000000 | ||
Line 16: | Line 16: | ||
SunOS Release 5.10 Version Generic_141415-07 64-bit | SunOS Release 5.10 Version Generic_141415-07 64-bit | ||
... | ... | ||
</ | </pre> | ||
* Mod-Kmem aktivieren | * Mod-Kmem aktivieren | ||
< | <pre> | ||
[0]> kmem_flags/W 0x0000000f | [0]> kmem_flags/W 0x0000000f | ||
kmem_flags: 0 = 0xf | kmem_flags: 0 = 0xf | ||
Line 25: | Line 25: | ||
SunOS Release 5.10 Version Generic_141415-07 64-bit | SunOS Release 5.10 Version Generic_141415-07 64-bit | ||
... | ... | ||
</ | </pre> | ||
* Mod-snooping aktivieren | * Mod-snooping aktivieren | ||
< | <pre> | ||
[0]> snooping/W 0x1 | [0]> snooping/W 0x1 | ||
snooping: 0 = 0x1 | snooping: 0 = 0x1 | ||
Line 34: | Line 34: | ||
SunOS Release 5.10 Version Generic_141415-07 64-bit | SunOS Release 5.10 Version Generic_141415-07 64-bit | ||
... | ... | ||
</ | </pre> | ||
* Stack ausgeben lassen | * Stack ausgeben lassen | ||
< | <pre> | ||
[0]> $c | [0]> $c | ||
</ | </pre> | ||
* Letzte Meldungen | * Letzte Meldungen | ||
< | <pre> | ||
[0]> ::msgbuf | [0]> ::msgbuf | ||
</ | </pre> | ||
* Crashdump schreiben lassen bei x86-Systemen | * Crashdump schreiben lassen bei x86-Systemen | ||
< | <pre> | ||
panic... | panic... | ||
[0]> $<systemdump | [0]> $<systemdump | ||
</ | </pre> | ||
* Links | * Links |
Revision as of 07:48, 23 May 2012
- Direkt in den Debugger booten
ok> boot -kd ... Welcome to kmdb kmdb: unable to determine terminal type: assuming `vt100' [0]>
oder bei x86 Grubeintrag auswählen und in der "kernel"-Zeile -kd hinzufügen...
- Mod-Debug aktivieren
[0]> moddebug/W 0x80000000 moddebug: 0 = 0x80000000 [0]> :c SunOS Release 5.10 Version Generic_141415-07 64-bit ...
- Mod-Kmem aktivieren
[0]> kmem_flags/W 0x0000000f kmem_flags: 0 = 0xf [0]> :c SunOS Release 5.10 Version Generic_141415-07 64-bit ...
- Mod-snooping aktivieren
[0]> snooping/W 0x1 snooping: 0 = 0x1 [0]> :c SunOS Release 5.10 Version Generic_141415-07 64-bit ...
- Stack ausgeben lassen
[0]> $c
- Letzte Meldungen
[0]> ::msgbuf
- Crashdump schreiben lassen bei x86-Systemen
panic... [0]> $<systemdump