Sveiki,
norėdami įdiegti Solaris 10u9 mdb programėlę susidiekime SUNWmdb ir SUNWmdbr paketus. Visų pirma prijunkime CD.ISO, kas gali būti atlikta tik iš globalios zonos (Jei nenaudojate konteinerių, tai galėjote pabraukto teksto ir neskaityti
):
lofiadm -a /tmp/software.iso /dev/lofi/1
mount -F hsfs -o ro /dev/lofi/1 /mnt
Pereikim į mum reikiamą aplanką
cd /mnt/Solaris_10/Product
Susimeskim visą tai:
pkgadd -d . SUNWmdb
pkgadd -d . SUNWmdbr
Toliau beliko arba prisijungti (ir sustabdyti) procesą: mdb -p ĖPID arba atidaryti core/dump failą: mdb core_dump
Na va o daba mdb komandos:
- Control Commands
- Input & Output Commands
- Format Specifications
- System Examination
- Target Examination
- Tracing, Watchpoints & Breakpoints
- General Debugging
| Control Commands | |
|---|---|
$< or $<< |
Replace input with a macro or source a macro. |
$>filename or::log filename |
Log session to a file. If no filename, use default. |
| |
Pipe. Allows simple commands to be joined. |
! |
Shell escape. Acts as a pipe to a shell command. (Not available in kmdb.) |
// |
Comment. Following words on the same line are ignored. |
$M |
Show built-in macros (Kernel debugger only). |
$Pstring |
Set prompt to string. |
$Q::quit |
Quit. (From kmdb, use -u option to avoid exiting to ok> prompt.) |
$W |
Re-open target in writable mode. |
$p |
Change target context. |
$w |
Control output page width. |
:A |
Attach to a process or core file. |
:R |
Release attachment. |
:k |
Kill and release targets. |
$v |
Print non-zero variables. |
>::typeset |
Assign a variable. |
::dcmds |
Print available commands. |
::nm |
Print symbol table. (-P specifies a private symbol table. Manipulated with ::nmaddand ::nmdelete |
::help dcmd |
Provide usage notes on a dcmd. |
::typeset |
Manipulate variable. |
::walk |
Walk data structure. |
::walkers |
List available walkers. |
| Input & Output Commands | |
|---|---|
$< $<< |
Replace input with a macro or source a macro. |
$>filename |
Log session to a file. If no filename, use default. |
address/format-spec/format-spec |
Read the value in a memory addressformatted as format-spec. If no address is provided, use dot. |
address/W value |
Write the value in the four bytes starting with address. If no address is provided, usedot. v, w or Z may also be used instead of Wto write 1, 2 or 8 bytes, respectively. |
address=format-spec=format-spec |
Format immediate value of address or dot. |
? |
Read/write primary object file. |
@format-spec |
Read/write physical address as format-spec. |
\format-spec |
Read/write physical address as format-spec. |
The difference between / and = is subtle. For example, to find the address holding the value of the maxphys symbol in decimal, we would run:
maxphys=D
To find the value inside the above address, we would use / like:
maxphys/D
| General Debugging | |
|---|---|
$G |
Toggle C++ demangling. |
$V |
Toggle disassembly mode. |
$g |
Toggle C++ demangling. |
address::dis |
Disassemble text starting at address. |
| Comparison Operators | |
|---|---|
== |
Logical equality. |
!= |
Logical inequality. |
& |
Bitwise AND. |
| |
Bitwise OR. |
^ |
Bitwise XOR. |





jis tiesiog parodo kas šiuo metu daroma, neuždarykite jo.
