kolibrios/data/rus/docs/MTDBG.TXT
Ivan Baravy 5999d4ca6c docs, MTDBG.TXT:
link to the forum changed from meos.sysbin.com to board.kolibrios.org
diamond's e-mail removed, as he officially left the project


git-svn-id: svn://kolibrios.org@2742 a494cfbc-eb01-0410-851d-a64ba20cac60
2012-06-05 11:52:07 +00:00

221 lines
11 KiB
Plaintext
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

‚¢¥¤¥­¨¥.
mtdbg ¯à¥¤áâ ¢«ï¥â ᮡ®© ®â« ¤ç¨ª ¤«ï ®¯¥à æ¨®­­®© á¨á⥬ë Kolibri. „ ­­ ï
¤®ªã¬¥­â æ¨ï ®¯¨á뢠¥â ¢®§¬®¦­®á⨠®â« ¤ç¨ª  ¨ à ¡®âã á ­¨¬. ¢®¯à®á ¬¨ ¬®¦­®
®¡à é âìáï ­  ­ è ä®à㬠-- board.kolibrios.org.
Ž¡é¥¥ ®¯¨á ­¨¥.
ª ¦¤ë© ¬®¬¥­â ¢à¥¬¥­¨ mtdbg ¬®¦¥â ®â« ¦¨¢ âì ⮫쪮 ®¤­ã ¯à®£à ¬¬ã. <20> §®¢ñ¬
â ªãî ¯à®£à ¬¬ã § £à㦥­­®© ¤«ï ®â« ¤ª¨. …᫨ ­¨ª ª ï ¯à®£à ¬¬  ­¥ § £à㦥­ ,
 ¡á®«îâ­®¥ ¡®«ì設á⢮ ¤¥©á⢨© ¯® ®â« ¤ª¥ ­¥¤®áâ㯭®.
mtdbg ã¯à ¢«ï¥âáï ª®¬ ­¤­®© áâப®©, ¢¢®¤¨¬®© á ª« ¢¨ âãàë. Š®¬ ­¤­ ï áâப 
¨§®¡à ¦ ¥âáï ¢ ­¨¦­¥© ç á⨠®ª­  ®â« ¤ç¨ª . Ž¡à ¡ â뢠îâáï áâ ­¤ àâ­ë¥ ª« ¢¨è¨
¢¢®¤  Backspace,Delete,Home,End,áâ५ª¨ ¢«¥¢®/¢¯à ¢®.
Š®¬ ­¤ë ­¥çã¢á⢨⥫ì­ë ª ॣ¨áâàã ᨬ¢®«®¢. ª ç¥á⢥ à §¤¥«¨â¥«ï
¨á¯®«ì§ã¥âáï ¯à®¨§¢®«ì­®¥ ­¥­ã«¥¢®¥ ç¨á«® ¯à®¡¥«®¢.
«î¡®© ¬®¬¥­â ®â« ¤ç¨ª ¬®¦­® § ¢¥àè¨âì ª®¬ ­¤®© "quit" (¡¥§  à£ã¬¥­â®¢).
‚¯à®ç¥¬, ¬®¦­® ¨ ¯à®áâ® ­ ¦ âì ­  ª­®¯ªã § ªàëâ¨ï ¢ «¥¢®¬ ¢¥àå­¥¬ 㣫㠮ª­ .
‡ ¯ã᪠®â« ¤ç¨ª  ¡¥§ ¯ à ¬¥â஢ ª®¬ ­¤­®© áâப¨ ¯à¨¢®¤¨â ª ⮬ã, çâ®
­¨ª ª ï ¯à®£à ¬¬  ­¥ § £à㦥­ . ’ ª¦¥ mtdbg ¬®¦­® § ¯ã᪠âì á ª®¬ ­¤­®©
áâப®©, ¢ í⮬ á«ãç ¥ ®­ ¯®¯ëâ ¥âáï § £à㧨âì ¯à®£à ¬¬ã á ¨¬¥­¥¬, 㪠§ ­­ë¬
ª ª ¯¥à¢ë©  à£ã¬¥­â ª®¬ ­¤­®© áâப¨, ¨ ¯ à ¬¥âà ¬¨, 㪠§ ­­ë¬¨ ª ª
¯®á«¥¤ãî騥 (¥á«¨ ®­¨ ¥áâì).
…᫨ ­¨ª ª ï ¯à®£à ¬¬  ­¥ § £à㦥­ , â® ¬®¦­® § £à㧨âì ¯à®£à ¬¬ã ª®¬ ­¤®©
load <¯®«­®¥ ¨¬ï ¨á¯®«­ï¥¬®£® ä ©« > [< à£ã¬¥­âë>]
<EFBFBD> ¯à¨¬¥à:
load /rd/1/example
LOAD /rd/1/aclock w200 h200
LoaD /hd0/1/menuetos/dosbox/dosbox
‚áñ, çâ® á⮨⠯®á«¥ ¯¥à¢®£® ¯à®¡¥«  ¯®á«¥ ¨¬¥­¨ ¨á¯®«­ï¥¬®£® ä ©« , ¤®á«®¢­®
¯¥à¥¤ ñâáï ¯à®£à ¬¬¥ ¢ ª ç¥á⢥ ª®¬ ­¤­®© áâப¨.
Š®¬ ­¤  load á®®¡é ¥â ® १ã«ìâ â¥ ¢ ®ª­¥ á®®¡é¥­¨© (­¥¬­®£® ¢ëè¥ ®ª­ 
ª®¬ ­¤­®© áâப¨). …᫨ ¯à®£à ¬¬ã 㤠«®áì § £à㧨âì, â® ®¡ í⮬ ¯®ï¢¨âáï
ᮮ⢥âáâ¢ãî饥 á®®¡é¥­¨¥; ¥á«¨ ­¥ 㤠«®áì, â® ¢ á®®¡é¥­¨¨ ¡ã¤¥â 㪠§ ­ 
¯à¨ç¨­  ®è¨¡ª¨. <20> ¨¡®«¥¥ ¢¥à®ïâ­ ï - "file not found", ¥á«¨ ­¥¯à ¢¨«ì­® 㪠§ ­®
¨¬ï ä ©« .
Žâ« ¤ç¨ª ¬®¦¥â § £à㦠âì ä ©«ë á ¨­ä®à¬ æ¨¥© ®¡ ¨¬¥­ å ¢ ¯à®£à ¬¬¥ (¬¥âª¨,
£«®¡ «ì­ë¥ ¯¥à¥¬¥­­ë¥) - ⥪áâ®¢ë¥ ä ©«ë, ª ¦¤ ï áâப  ª®â®àëå ¨¬¥¥â ¢¨¤
0x<hex_§­ ç¥­¨¥_ ¤à¥á > <¨¬ï>
(áâப¨, ­¥ ¨¬¥î騥 â ª®© ¢¨¤, ¨£­®à¨àãîâáï). ’ ª®© ä ©« ¬®¦¥â ¡ëâì ᮧ¤ ­
¢àãç­ãî ¨«¨ ᣥ­¥à¨à®¢ ­  ¢â®¬ â¨ç¥áª¨ ¯à¨ ª®¬¯¨«ï樨 ¨á室­¨ª  fasm'®¬.
Ÿ¢­ ï § £à㧪  ®áãé¥á⢫ï¥âáï ª®¬ ­¤®©
load-symbols <¯®«­®¥ ¨¬ï ä ©«  ᨬ¢®«®¢>
Šà®¬¥ ⮣®, ¯à¨ ¢ë¯®«­¥­¨¨ ª®¬ ­¤ë load ®â« ¤ç¨ª ¯à®¢¥àï¥â ­ «¨ç¨¥ ä ©« 
á â ª¨¬ ¦¥ ¨¬¥­¥¬, ª ª § £à㦠¥¬ë© ¡¨­ à­¨ª, ¨ à áè¨à¥­¨¥¬ .dbg
(/rd/1/example.dbg ¤«ï ¯¥à¢®¬ ¨§ ¯à¨¬¥à®¢ ¢ëè¥), ¨ ¥á«¨ â ª®© ¥áâì,
§ £à㦠¥â ¥£®  ¢â®¬ â¨ç¥áª¨ (¢ë¤ ¢ ï á®®¡é¥­¨¥ "Symbols loaded", ¥á«¨ ¢áñ ¢
¯®à浪¥).
Œ®¦¥â á«ãç¨âìáï â ª, çâ® § £à㦥­­ ï ¯à®£à ¬¬  㯠ª®¢ ­ . Ž¡é¨© ¯à¨­æ¨¯
㯠ª®¢ª¨ ¯à®£à ¬¬ á«¥¤ãî騩: á­ ç «  ¨á室­ë© ä ©« ¯ ªã¥âáï (ª ª¨¬-­¨¡ã¤ì
 «£®à¨â¬®¬ ᦠâ¨ï), ¯®â®¬ ¯à¨¯¨á뢠¥âáï ­¥¡®«ì让 ¯® à §¬¥àã ª®¤, ª®â®àë©
¯®«ãç ¥â ã¯à ¢«¥­¨¥ ¯à¨ § ¯ã᪥ ¯à®£à ¬¬ë, à á¯ ª®¢ë¢ ¥â ¢ ¯ ¬ï⨠¨á室­ë© ª®¤,
¯®á«¥ 祣® ¯¥à¥¤ ñâ ¥¬ã ã¯à ¢«¥­¨¥. …᫨ ¯à®£à ¬¬  㯠ª®¢ ­ , â® ¥ñ "­ áâ®ï騩"
ª®¤ ­¥ ¢¨¤¥­ ¨ ¤«ï ®â« ¤ª¨ ­ã¦­® ¯à¥¤¢ à¨â¥«ì­® ¯à®©â¨ ª®¤ à á¯ ª®¢é¨ª .
mtdbg ®¯à¥¤¥«ï¥â ¡®«ì設á⢮ áãé¥áâ¢ãîé¨å 㯠ª®¢é¨ª®¢ (mxp,mxp_lzo,mxp_nrv,
mtappack) ¨ ¢ í⮬ á«ãç ¥ ¯à¥¤« £ ¥â  ¢â®¬ â¨ç¥áª¨ ¯à®©â¨ ¤® "­ áâ®ï饣®" ª®¤ .
<EFBFBD>¥ª®¬¥­¤ã¥âáï ᮣ« á¨âìáï (­ ¦ âì 'y' ¨«¨ <Enter>), ­® ¬®¦­® ¨ ®âª § âìáï.
<EFBFBD>ਠ®âª §¥ ¨ ¢ á«ãç ¥, ª®£¤  ¯à®£à ¬¬  㯠ª®¢ ­  祬-â® ­¥¨§¢¥áâ­ë¬, ¬®¦­®
¨á¯®«ì§®¢ âì ª®¬ ­¤ã "unpack" (¡¥§  à£ã¬¥­â®¢). ‚ë§ë¢ ©â¥ ¥ñ ⮫쪮 ¢ á«ãç ¥,
ª®£¤  ¢ë 㢥७ë, çâ® ¯à®£à ¬¬  㯠ª®¢ ­  ¨ çâ® ã¯à ¢«¥­¨¥ ¥éñ ­¥ ¤®è«® ¤®
®á­®¢­®£® ª®¤ ! [<5B> ç¨­ ï á ¢¥àᨨ Kolibri 0.6.5.0, ¢¥áì íâ®â  ¡§ æ 㦥
­¥ ªâã «¥­, ¯®áª®«ìªã ¯à¨«®¦¥­¨ï ¬®¦­® 㯠ª®¢ë¢ âì ª ª «î¡ë¥ ¤¢®¨ç­ë¥ ä ©«ë
kpack'®¬ ¨ ¯à¨ í⮬ ª®¤ à á¯ ª®¢é¨ª  ­ å®¤¨âáï ¢ ï¤à¥ ¨ à á¯ ª®¢ª  ¯à®§à ç­ 
¤«ï ®â« ¤ª¨.]
‡ £à㦥­­ãî ¯à®£à ¬¬ã ¬®¦­® ¯à¨¡¨âì ª®¬ ­¤®© "terminate" (¡¥§  à£ã¬¥­â®¢).
Š®¬ ­¤  "detach" (¡¥§  à£ã¬¥­â®¢) ®âª«îç ¥âáï ®â ¯à®£à ¬¬ë, ¯®á«¥ 祣®
¯à®£à ¬¬  ¯à®¤®«¦ ¥â ¢ë¯®«­ïâìáï ­®à¬ «ì­®, ª ª ¥á«¨ ¡ë ®â« ¤ç¨ª  ­¥ ¡ë«®.
<EFBFBD>®á«¥ ®¡¥¨å íâ¨å ª®¬ ­¤ ¯à®£à ¬¬  ¯¥à¥áâ ñâ ¡ëâì ®â« ¦¨¢ ¥¬®©.
Œ®¦­® § ­®¢® § £à㧨âì ¯à®£à ¬¬ã ¤«ï ®â« ¤ª¨ ª®¬ ­¤®© "reload" (¡¥§
 à£ã¬¥­â®¢). …᫨ 㦥 ¥áâì § £à㦥­­ ï ¯à®£à ¬¬ , â® ®­  ¯à¨¡¨¢ ¥âáï ¨
§ ¯ã᪠¥âáï (á á ¬®£® ­ ç « ) ­®¢ë© íª§¥¬¯«ïà (á ⮩ ¦¥ ª®¬ ­¤­®© áâப®©),
¢ í⮬ á«ãç ¥ ª®¬ ­¤   ­ «®£¨ç­  ª®¬ ­¤ ¬
terminate
load <last program name> <last program arguments>
¯à®â¨¢­®¬ á«ãç ¥ § ­®¢® § £à㦠¥âáï ¯à®£à ¬¬ , ª®â®àãî ®â« ¦¨¢ «¨ ¯®á«¥¤­¥©
(¢ ⥪ã饬 ᥠ­á¥ à ¡®âë á mtdbg) (á ⮩ ¦¥ ª®¬ ­¤­®© áâப®©), â.¥. ¯®ç⨠â®
¦¥ á ¬®¥, çâ® ¨
load <last program name> <last program arguments>,
­® ª®¬ ­¤  reload ¢ ®¡®¨å á«ãç ïå ª®à®ç¥ ¨ 㤮¡­¥¥; ªà®¬¥ ⮣®, load áç¨â ¥â,
çâ® § £à㦠¥âáï ­®¢ ï ¯à®£à ¬¬ , ¨ ¯¥à¥¢®¤¨â ®ª­® ¤ ­­ëå (á¬. ­¨¦¥) ­ 
­ã«¥¢®©  ¤à¥á,   reload á®åà ­ï¥â ⥪ã騩  ¤à¥á.
‚ᥣ¤  ¤®áâ㯭  ª®¬ ­¤  "help", ª®â®àãî ¬®¦­® ᮪à é âì ¤® "h".
‚ᥠª®¬ ­¤ë à §¡¨âë ­  £à㯯ë.
help ¡¥§  à£ã¬¥­â®¢ ¯®ª §ë¢ ¥â ᯨ᮪ £à㯯 ª®¬ ­¤.
help á 㪠§ ­¨¥¬ £àã¯¯ë ¢ë¢®¤¨â ᯨ᮪ ª®¬ ­¤ í⮩ £à㯯ë á ªà âª¨¬¨
ª®¬¬¥­â à¨ï¬¨.
help á 㪠§ ­¨¥¬ ª®¬ ­¤ë ¢ë¢®¤¨â ¨­ä®à¬ æ¨î ® § ¤ ­­®© ª®¬ ­¤¥.
<EFBFBD> ¯à¨¬¥à:
help
help control
h LoaD
Žª­® ®â« ¤ç¨ª  á®á⮨⠨§ á«¥¤ãîé¨å í«¥¬¥­â®¢, ¯¥à¥ç¨á«ï¥¬ëå ᢥàåã ¢­¨§:
- áâப  á®áâ®ï­¨ï. <20>ਠ­ «¨ç¨¨ § £à㦥­­®© ¯à®£à ¬¬ë ¯®ª §ë¢ ¥â ¥¥ ¨¬ï ¨
á®áâ®ï­¨¥ ("Running"/"Paused"), ¯à¨ ®âáãâá⢨¨ á®®¡é ¥â "No program loaded".
- ®ª­® ॣ¨áâ஢ - ¯®ª §ë¢ ¥â §­ ç¥­¨ï ॣ¨áâ஢ ®¡é¥£® ­ §­ ç¥­¨ï, ॣ¨áâà 
eip ¨ ॣ¨áâà  ä« £®¢. <20>®á«¥¤­¨© § ¯¨á ­ ¤¢ã¬ï ᯮᮡ ¬¨: ¯®«­®¥ hex-§­ ç¥­¨¥
¨ á®áâ®ï­¨ï ®â¤¥«ì­ëå ä« £®¢: CF,PF,AF,ZF,SF,DF,OF: ¥á«¨ ä« £ á¡à®è¥­, â®
¨§®¡à ¦ ¥âáï ¬ «¥­ìª ï ¡ãª¢ , ¥á«¨ ãáâ ­®¢«¥­, â® § £« ¢­ ï.
<20>¥£¨áâàë, ¨§¬¥­¨¢è¨¥áï á ¯à¥¤ë¤ã饣® ¬®¬¥­â , ¯®¤á¢¥ç¨¢ îâáï §¥«¥­ë¬.
- ®ª­® ¤ ­­ëå (®ª­® ¤ ¬¯ ) - ¯®ª §ë¢ ¥â ᮤ¥à¦¨¬®¥ ¯ ¬ï⨠§ £à㦥­­®© ¯à®£à ¬¬ë
- ®ª­® ª®¤  (®ª­® ¤¨§ áᥬ¡«¥à ) - ¯®ª §ë¢ ¥â ª®¤ ¯à®£à ¬¬ë ¢ ¢¨¤¥
¤¨§ áᥬ¡«¨à®¢ ­­ëå ¨­áâàãªæ¨©
- ®ª­® á®®¡é¥­¨©
- ®ª­® ª®¬ ­¤­®© áâப¨
®ª­¥ ¤ ¬¯  ¬®¦­® ¯à®á¬ âਢ âì ¤ ­­ë¥, ­ ç¨­ ï á «î¡®£®  ¤à¥á , ¤«ï í⮣®
¥áâì ª®¬ ­¤ 
d <¢ëà ¦¥­¨¥>
Š®¬ ­¤  d ¡¥§  à£ã¬¥­â®¢ ¯à®«¨áâ뢠¥â ®ª­® ¤ ¬¯  ¢­¨§.
’® ¦¥ á ¬®¥ ®â­®á¨âáï ª ®ª­ã ª®¤  ¨ ª®¬ ­¤¥
u <¢ëà ¦¥­¨¥>
¨«¨ ¯à®áâ® u.
<EFBFBD> ¯à¨¬¥à:
d esi - ¯®ª §ë¢ ¥â ¤ ­­ë¥, ­ å®¤ï騥áï ¯®  ¤à¥áã esi (­ ¯à¨¬¥à, ¯®«¥§­  ¯¥à¥¤
¢ë¯®«­¥­¨¥¬ ¨­áâàãªæ¨¨ rep movsb)
d esp - ¯®ª §ë¢ ¥â á⥪
u eip - ¤¨§ áᥬ¡«¨àã¥â ¨­áâàãªæ¨¨, ­ ç¨­ ï á ⥪ã饩
‚ëà ¦¥­¨ï ¢ mtdbg ¬®£ãâ ¢ª«îç âì
- è¥áâ­ ¤æ â¥à¨ç­ë¥ ª®­áâ ­âë
- ¨¬¥­  ¢á¥å ॣ¨áâ஢ ®¡é¥£® ­ §­ ç¥­¨ï (8 32-¡¨â­ëå, 8 16-¡¨â­ëå ¨
8 8-¡¨â­ëå) ¨ ॣ¨áâà  eip; §­ ç¥­¨ï 16- ¨ 8-¡¨â­ëå ॣ¨áâ஢ à áè¨àïîâáï
­ã«ï¬¨ ¤® 32 ¡¨â
- ç¥âëॠ à¨ä¬¥â¨ç¥áª¨¥ ®¯¥à æ¨¨ +,-,*,/ (á® áâ ­¤ àâ­ë¬¨ ¯à¨®à¨â¥â ¬¨) ¨
᪮¡ª¨
- [¥á«¨ ¥áâì ¨­ä®à¬ æ¨ï ® ᨬ¢®« å] ¨¬¥­ , § £à㦥­­ë¥ ¨§ dbg-ä ©« 
‚ᥠ¢ëç¨á«¥­¨ï ¯à®¨§¢®¤ïâáï ¯® ¬®¤ã«î 2^32.
<EFBFBD>ਬ¥àë ¢ëà ¦¥­¨©:
eax
eip+2
ecx-esi-1F
al+AH*bl
ax + 2* bH*(eip+a73)
3*esi*di/EAX
Š®¬ ­¤ 
? <¢ëà ¦¥­¨¥>
¢ëç¨á«ï¥â §­ ç¥­¨¥ 㪠§ ­­®£® ¢ëà ¦¥­¨ï.
‡­ ç¥­¨ï ॣ¨áâ஢ § £à㦥­­®© ¯à®£à ¬¬ë ¬®¦­® ¨§¬¥­ïâì ª®¬ ­¤®© r, ¨¬¥î饩
¤¢¥  ¡á®«îâ­® íª¢¨¢ «¥­â­ë¥ ä®à¬ë:
r <ॣ¨áâà> <¢ëà ¦¥­¨¥>
r <ॣ¨áâà>=<¢ëà ¦¥­¨¥>
(¢ ®¡®¨å á«ãç ïå ¬®¦­® à ááâ ¢«ïâì ¯à®¡¥«ë ¯® ¢ªãáã). ª ç¥á⢥ ॣ¨áâà  ¬®¦­®
㪠§ë¢ âì «î¡®© ¨§ ¢ëè¥ã¯®¬ï­ãâëå - 24 ॣ¨áâà  ®¡é¥£® ­ §­ ç¥­¨ï ¨ eip.
„®¯ãá⨬, ª®¬ ­¤  load ãᯥ譮 § £à㧨«  ¯à®£à ¬¬ã ¤«ï ®â« ¤ª¨.
‘ࠧ㠯®á«¥ § £à㧪¨ ¯à®£à ¬¬  ¯à¨®áâ ­®¢«¥­  ¨ ­¥ ¢ë¯®«­ï¥âáï.
<EFBFBD> ¦ â¨¥ Ctrl+F7 ( ­ «®£ ª®¬ ­¤­®© áâப¨ - ª®¬ ­¤  "s") ¤¥« ¥â ®¤¨­ è £ ¢
§ £à㦥­­®© ¯à®£à ¬¬¥, ¯®á«¥ 祣® ã¯à ¢«¥­¨¥ ¢®§¢à é ¥âáï ®â« ¤ç¨ªã, ª®â®àë©
¯®ª §ë¢ ¥â ­®¢®¥ ᮤ¥à¦¨¬®¥ ॣ¨áâ஢ ¨ ¯ ¬ïâ¨. ‘¨á⥬­ë© ¢ë§®¢ int 40h
(  â ª¦¥ ¨­áâàãªæ¨¨ sysenter ¨ syscall) ¯à¨ í⮬ áç¨â ¥âáï ®¤­¨¬ è £®¬.
<EFBFBD> ¦ â¨¥ Ctrl+F8 ( ­ «®£ ª®¬ ­¤­®© áâப¨ - ª®¬ ­¤  "p") â ª¦¥ ¤¥« ¥â è £ ¢
§ £à㦥­­®© ¯à®£à ¬¬¥, ­® ¯à¨ í⮬ ¢ë§®¢ë ¯à®æ¥¤ãà, áâப®¢ë¥ ®¯¥à æ¨¨ á
¯à¥ä¨ªá®¬ rep/repz/repnz ¨ 横«ë loop ¢ë¯®«­ïîâáï ª ª ®¤¨­ è £.
Š®¬ ­¤ë ¯®è £®¢®£® ¢ë¯®«­¥­¨ï ¨á¯®«ì§ãîâáï, ª ª ¯à ¢¨«®, ­  ®â¤¥«ì­ëå ãç á⪠å
¯à®£à ¬¬ë, ª®£¤  ­ã¦­®, ­ ¯à¨¬¥à, ॣã«ïà­® ®âá«¥¦¨¢ âì §­ ç¥­¨ï ॣ¨áâ஢
¨/¨«¨ ª ª¨å-â® ¯¥à¥¬¥­­ëå ¢ ¯ ¬ïâ¨.
Š®¬ ­¤ 
g <¢ëà ¦¥­¨¥>
¢®§®¡­®¢«ï¥â ¢ë¯®«­¥­¨¥ ¯à®£à ¬¬ë ¨ ¦¤ñâ, ¯®ª  ã¯à ¢«¥­¨¥ ¤®©¤ñâ ¤®
eip=ᮮ⢥âáâ¢ãîé¥¬ã  ¤à¥áã,   ¢ íâ®â ¬®¬¥­â ¯à¨®áâ ­ ¢«¨¢ ¥â ¯à®£à ¬¬ã.
Š®¬ ­¤  "g" ¡¥§  à£ã¬¥­â®¢ ¯à®áâ® ¢®§®¡­®¢«ï¥â ¢ë¯®«­¥­¨¥ ¯à®£à ¬¬ë.
<EFBFBD>ਮáâ ­®¢¨âì ¢ë¯®«­¥­¨¥ ¯à®£à ¬¬ë ¬®¦­® ª®¬ ­¤®© "stop" (¡¥§  à£ã¬¥­â®¢).
Ž¡ëç­® âॡã¥âáï, çâ®¡ë ¯à®£à ¬¬  ­®à¬ «ì­® ¢ë¯®«­ï« áì, ­® ¯à¨ ­ áâ㯫¥­¨¨
®¯à¥¤¥«ñ­­ëå ãá«®¢¨© ¯à®£à ¬¬  ¯à¨®áâ ­ ¢ « áì ¨ ã¯à ¢«¥­¨¥ ¯®«ãç « ®â« ¤ç¨ª.
‘®®â¢¥âáâ¢ãî騥 ãá«®¢¨ï ­ §ë¢ îâáï â®çª ¬¨ ®áâ ­®¢ , breakpoint(s), ¢
¯à®áâ®à¥ç¨¨ - ¡à猪¬¨. <20>à®á⥩訩 ⨯ â®ç¥ª ®áâ ­®¢  - ­  ª®­ªà¥â­ë©  ¤à¥á,
â.¥. ¯à¥à뢠âì ¢ë¯®«­¥­¨¥ ¯à¨ eip=<§ ¤ ­­®¥ §­ ç¥­¨¥>. ’ ª¨¥ â®çª¨ ®áâ ­®¢ 
ãáâ ­ ¢«¨¢ îâáï ª®¬ ­¤®©
bp <¢ëà ¦¥­¨¥>
‡ ¬¥ç ­¨¥. …᫨ ¥áâì ⮫쪮 ®¤­  â ª ï â®çª  ®áâ ­®¢ , 㤮¡­¥¥ ¢¬¥áâ® ­¥ñ
¨á¯®«ì§®¢ âì ª®¬ ­¤ã "g" á  à£ã¬¥­â®¬.
„à㣮© ⨯ â®ç¥ª ®áâ ­®¢  - ¯® ®¡à é¥­¨î ª § ¤ ­­®¬ã ãç áâªã ¯ ¬ïâ¨.
’ ª¨å â®ç¥ª ®áâ ­®¢  ¬®¦¥â ¡ëâì ­¥ ¡®«ìè¥ ç¥âëàñå (¯®áª®«ìªã ¨á¯®«ì§ãîâáï
 ¯¯ à â­ë¥ ¢®§¬®¦­®á⨠¯à®æ¥áá®à®¢ x86, £¤¥ ¤®¯ã᪠îâáï ⮫쪮 4 â ª¨å â®çª¨).
bpm <¢ëà ¦¥­¨¥> - ¡à猪¥âáï ­  «î¡®© ¤®áâ㯠ª ¡ ©âã ¯® 㪠§ ­­®¬ã  ¤à¥áã
bpm w <¢ëà ¦¥­¨¥> - ¡à猪¥âáï ­  § ¯¨áì ¡ ©â  ¯® 㪠§ ­­®¬ã  ¤à¥áã
bpmb,bpmw,bpmd <¢ëà ¦¥­¨¥> - ¡à猪îâáï ­  ¤®áâ㯠ª ᮮ⢥âá⢥­­® ¡ ©âã, á«®¢ã
¨ ¤¢®©­®¬ã á«®¢ã ¯® 㪠§ ­­®¬ã  ¤à¥áã. bpm ¨ bpmb - ᨭ®­¨¬ë. <20>ਠ¨á¯®«ì§®¢ ­¨¨
bpmw,bpmd  ¤à¥á ¤®«¦¥­ ¡ëâì ¢ë஢­¥­ ᮮ⢥âá⢥­­® ­  £à ­¨æã á«®¢  (â.¥. ¡ëâì
çñâ­ë¬) ¨«¨ ­  £à ­¨æã ¤¢®©­®£® á«®¢  (â.¥. ¤¥«¨âìáï ­  4).
bpmb,bpmw,bpmd w <¢ëà ¦¥­¨¥> -  ­ «®£¨ç­® ¤«ï ¡à猪 ­  § ¯¨áì.
‘¯¨á®ª ãáâ ­®¢«¥­­ëå â®ç¥ª ®áâ ­®¢  ¬®¦­® ¯à®á¬®âà¥âì ª®¬ ­¤®© "bl", ¨­ä®à¬ æ¨î
® ª®­ªà¥â­®© â®çª¥ ®áâ ­®¢  ¬®¦­® ¯®«ãç¨âì á ¯®¬®éìî "bl <­®¬¥à>". <20>¥­ã¦­ë¥
â®çª¨ ®áâ ­®¢  㤠«ïîâáï ª®¬ ­¤®© "bc <­®¬¥à>", ¢à¥¬¥­­® ­¥­ã¦­ë¥ ¬®¦­®
§ ¯à¥â¨âì ª®¬ ­¤®© "bd <­®¬¥à>", ª®£¤  ®­¨ áâ ­ãâ á­®¢  ­ã¦­ë, ¨á¯®«ì§ã©â¥
ª®¬ ­¤ã "be <­®¬¥à>".
‡ ¬¥ç ­¨ï.
1. <20>ਠ®â« ¤ª¥ ᮡá⢥­­ëå ¯à®£à ¬¬ ¬®¦­® ¢áâ ¢«ïâì ¢ ª®¤ ¨­áâàãªæ¨¨
int3 (®¡à â¨â¥ ¢­¨¬ ­¨¥ ­  ®âáãâá⢨¥ ¯à®¡¥« !). ’ ª ï ¨­áâàãªæ¨ï ¢ë§ë¢ ¥â
¨áª«î祭¨¥ ¯à¨ ­®à¬ «ì­®¬ § ¯ã᪥, çâ® ¯à¨¢¥¤ñâ ª § ¢¥à襭¨î ¯à®æ¥áá ,
­® ¯à¨ à ¡®â¥ ¯®¤ ®â« ¤ç¨ª®¬ ¯à®áâ®  ªâ¨¢¨§¨àã¥âáï ®â« ¤ç¨ª (á á®®¡é¥­¨¥¬
"int3 command at xxx"). <20>â® ¯®§¢®«ï¥â ­¥ ¤ã¬ âì ® ⮬, ª ª¨¥  ¤à¥á 
¨á¯®«ì§®¢ âì ¢ ª®¬ ­¤ å g ¨/¨«¨ bp. Œ®¦­® â ª¦¥ £¥­¥à¨à®¢ âì ä ©« á
¨­ä®à¬ æ¨¥© ® ᨬ¢®« å ¨ § £à㦠âì ¥£®, ⮣¤  ­¥ ⮫쪮 ­¥â ­ã¦¤ë
á ¬®áâ®ï⥫쭮 ¢ëç¨á«ïâì  ¤à¥á  ¤«ï "g" ¨ "bp", ­® ¨ "u","d","?" ¡ã¤ãâ
¯®­¨¬ âì 㪠§ ­¨¥ ¨¬¥­¨ ¬¥âª¨/¯¥à¥¬¥­­®©.
2. ‚¥áì ¢ë¢®¤ ¨ ¢¥áì ¢¢®¤ ®à¨¥­â¨à®¢ ­ ­  16-à¨ç­ãî á¨á⥬ã áç¨á«¥­¨ï.
3. Š®£¤  ¯à®£à ¬¬  ¢ë¯®«­ï¥âáï, ®ª­  ॣ¨áâ஢ ¨ ¤ ­­ëå ¯®ª §ë¢ îâ ¨­ä®à¬ æ¨î,
®â­®áïéãîáï ª ¬®¬¥­âã ¤® ¢®§®¡­®¢«¥­¨ï; ãáâ ­®¢ª  §­ ç¥­¨© ॣ¨áâ஢ ¢
í⮬ ०¨¬¥ ­¥¢®§¬®¦­ . ‚¯à®ç¥¬, ª®¬ ­¤  "d" ¢ í⮬ ०¨¬¥ ¯®ª §ë¢ ¥â
¨­ä®à¬ æ¨î, ¢¥à­ãî ¢ ¬®¬¥­â ¢ë¤ ç¨ ª®¬ ­¤ë.
diamond