home *** CD-ROM | disk | FTP | other *** search
/ The Developer Connection…ice Driver Kit for OS/2 3 / DEV3-D1.ISO / devtools / pmdebug / pmdebug.hlp (.txt) < prev    next >
Encoding:
OS/2 Help File  |  1993-08-01  |  50.6 KB  |  1,653 lines

  1.  
  2. ΓòÉΓòÉΓòÉ <hidden> Abstract ΓòÉΓòÉΓòÉ
  3.  
  4. PM Debug is an OS/2 PM 32 bit application to be used in conjunction with the 
  5. debug version of the OS/2 kernel. The application is run on your development 
  6. system, giving you a PM interface from which you may issue debug commands to 
  7. your test machine. 
  8.  
  9. Features include: 
  10.  
  11. o Configurable PM environment 
  12. o Buffering/editing of debug commands 
  13. o Programable function keys 
  14. o Easy memory editing 
  15. o Up to 32 programmable command buttons 
  16. o Drag and drop features 
  17. o Automatic execution stepping 
  18. o Formatted memory displays 
  19. o Remote debugging 
  20. o Logging 
  21.  
  22. Related Topics 
  23.  
  24. o Acknowledgments 
  25.  
  26.  
  27. ΓòÉΓòÉΓòÉ <hidden> Acknowledgments ΓòÉΓòÉΓòÉ
  28.  
  29. PM Debug was written by Mike Walsh as a self imposed project to learn PM 
  30. programming and just grew out of control. 
  31.  
  32. In addition to the dozens of beta testers, I would also like to single out the 
  33. following people for their contributions toward this application: 
  34.  
  35. o Doug Barra 
  36. o Beth Chen 
  37. o Ken Keller 
  38. o Rafael Solorzano 
  39. o Charlie Schmitt 
  40.  
  41.  
  42. ΓòÉΓòÉΓòÉ 1. Main window ΓòÉΓòÉΓòÉ
  43.  
  44. The window is comprised of the display area, the command entry field and 
  45. optionally a set of command buttons. 
  46.  
  47. The display area is where output from the debug system will be displayed.  It 
  48. contains approximately 60K worth of data and can be scrolled back for viewing. 
  49.  
  50. The command entry field is located below the display area.  You will use this 
  51. control to enter the kernel debug commands. 
  52.  
  53. You may optionally display up to four sets of eight command buttons beneath the 
  54. command line.  These buttons are fully programmable and allow you to perform 
  55. your most often command via mouse input. 
  56.  
  57.  
  58. ΓòÉΓòÉΓòÉ 1.1. Display Area ΓòÉΓòÉΓòÉ
  59.  
  60. The display area is the large field on the main window containing both a 
  61. vertical and horizontal scrollbar. It can contain about 60K worth of data, 
  62. after which about 10K is deleted from the top each time the limit is reached. 
  63.  
  64. As data is received from the debug machine, it is displayed in this control. 
  65. Except for clearing the existing text you cannot modify the data shown here. 
  66. Commands to the debug machine are entered in the command entry field. 
  67.  
  68. Related Topics 
  69.  
  70. o Scrolling the display 
  71. o Copying display text 
  72. o Dragging display text 
  73. o Clearing the display 
  74. o Text searches 
  75.  
  76.  
  77. ΓòÉΓòÉΓòÉ 1.1.1. Display Area: Scrolling ΓòÉΓòÉΓòÉ
  78.  
  79. Scrolling the display area text is usually performed by applying the mouse to 
  80. either the vertical or horizontal scrollbars contained in the display area. 
  81.  
  82. When the display area has focus, you can scroll the displayed text up and down 
  83. by entering the PgUp and PgDn keys.  This will scroll the display area one page 
  84. in the specified direction.  Applying the Ctrl-PgUp and Ctrl-PgDn keys will 
  85. scroll the display left and right one page.  Finally the Ctrl-Home and Ctrl-End 
  86. keys will scroll to the top and bottom of the text respectively. 
  87.  
  88. The display area can be scrolled when the focus is on the command entry field 
  89. by using the keys combinations listed above. Additionally the Ctrl-Up and 
  90. Ctrl-Down Arrow keys will scroll the display text. 
  91.  
  92. When new text is added (i.e. data come in from the debugged system), the 
  93. display will jump to the end of the text. Thus while you can try scrolling the 
  94. display while text is being entered, it will not work well. 
  95.  
  96. You may notice a tendency for the last line to creep up the display as you make 
  97. entries and receive responses.  A Ctrl-Home followed by a Crtl-End should gets 
  98. things synchronized. 
  99.  
  100. When the text buffer becomes full (around 64K worth of data), the program will 
  101. remove text (about 10K) from the top if the list.  When this occurs, the 
  102. display area will pause for a second or so then repaint. 
  103.  
  104.  
  105. ΓòÉΓòÉΓòÉ 1.1.2. Display Area: Copying text ΓòÉΓòÉΓòÉ
  106.  
  107. You may mark a section of the displayed text using mouse or keys and copy the 
  108. selected text to the clipboard using the standard Ctrl-Ins key combination. 
  109. This text may then be pasted to any application which can normally accept such 
  110. an operation. This can be very handy if you forgot to start a log file and need 
  111. to save some results. 
  112.  
  113. Note: cutting the text is not allowed. 
  114.  
  115.  
  116. ΓòÉΓòÉΓòÉ 1.1.3. Display Area: Dragging text ΓòÉΓòÉΓòÉ
  117.  
  118. To alleviate the tedium and errors caused by typing address (especially 32 bit 
  119. ones) the application allows you to mark text in the display area and drag it 
  120. to various controls where it may be dropped. 
  121.  
  122. Marking text is achieved by moving the pointer to the text to be marked. Press 
  123. and holding button 1 of the mouse down. Now move the mouse across the text 
  124. holding down the mouse button. When the marked text is complete, release the 
  125. mouse button. 
  126.  
  127. To initiate the drag, press and hold mouse button 2. If the pointer changes 
  128. into a broken pencil the drag has been initiated. Only a single line may be 
  129. dragged. If the pencil does not appear check that the marked area is wholly 
  130. contained on a single line. 
  131.  
  132. Once the drag has started, while holding the mouse button, move the broken 
  133. pencil to the command entry field or onto a command button. The broken pencil 
  134. will change to an unbroken one when the drop may be performed. 
  135.  
  136. Related Topics 
  137.  
  138. o Dropping text on command entry field 
  139. o Dropping text on command buttons 
  140.  
  141.  
  142. ΓòÉΓòÉΓòÉ 1.1.4. Display Area: Context menu ΓòÉΓòÉΓòÉ
  143.  
  144. To display the context menu for the display area: position the pointer over the 
  145. display area, press and immediately release button 2 of the mouse. 
  146.  
  147. From the context menu, you may clear part or all of the display text or 
  148. initiate a text search. 
  149.  
  150. To remove the menu without selecting an option, either click button 1 of the 
  151. mouse anywhere off the menu or hit the Esc key. 
  152.  
  153. Related Topics 
  154.  
  155. o Clearing the display 
  156. o Text searches 
  157. o Editing memory 
  158.  
  159.  
  160. ΓòÉΓòÉΓòÉ 1.1.5. Display Area: Clearing ΓòÉΓòÉΓòÉ
  161.  
  162. To clear the text from the display area, bring up the context menu and select 
  163. the Clear All option. This may take a second or so if there is a large amount 
  164. of text to be cleared. 
  165.  
  166. You may also program a command button to perform this task by setting its 
  167. command to the string *CLEAR. 
  168.  
  169. To clear a portion of the display: mark the text to be cleared, bring up the 
  170. context menu and select the Clear Selection option. 
  171.  
  172. Related Topics 
  173.  
  174. o Display context menu 
  175. o Programming command buttons 
  176.  
  177.  
  178. ΓòÉΓòÉΓòÉ 1.1.6. Display Area: Text searches ΓòÉΓòÉΓòÉ
  179.  
  180. The search facility allows you scan the display text for a particular string. 
  181. To set the search parameters, bring up the context menu for the display area 
  182. and select the Search option. This will display the search dialog. 
  183.  
  184. Fill in the desired search parameters and select the OK button to perform the 
  185. search operation. Searching begins at the cursor location within the display 
  186. area. The text, if found, will be highlighted in the display area. 
  187.  
  188. To repeat the search with the same parameters enter the Ctrl-F key combination. 
  189. Each time this operation is performed, the highlighted text area will be 
  190. relocated to the next found occurrence. 
  191.  
  192. Related Topics 
  193.  
  194. o Display context menu 
  195. o Entering search parameters 
  196.  
  197.  
  198. ΓòÉΓòÉΓòÉ 1.1.7. Display Area: Editing memory ΓòÉΓòÉΓòÉ
  199.  
  200. To quickly change a memory value, select the text display the memory location 
  201. to be changed, bring up the display area's context menu and select the Edit 
  202. Memory option. 
  203.  
  204. This causes the Edit Memory window to surface and loads it with the selected 
  205. memory location as if the text had been dropped into it. 
  206.  
  207. Related Topics 
  208.  
  209. o Display context menu 
  210. o Edit Memory Window 
  211.  
  212.  
  213. ΓòÉΓòÉΓòÉ 1.1.8. Display Area: Colors and fonts ΓòÉΓòÉΓòÉ
  214.  
  215. To change the background color of the main window display area, open the OS/2 
  216. system color palette.  Then simply drag and drop the desired color onto the 
  217. display area.  The foreground color is changed by holding the Ctrl key down 
  218. while dropping the selected color. 
  219.  
  220. The font can be changed by dragging and dropping a font from the OS/2 system 
  221. font palette onto the display area. 
  222.  
  223. Related Topics 
  224.  
  225. o Saving the setup 
  226. o Saving window size/positions 
  227.  
  228.  
  229. ΓòÉΓòÉΓòÉ 1.2. Command entry field ΓòÉΓòÉΓòÉ
  230.  
  231. The command entry field is located below the display area.  Type in your debug 
  232. command into this field and press the Enter  key or double click with button 1 
  233. of the mouse to send the command to the debug system. It has a maximum length 
  234. of 100 characters. 
  235.  
  236. Since the command is not sent to the debug system until the enter or double 
  237. click, you may use all editing keys to modify the command prior to sending. 
  238.  
  239. Focus will be shifted to this entry field from the display area by entering the 
  240. TAB  key or most any key not used to scroll the display area text. 
  241.  
  242. Related Topics 
  243.  
  244. o Repeating/Editing commands 
  245. o Dropping text 
  246.  
  247.  
  248. ΓòÉΓòÉΓòÉ 1.2.1. Cmd Line: Repeating/Editing commands ΓòÉΓòÉΓòÉ
  249.  
  250. A buffer of the last 50 commands entered is kept available for reuse. These may 
  251. be view via the command line support window.  Only commands of 3 or more 
  252. characters will be placed into this buffer.  A repeat of the last command in 
  253. the buffer or executing a command via function keys will not cause an entry 
  254. into the buffer. 
  255.  
  256. To load the buffered command, press the Up  or Down Arrow  keys until the 
  257. desired command appears in the command entry field.  You may then execute it 
  258. immediately or perform edit operation before execution. 
  259.  
  260. Frozen commands may be scrolled by holding the Shift key down and entering the 
  261. arrow keys. 
  262.  
  263. All editing features of the entry fields are supported, including cut and 
  264. paste. 
  265.  
  266. Related Topics 
  267.  
  268. o Freezing a buffered command 
  269.  
  270.  
  271. ΓòÉΓòÉΓòÉ 1.2.2. Cmd Line: Scroll buttons ΓòÉΓòÉΓòÉ
  272.  
  273. You can scroll the buffered commands by applying the mouse to either of the two 
  274. button to the right of the command line.  The operation of the button 
  275. corresponds to the arrow key indicated on the button.  That is, the button with 
  276. the up arrow will perform the same operation as the up arrow  key. 
  277.  
  278.  
  279. ΓòÉΓòÉΓòÉ 1.2.3. Cmd Line: Dropping text ΓòÉΓòÉΓòÉ
  280.  
  281. The command entry field is usually a valid target for text drops from the 
  282. display area or memory displays.  When dragging text from the display area, if 
  283. the broken pencil become whole when entering the entry field, you may position 
  284. the point of the pencil at the location you want the text to be inserted. 
  285. Releasing button 2  of the mouse, inserts the text. 
  286.  
  287. At present there is no reformatting of the dropped text. 
  288.  
  289.  
  290. ΓòÉΓòÉΓòÉ 1.2.4. Cmd Line: Colors and fonts ΓòÉΓòÉΓòÉ
  291.  
  292. To change the background color of the command entry field, open the OS/2 system 
  293. color palette.  Then simply drag and drop the desired color onto the command 
  294. line entry.  The foreground color is changed by holding the Ctrl key down while 
  295. dropping the selected color. 
  296.  
  297. The font can be changed by dragging and dropping a font from the OS/2 system 
  298. font palette onto the command entry field. 
  299.  
  300. Related Topics 
  301.  
  302. o Saving the setup 
  303. o Saving window size/positions 
  304.  
  305.  
  306. ΓòÉΓòÉΓòÉ 1.3. Command buttons ΓòÉΓòÉΓòÉ
  307.  
  308. The PM debug application has four sets of eight command buttons. Each button 
  309. may be individually programmed to perform a debugger command. Any combination 
  310. of button sets may be displayed. 
  311.  
  312. Buttons are normally activated by clicking on them with Button 1 of the mouse 
  313. but you may define a mnemonic character in the button's text string and 
  314. activate the via the keyboard.  The button containing the entered mnemonic must 
  315. be displayed for it to be active.  The first button containing the entered 
  316. mnemonic will be executed.  Note that menu mnemonics have preference over the 
  317. button mnemonics. 
  318.  
  319. Another way to activate a button is to drop text from the display area onto the 
  320. button. For this to work you must have set the button to receive such a drop. 
  321.  
  322. Related Topics 
  323.  
  324. o Showing command buttons 
  325. o Programming command buttons 
  326. o Dropping text on command buttons 
  327.  
  328.  
  329. ΓòÉΓòÉΓòÉ 1.3.1. Cmd Btns: Showing ΓòÉΓòÉΓòÉ
  330.  
  331. To show a button set, select the option Options->Show Buttons from the main 
  332. window menu. This will open a sub menu containing a option for each button set. 
  333. If the option for a set is unchecked, that set is currently not being display. 
  334. Selecting an unchecked set will cause it to become displayed and vice versa. 
  335. Any combination of sets made be displayed. 
  336.  
  337. If you wish a particular setup of button to always be shown when starting the 
  338. application, you must save the setup after making your changes. 
  339.  
  340. Related Topics 
  341.  
  342. o Saving the setup 
  343.  
  344.  
  345. ΓòÉΓòÉΓòÉ 1.3.2. Cmd Btns: Programming ΓòÉΓòÉΓòÉ
  346.  
  347. Programming the command buttons is initiated via the Options->Edit Buttons menu 
  348. option. Selection of the option will cause the Edit Button dialog to be 
  349. displayed. 
  350.  
  351. Within the dialog you have the ability to set the face and command text of each 
  352. of the buttons. The face text is shown on the displayed buttons. The command 
  353. text is the command sent to the debug machine when that button is activated. 
  354.  
  355. If you did not save the button values from the dialog, you must save them via 
  356. the menu if you want them saved for the next session. 
  357.  
  358. Related Topics 
  359.  
  360. o Saving the setup 
  361. o Edit Buttons Dialog 
  362.  
  363.  
  364. ΓòÉΓòÉΓòÉ 1.3.3. Cmd Btns: Dropping text ΓòÉΓòÉΓòÉ
  365.  
  366. Command buttons may be programmed to accept text dragged from the display area. 
  367. This is done by entering the character $ within the command string for the 
  368. button. This character will be replaced with the dragged text when the drop 
  369. occurs on the button. If the button is activated via a mouse click, the 
  370. character is replaced with a blank. 
  371.  
  372. It is also possible to have particular types of dragged text to be reformatted 
  373. during the drop. The text being dragged must be either two 4 digit numbers or a 
  374. single 8 digit number. These strings can be formatted into 16 or 32 bit 
  375. addresses upon the drop. 
  376.  
  377. To format dropped text into a 16 bit address, enter the string $:16 into any 
  378. part of the command string for the button.  When the proper style text is 
  379. dropped on the button it will be replaced as described below. 
  380.  
  381. Dropped Text        Formatted as 
  382. 1234 5678           5678:1234 
  383. 12345678            1234:5678 
  384.  
  385. To format dropped text into a 32 bit address, enter the string $:32 into any 
  386. part of the command string for the button. When the proper style text is 
  387. dropped on the button it will be replaced as described below. 
  388.  
  389. Dropped Text        Formatted as 
  390. 1234 5678           %56781234 
  391. 12345678            %12345678 
  392.  
  393. Button which format the dropped text cannot be executed by a mouse click or 
  394. mnemonic key. Also for all types of drops, only one drop point is allowed in 
  395. the command string. Other are NOT translated. 
  396.  
  397. Related Topics 
  398.  
  399. o Dragging display text 
  400. o Programming command buttons 
  401.  
  402.  
  403. ΓòÉΓòÉΓòÉ 1.3.4. Cmd Btns: Colors and fonts ΓòÉΓòÉΓòÉ
  404.  
  405. To change the background color of any command button, open the OS/2 system 
  406. color palette.  Then simply drag and drop the desired color onto the button. 
  407. The foreground color is changed by holding the Ctrl key down while dropping the 
  408. selected color. 
  409.  
  410. The font can be changed by dragging and dropping a font from the OS/2 system 
  411. font palette onto the button. 
  412.  
  413. Related Topics 
  414.  
  415. o Saving the setup 
  416.  
  417.  
  418. ΓòÉΓòÉΓòÉ 2. Command list window ΓòÉΓòÉΓòÉ
  419.  
  420. The application maintains a buffer of the last 50 commands sent to the debug 
  421. machine. You can view the entire list from the command list window. To display 
  422. the list, select the menu option Support->Command List from the main window's 
  423. menu. 
  424.  
  425. You may also freeze buffered command. This feature will transfer the selected 
  426. command from the command buffer list into the frozen buffer. Command that have 
  427. been frozen will not be scrolled out of the list. 
  428.  
  429. To re-execute a command from a command list, select the desired command in a 
  430. list and either double click Button 1 on the mouse or press the Enter key. This 
  431. will copy the selected command to the main window's entry field and transfer 
  432. focus to the command entry field. 
  433.  
  434. Related Topics 
  435.  
  436. o Clearing a command buffer 
  437. o Execute on select 
  438. o Editing a buffered command 
  439. o Deleting a buffered command 
  440. o Freezing a buffered command 
  441. o Loading/Saving frozen commands 
  442. o Setting colors and fonts 
  443. o Saving window size/positions 
  444.  
  445.  
  446. ΓòÉΓòÉΓòÉ 2.1. Cmd List: Clearing the command buffer ΓòÉΓòÉΓòÉ
  447.  
  448. You may remove all buffered commands from either or both of the command lists. 
  449. Select the menu option Buffer->Clear  from the command list window menu.  Then 
  450. from the sub menu select the desired list to clear. The default is to clear the 
  451. command buffer list. 
  452.  
  453. You will be ask to verify your intent via a dialog.  Select the: Yes  to 
  454. proceed with the abort, the No  button to abort the clear. 
  455.  
  456. Related Topics 
  457.  
  458. o Deleting a buffered command 
  459.  
  460.  
  461. ΓòÉΓòÉΓòÉ 2.2. Cmd List: Editing a buffered command ΓòÉΓòÉΓòÉ
  462.  
  463. To edit a command from either list, select the command list item by clicking on 
  464. it with button 1  of the mouse. Bring up the context menu for the list by 
  465. clicking the Right  mouse button once.  Select the Edit Selection  option from 
  466. the context menu. A dialog containing the selected command will appear from 
  467. which you may change the command. 
  468.  
  469. Related Topics 
  470.  
  471. o Edit Buttons Dialog 
  472.  
  473.  
  474. ΓòÉΓòÉΓòÉ 2.3. Cmd List: Deleting a buffered command ΓòÉΓòÉΓòÉ
  475.  
  476. To delete a command from either list, select the command list item by clicking 
  477. on it with button 1  of the mouse.  Bring up the context menu for the list by 
  478. clicking the Right  mouse button once.  Select the Delete Selection  option 
  479. from the context menu. 
  480.  
  481. Related Topics 
  482.  
  483. o Clearing the command buffer 
  484.  
  485.  
  486. ΓòÉΓòÉΓòÉ 2.4. Cmd List: Freezing a buffered command ΓòÉΓòÉΓòÉ
  487.  
  488. As new commands are entered into the buffered command list, the top list item 
  489. may be removed.  To keep a command from being rotated out of the command list, 
  490. bring up context menu for the list by clicking the Right  mouse button once. 
  491. Select the Freeze Selection  option from the context menu.  A shortcut to 
  492. freeze commands is to select the desired command and press the Ins key. 
  493.  
  494. When a command is frozen, the frozen command list will appear on top of the 
  495. buffered command list. You can adjust the sizes of the two list by positioning 
  496. the mouse on the separating bar between the list. When the mouse changes to a 
  497. double arrow, press and hold the Left mouse button. Position the divider to the 
  498. new location and release the mouse button. This position can be saved. 
  499.  
  500. To unfreeze a command, you must delete it. When the last frozen command is 
  501. deleted, the frozen command list window is also removed. 
  502.  
  503. Related Topics 
  504.  
  505. o Loading/Saving frozen commands 
  506. o Deleting a buffered command 
  507. o Saving window size/positions 
  508.  
  509.  
  510. ΓòÉΓòÉΓòÉ 2.5. Cmd List: Loading/Saving frozen commands ΓòÉΓòÉΓòÉ
  511.  
  512. You may load a file of debugger commands directly into the frozen  command 
  513. buffer by selecting the option Options->Load Commands from the command window's 
  514. menu. In the resulting dialog, supply the filename of a ASCII file containing 
  515. the commands to be loaded. Multiple files may be read as a load does not remove 
  516. existing commands from the frozen buffer. 
  517.  
  518. You may save the command buffered in the list of frozen commands by selecting 
  519. the option Options->Save Commands. In the dialog that appears, specify the file 
  520. into which the commands are to be saved, 
  521.  
  522. These files may be edited by any editor with the stipulation each line is ended 
  523. with a carriage return. 
  524.  
  525. Related Topics 
  526.  
  527. o Freezing a buffered command 
  528. o Clearing a command buffer 
  529. o Deleting a buffered command 
  530.  
  531.  
  532. ΓòÉΓòÉΓòÉ 2.6. Cmd List: Execute on select option ΓòÉΓòÉΓòÉ
  533.  
  534. Normally double clicking on a command list item will just copy its text into 
  535. the main window's command entry field. You may choose to have the command 
  536. execute immediately by selecting the menu option Buffer->Execute On Select 
  537.  
  538.  
  539. ΓòÉΓòÉΓòÉ 2.7. Cmd List: Colors and fonts ΓòÉΓòÉΓòÉ
  540.  
  541. To change the background color of the command list window, open the OS/2 system 
  542. color palette.  Then simply drag and drop the desired color onto the window The 
  543. foreground color is changed by holding the Ctrl key down while dropping the 
  544. selected color. 
  545.  
  546. The font can be changed by dragging and dropping a font for the OS/2 system 
  547. font palette onto the window. 
  548.  
  549. Related Topics 
  550.  
  551. o Saving the setup 
  552. o Saving window size/positions 
  553.  
  554.  
  555. ΓòÉΓòÉΓòÉ 3. Programming Function Keys ΓòÉΓòÉΓòÉ
  556.  
  557. The function keys on the keyboard can easily be set to enter partial text 
  558. strings into the command entry field or to execute full command immediately. 
  559.  
  560. To change the current function key definitions select the menu option 
  561. Support->Function Keys from the main window's menu. This causes the function 
  562. key dialog to be shown. 
  563.  
  564. Related Topics 
  565.  
  566. o Function keys dialog 
  567.  
  568.  
  569. ΓòÉΓòÉΓòÉ 4. Breakpoint list window ΓòÉΓòÉΓòÉ
  570.  
  571. You can keep a list of breakpoints visible on the screen by displaying the 
  572. breakpoint list window. 
  573.  
  574. Besides viewing the current breakpoints, you can also perform the basic 
  575. breakpoint commands using the window's menu. 
  576.  
  577. Related Topics 
  578.  
  579. o Refreshing the breakpoint list 
  580. o Executing breakpoint commands 
  581.  
  582.  
  583. ΓòÉΓòÉΓòÉ 4.1. Brk List: Refreshing ΓòÉΓòÉΓòÉ
  584.  
  585. The breakpoint list is NOT automatically updated if you enter breakpoint 
  586. commands from the command entry field.  To resync this list select the menu 
  587. option Refresh from the breakpoint list window's menu. 
  588.  
  589. When you issue breakpoint commands from the breakpoint list window's menu, the 
  590. list is automatically refreshed. 
  591.  
  592. Note: that for this option to be available, you must first break execution on 
  593. the debug machine. 
  594.  
  595. Related Topics 
  596.  
  597. o Breakpoint commands 
  598.  
  599.  
  600. ΓòÉΓòÉΓòÉ 4.2. Brk List: Executing breakpoint commands ΓòÉΓòÉΓòÉ
  601.  
  602. You may Clear, Disable and Enable breakpoints from this window's menu. Simply 
  603. select the menu option Commands from this window menu. You will be presented 
  604. with the three breakpoint commands; with options for executing the command for 
  605. all existing breakpoints or just the selected one(s). Select the option you 
  606. want and the command is executed and the display list refreshed. 
  607.  
  608. Note: that for these options to be available, you must first break execution on 
  609. the debug machine. 
  610.  
  611.  
  612. ΓòÉΓòÉΓòÉ 4.3. Brk List: Colors and fonts ΓòÉΓòÉΓòÉ
  613.  
  614. To change the background color of the breakpoint window, open the OS/2 system 
  615. color palette.  Then simply drag and drop the desired color onto the window The 
  616. foreground color is changed by holding the Ctrl key down while dropping the 
  617. selected color. 
  618.  
  619. The font can be changed by dragging and dropping a font for the OS/2 system 
  620. font palette onto the window. 
  621.  
  622. Related Topics 
  623.  
  624. o Saving the setup 
  625. o Saving window size/positions 
  626.  
  627.  
  628. ΓòÉΓòÉΓòÉ 5. Edit Memory window ΓòÉΓòÉΓòÉ
  629.  
  630. This window allows you to edit memory without all that mucking about 
  631. calculating memory offsets. 
  632.  
  633. To load the window, mark the memory address shown in the display window. Then 
  634. either drag and drop it onto the edit memory window or select the edit memory 
  635. option from the display area's context menu. 
  636.  
  637. Once the memory values are display within the window you can change them simply 
  638. by typing in the new value in the proper field. As you type in the field, its 
  639. color will change indicating that the field needs to be applied. 
  640.  
  641. You apply the change to memory by either pressing the Enter  key or selecting 
  642. the Apply  menu option.  The change is only applied for the memory containing 
  643. the cursor. 
  644.  
  645. Related Topics 
  646.  
  647. o Close on set 
  648. o Changing colors and fonts 
  649. o Refreshing the memory display 
  650. o Setting the address to edit 
  651. o Edit as ascii / bytes / word / doubles 
  652. o Applying changes 
  653.  
  654.  
  655. ΓòÉΓòÉΓòÉ 5.1. Edit Mem: Close on set option ΓòÉΓòÉΓòÉ
  656.  
  657. When this is option is in effect and the last memory change is applied, the 
  658. edit memory window is closed automatically.  This is useful if you typically 
  659. set only one memory location at a time.  If you make many changes within the 
  660. same edit window you will probably what this option off. 
  661.  
  662. You toggle the state of the option by selecting the Options->Close on set menu 
  663. option on the edit memory window. 
  664.  
  665. The state of this option is saved when a setup save is performed. 
  666.  
  667. Related Topics 
  668.  
  669. o Saving the setup 
  670.  
  671.  
  672. ΓòÉΓòÉΓòÉ 5.2. Edit Mem: Changing colors and fonts ΓòÉΓòÉΓòÉ
  673.  
  674. The Edit Memory window contains two type of entry fields, one containing 
  675. changed values and the other with the unchanged values. You can set the colors 
  676. and fonts of these fields to show the differences. 
  677.  
  678. Selecting the menu option Options->Colors/Fonts will display a dialog from 
  679. which you can perform this task. 
  680.  
  681. You can also drag and drop the desired color or font onto any of the entry 
  682. fields. Once dropped, that color or font will be set for all fields of that 
  683. type. 
  684.  
  685. Related Topics 
  686.  
  687. o Saving the setup 
  688.  
  689.  
  690. ΓòÉΓòÉΓòÉ 5.3. Edit Mem: Refreshing the display ΓòÉΓòÉΓòÉ
  691.  
  692. To restore the Edit Memory window values to what actually in memory, select the 
  693. Options->Refresh menu option. This will cause any changes that have not been 
  694. applied to be removed and replaced with the current memory value. 
  695.  
  696.  
  697. ΓòÉΓòÉΓòÉ 5.4. Edit Mem: Edit as ascii / bytes / word / doubles ΓòÉΓòÉΓòÉ
  698.  
  699. You have the option of editing memory as:  ASCII characters, bytes, words or 
  700. doubles.  Select the desired mode from the Edit as... menu option.  The display 
  701. will then change to reflect your choice. 
  702.  
  703. If a memory edit is in progress when this option is selected, a refresh will 
  704. occur. Any changes not applied will be lost. 
  705.  
  706. The state of this option is saved when a setup save is performed. 
  707.  
  708. Related Topics 
  709.  
  710. o Refreshing the memory display 
  711. o Saving the setup 
  712.  
  713.  
  714. ΓòÉΓòÉΓòÉ 5.5. Edit Mem: Applying changes ΓòÉΓòÉΓòÉ
  715.  
  716. Once you have entered your changes, you must apply the change to cause the 
  717. memory location to be set. 
  718.  
  719. Position the cursor in the field to be applied by clicking on it with the mouse 
  720. or press the TAB key until the cursor is in the correct field. Then either 
  721. press the Enter key or select the Apply menu option. 
  722.  
  723. The memory location will be changed and the changed field will be reset to the 
  724. unchanged state. 
  725.  
  726. Related Topics 
  727.  
  728. o Close on set 
  729. o Changing colors and fonts 
  730.  
  731.  
  732. ΓòÉΓòÉΓòÉ 5.6. Edit Mem: Setting the address to edit ΓòÉΓòÉΓòÉ
  733.  
  734. Normally you would drag and drop an address on the edit window to set the 
  735. address to edit, but it can be set manually from the edit window's menu. Click 
  736. on the menu option Address->Set Address. A dialog will appear from which you 
  737. may enter in a new address. 
  738.  
  739. You can change the edit field in blocks of 16 bytes (a full edit window's 
  740. worth) by the menu option Address->Edit next block. This will add 16 to the 
  741. current address and automatically update the edit window. And of course you can 
  742. reverse the process by selecting the Address->Edit prev block menu option until 
  743. you reach the base address. 
  744.  
  745.  
  746. ΓòÉΓòÉΓòÉ 6. Memory Display windows ΓòÉΓòÉΓòÉ
  747.  
  748. A memory display window allows you to view memory formatted on the structure 
  749. definitions from your C code includes. A memory display format file (.MDF) is 
  750. created via the PM Debugger Structure Compiler (PMD_SC). This file is opened 
  751. against a memory display window and a memory address is set. The window when 
  752. refreshed will automatically show you the structure's types, elements and the 
  753. current memory values for each element of the structure. 
  754.  
  755. You may have up to 8 memory display windows open at any time. To create a new 
  756. window select the Support->Memory Display menu option from the main window. 
  757.  
  758. Related Topics 
  759.  
  760. o Setting the format 
  761. o Setting the address 
  762. o Setting the address drop config 
  763. o Saving format changes 
  764. o Saving the setup 
  765. o Memory item context menu 
  766. o Changing an item's display type 
  767. o Editting a memory item's value 
  768. o Refreshing the memory values 
  769. o Auto refresh option 
  770. o Dragging memory values 
  771. o Showing/Closing memory windows 
  772. o Changing the colors/fonts/sizes 
  773. o Creating MDF files 
  774.  
  775.  
  776. ΓòÉΓòÉΓòÉ 6.1. Mem Disp: Setting the format ΓòÉΓòÉΓòÉ
  777.  
  778. To set a format of a memory display window, select the option Options->Set 
  779. Format on that window's menu. A file dialog will be displayed listing the MDF 
  780. files. Select the file containing the desired format and click on the OK 
  781. button. The memory window will be updated to reflect the new format. 
  782.  
  783. When a new format is loaded the value window is cleared. It will not auto 
  784. refresh even if that option is in effect. 
  785.  
  786. Related Topics 
  787.  
  788. o Creating MDF files 
  789. o Auto refresh option 
  790.  
  791.  
  792. ΓòÉΓòÉΓòÉ 6.2. Mem Disp: Setting the address ΓòÉΓòÉΓòÉ
  793.  
  794. The memory address to be formatted by the window is set via the window's menu 
  795. option Options->Set Address->Address. This will display a dialog into which you 
  796. enter the desired memory address. 
  797.  
  798. The address is usually a hard coded value (e.g 0053:00001234) but could be a 
  799. global variable name.  Bear in mind though that the address must be known in 
  800. the current context when the refresh is performed. 
  801.  
  802. A quick way to set an address is to drag it from the main display window onto 
  803. the memory display window. Select the address on the main window, press and 
  804. hold the right mouse button. Drag the broken pencil pointer on top of the 
  805. memory display window. When the pointer changes to a whole pencil, release the 
  806. mouse button to set the window's address. 
  807.  
  808. When the address is set via a drag, the dropped address is formatted via the 
  809. window's drop configuration. Thus dragging the string "1234 5678" could be 
  810. formatted into either "5678:1234" or "%56781234" depending on your setup. 
  811.  
  812. Using either method to change the address will cause a refresh if the 
  813. auto-refresh option is i effect. 
  814.  
  815. Related Topics 
  816.  
  817. o Setting the address drop config 
  818. o Saving format changes 
  819. o Auto refresh option 
  820.  
  821.  
  822. ΓòÉΓòÉΓòÉ 6.3. Mem Disp: Setting the drop config ΓòÉΓòÉΓòÉ
  823.  
  824. Like the display buttons, you can specify how an address dropped on the memory 
  825. window is to be formatted. Selecting the menu option Options->Set 
  826. Address->Address will display a dialog to do this. 
  827.  
  828. This configuration can be saved in the MDF file. Once saved it will be used for 
  829. all windows with this format. 
  830.  
  831. Related Topics 
  832.  
  833. o Setting the address 
  834. o Saving format changes 
  835. o Drop configuration dialog 
  836.  
  837.  
  838. ΓòÉΓòÉΓòÉ 6.4. Mem Disp: Saving format changes ΓòÉΓòÉΓòÉ
  839.  
  840. The menu option Options->Save Setup->Save MDF Format  will save the setup for 
  841. the current memory window.  The setup is saved in the MDF file, so future 
  842. windows opened with this MDF file will used the setup. Also you may copy the 
  843. MDF files to other machines without destroying that machine's PMDEBUG.INI file. 
  844.  
  845. The setup for a MDF file includes the colors and fonts for each of the 
  846. sub-windows. The size of the memory display window and the positions of its 
  847. dividing borders. The address drop configuration, item display settings and any 
  848. menu option settings. 
  849.  
  850. Related Topics 
  851.  
  852. o Setting the address drop config 
  853. o Changing an item's display type 
  854. o Auto refresh option 
  855. o Changing the colors/fonts/sizes 
  856.  
  857.  
  858. ΓòÉΓòÉΓòÉ 6.5. Mem Disp: Saving the setup ΓòÉΓòÉΓòÉ
  859.  
  860. The menu option Options->Save Setup->System  will save the position and format 
  861. loaded for each memory window active.  When the next session of PM Debug is 
  862. started, these windows will be automatically created, positioned and loaded 
  863. with the same format.  The colors and fonts used will be those stored in the 
  864. MDF files loaded. 
  865.  
  866. The menu option Options->Save Setup->Window will save the size, position, 
  867. colors and fonts of the current memory window. These values will be used when a 
  868. memory window is created but has not yet had a format applied to it. 
  869.  
  870. Related Topics 
  871.  
  872. o Saving format changes 
  873. o Changing the colors/fonts/sizes 
  874. o Changing an item's display type 
  875.  
  876.  
  877. ΓòÉΓòÉΓòÉ 6.6. Mem Disp: Item context menu ΓòÉΓòÉΓòÉ
  878.  
  879. When a memory display has an item selected you can display a context menu for 
  880. that item to perform several tasks. Point to the selected item in either the 
  881. Type or Name sub-windows and click the left mouse button to popup the menu. 
  882.  
  883. From the menu you made refresh the selected item's memory value, edit the item 
  884. or change the item's display type 
  885.  
  886. Related Topics 
  887.  
  888. o Changing an item's display type 
  889. o Editting a memory item's value 
  890. o Refreshing the memory values 
  891.  
  892.  
  893. ΓòÉΓòÉΓòÉ 6.7. Mem Disp: Changing the item display type ΓòÉΓòÉΓòÉ
  894.  
  895. The structure compiler will set cause each item to be display in the mode 
  896. suited for its size. You may override it by setting the display type to another 
  897. mode. 
  898.  
  899. From the context menu for the item to be changed, select the Change Settings 
  900. option. This will display a dialog from which the option can be changed. Once 
  901. changed you may save the change in the MDF file. 
  902.  
  903. Related Topics 
  904.  
  905. o Saving format changes 
  906. o Memory item context menu 
  907.  
  908.  
  909. ΓòÉΓòÉΓòÉ 6.8. Mem Disp: Editting an item's value ΓòÉΓòÉΓòÉ
  910.  
  911. You can quickly edit a memory value by choosing the Edit Memory menu option 
  912. from the item's context menu. This will display the Edit Memory Window with the 
  913. proper address of the selected structure element. 
  914.  
  915. Related Topics 
  916.  
  917. o Memory item context menu 
  918. o Edit Memory Window 
  919.  
  920.  
  921. ΓòÉΓòÉΓòÉ 6.9. Mem Disp: Refreshing the memory values ΓòÉΓòÉΓòÉ
  922.  
  923. You may refresh the memory values for either the entire structure or a single 
  924. selected item. To perform refreshes the test system must be in debug mode and 
  925. the memory address for the display must be valid for the context the debugger 
  926. is operating. 
  927.  
  928. To refresh the entire display, select Refresh->All menu option for the desired 
  929. window. 
  930.  
  931. To refresh a single memory item, select the item by clicking on it. Then select 
  932. Refresh->Selected from the main menu or Refresh Memory for the item's context 
  933. menu. 
  934.  
  935. Related Topics 
  936.  
  937. o Memory item context menu 
  938. o Auto refresh option 
  939.  
  940.  
  941. ΓòÉΓòÉΓòÉ 6.10. Mem Disp: Auto refresh option ΓòÉΓòÉΓòÉ
  942.  
  943. When this option is in effect the entire display is refreshed when the address 
  944. is changed. 
  945.  
  946. The state of this option is saved in the MDF file. 
  947.  
  948. Related Topics 
  949.  
  950. o Setting the address 
  951. o Saving format changes 
  952. o Refreshing the memory values 
  953.  
  954.  
  955. ΓòÉΓòÉΓòÉ 6.11. Mem Disp: Dragging memory values ΓòÉΓòÉΓòÉ
  956.  
  957. To drag a memory value from a memory window, select the value to be dragged by 
  958. clicking on it. Position the pointer on the selected item within the Value 
  959. window and press and hold the right mouse button. The pointer should change 
  960. into a broken pencil. While holding the mouse button down, drag the pointer to 
  961. the desired drop window. When the pencil becomes whole you may release the 
  962. button to drop the data. 
  963.  
  964. If the memory window contains multiple word/address/etc, they are all dragged 
  965. to the drop window. 
  966.  
  967. The memory values may be dragged onto the main window buttons, the command line 
  968. or onto other display windows. 
  969.  
  970. It may also be dropped onto the title bar of its own memory window. This allows 
  971. the walking of a structure chain with a single memory window. 
  972.  
  973. Related Topics 
  974.  
  975. o Setting the address 
  976. o Setting the address drop config 
  977. o Dropping text on the command line 
  978. o Dropping text on command buttons 
  979.  
  980.  
  981. ΓòÉΓòÉΓòÉ 6.12. Mem Disp: Windows Operations ΓòÉΓòÉΓòÉ
  982.  
  983. From the Support->Memory Display->Window Operations  menu on the main display 
  984. window's menu, you are presented a sub menu of options. This menu is a set of 
  985. operation that will be applied to all existing memory display window. They 
  986. allow you to Hide, Show and Close all the memory windows at once. 
  987.  
  988. Before closing all the windows, the user is asked to verify the operation. 
  989.  
  990.  
  991. ΓòÉΓòÉΓòÉ 6.13. Mem Disp: Changing the colors/fonts/sizes ΓòÉΓòÉΓòÉ
  992.  
  993. To change the background color of any of the display's sub-windows, open the 
  994. OS/2 system color palette.  Then simply drag and drop the desired color onto 
  995. the sub-window The foreground color is changed by holding the Ctrl  key down 
  996. while dropping the selected color. 
  997.  
  998. The font can be changed by dragging and dropping a font for the OS/2 system 
  999. font palette onto the window. 
  1000.  
  1001. The size of each sub-window may be changed by placing the pointer on the 
  1002. dividing line between two of the windows.  When the pointer changes from the 
  1003. single arrow to a left-right arrow, press and hold the left mouse button. 
  1004. While holding the button adjust the window divider to the desired position and 
  1005. release the button. 
  1006.  
  1007. Related Topics 
  1008.  
  1009. o Saving format changes 
  1010. o Saving the setup 
  1011.  
  1012.  
  1013. ΓòÉΓòÉΓòÉ 6.14. Mem Disp: Creating MDF files ΓòÉΓòÉΓòÉ
  1014.  
  1015. MDF files are created via the PMD_SC program.  It is basically a font end 
  1016. compiler which uses the same includes file to compile the structures and create 
  1017. the MDF for those you specify on the command line. 
  1018.  
  1019. Refer to its README.DOC file for the particulars. 
  1020.  
  1021.  
  1022. ΓòÉΓòÉΓòÉ 7. Logging ΓòÉΓòÉΓòÉ
  1023.  
  1024. The PM Debug allows you to log all output from the debug machine. To start a 
  1025. log simply select the menu option Options->Logging from the main window's menu 
  1026. and provide a name for the log file. 
  1027.  
  1028. When logging is in progress, the name of the log file appears in the title bar 
  1029. of the main window. 
  1030.  
  1031.  
  1032. ΓòÉΓòÉΓòÉ 7.1. Logging: Stopping/Restarting ΓòÉΓòÉΓòÉ
  1033.  
  1034. To stop logging, select the same menu option used for starting (i.e. 
  1035. Options->Logging). This time the dialog will not appear but rather the menu 
  1036. option becomes unchecked and the log file name is removed from the main 
  1037. window's title bar. 
  1038.  
  1039. To resume logging to the same file, again select the logging menu option but 
  1040. this time select the Resume option from the resulting dialog. 
  1041.  
  1042.  
  1043. ΓòÉΓòÉΓòÉ 7.2. Logging: Adding a memo ΓòÉΓòÉΓòÉ
  1044.  
  1045. If logging is in progress, you may enter remarks or reminders into the log file 
  1046. by selecting the menu option Logging->Log Memo from the main window's menu. 
  1047.  
  1048. This bring up a dialog into which you may enter free form text which is then 
  1049. inserted into the log file. Each line of the not is preceded by the string ** 
  1050. to make it easy to locate your memos. 
  1051.  
  1052. Log memos are not entered into the display area. 
  1053.  
  1054.  
  1055. ΓòÉΓòÉΓòÉ 8. Auto-Step Execution ΓòÉΓòÉΓòÉ
  1056.  
  1057. No debugging task is more boring than single stepping through a section of 
  1058. code.  This feature allows you to automatically single step until you stop the 
  1059. execution. 
  1060.  
  1061. To start the auto step operation, you enter the command *AUTOSTEP from the 
  1062. command line. This string may also be programmed into a command button or 
  1063. function key. A break must be in effect on the debug kernel for the command to 
  1064. be successful. A beep will sound if the command failed. If auto stepping is 
  1065. started, a menu option titled AutoStep will appear on the main window's menu 
  1066. bar. 
  1067.  
  1068. To stop the auto-step feature either enter a Ctrl-C or re-enter the *AUTOSTEP 
  1069. command. A button or function key programmed with this command thus acts as a 
  1070. toggle and will both start and stop the operation. You may also stop it by 
  1071. selecting the AutoStep menu item which appeared when the feature was started. 
  1072.  
  1073. Please note that breakpoints and auto-stepping may not mix particularly well 
  1074. together. 
  1075.  
  1076. Related Topics 
  1077.  
  1078. o Auto-Step Settings 
  1079. o Programming command buttons 
  1080. o Programming function keys 
  1081.  
  1082.  
  1083. ΓòÉΓòÉΓòÉ 8.1. Auto-Stepping: Settings ΓòÉΓòÉΓòÉ
  1084.  
  1085. You can set a delay of 0 to 8 seconds between step commands while 
  1086. auto-stepping.  A separate delay time is set before a call assembly instruction 
  1087. is executed. Thus you can give yourself more time to stop the auto-step 
  1088. operation before such an instruction. 
  1089.  
  1090. Other setting include the ability to execute Trace commands instead of Steps. 
  1091. You can also inhibit the displaying of the register information and specify a 
  1092. command string to be executed after each step. 
  1093.  
  1094. To change the settings, select the Options->Auto Step option from the main 
  1095. window's menu. These settings can be saved in the application's INI file. 
  1096.  
  1097. Related Topics 
  1098.  
  1099. o Saving the setup 
  1100.  
  1101.  
  1102. ΓòÉΓòÉΓòÉ 9. Debug machine connections ΓòÉΓòÉΓòÉ
  1103.  
  1104. You can use PM Debug to debug machines locally or remotely. The local 
  1105. connection is made by connecting the machines serial ports with a NULL modem 
  1106. cable. A remote connection requires a Hayes compatible modem. 
  1107.  
  1108. Related Topics 
  1109.  
  1110. o Local connection 
  1111. o Remote connection 
  1112. o Disconnecting 
  1113.  
  1114.  
  1115. ΓòÉΓòÉΓòÉ 9.1. Local debugging ΓòÉΓòÉΓòÉ
  1116.  
  1117. To establish a local connection select the menu option Comm->Local from the 
  1118. main window's menu. If this option is disabled you are already connected to a 
  1119. debug machine (either locally or remotely) and you will need to disconnect to 
  1120. make the menu option available again. 
  1121.  
  1122. Once you have selected the menu option, a dialog appears from which you can 
  1123. select the serial port and connection parameters to be used. 
  1124.  
  1125. The default for the application is to establish a local connection using the 
  1126. connect parameters last saved. If you want to perform a remote debug or change 
  1127. the settings of a local debug, there are application parameters to override 
  1128. this default. 
  1129.  
  1130. Related Topics 
  1131.  
  1132. o Disconnecting 
  1133. o Saving the setup 
  1134. o Startup parameters 
  1135.  
  1136.  
  1137. ΓòÉΓòÉΓòÉ 9.2. Remote debugging ΓòÉΓòÉΓòÉ
  1138.  
  1139. To establish a remote connection select the menu option Comm->Remote from the 
  1140. main window's menu. If this option is disabled you are already connected to a 
  1141. debug machine (either locally or remotely) and you will need to disconnect to 
  1142. make the menu option available again. 
  1143.  
  1144. Once you have selected the menu option, a dialog appears from which you can 
  1145. select the site to call and the connection parameters to be used. 
  1146.  
  1147. Related Topics 
  1148.  
  1149. o Disconnecting 
  1150.  
  1151.  
  1152. ΓòÉΓòÉΓòÉ 9.3. Disconnecting ΓòÉΓòÉΓòÉ
  1153.  
  1154. To break a connection (either local or remote) select the menu option 
  1155. Comm->Disconnect from the main window's menu. The Comm options Local and Remote 
  1156. should become available for selection. 
  1157.  
  1158. Related Topics 
  1159.  
  1160. o Local connection 
  1161. o Remote connection 
  1162.  
  1163.  
  1164. ΓòÉΓòÉΓòÉ 10. Saving the setup ΓòÉΓòÉΓòÉ
  1165.  
  1166. To save the new colors, fonts, window sizes, positions and other settings, 
  1167. select the menu option Options->Save Setup  from any window's menu bar.  Unless 
  1168. this step is performed your setup will be lost when you close the application. 
  1169.  
  1170.  
  1171. ΓòÉΓòÉΓòÉ 10.1. Colors and fonts ΓòÉΓòÉΓòÉ
  1172.  
  1173. Most of the window and controls used by the PM Debug application allow you to 
  1174. save the dropped colors and fonts from the OS/2 system Color and Font Palettes. 
  1175.  
  1176. For those controls that do not and those which you have not drop one, the 
  1177. system default is used. 
  1178.  
  1179.  
  1180. ΓòÉΓòÉΓòÉ 10.2. Saving window size/positions ΓòÉΓòÉΓòÉ
  1181.  
  1182. The size and position of the: Main window, Command list and Breakpoint display 
  1183. are saved when the Save Setup  menu option is selected from any menu. 
  1184.  
  1185. Also saved is the visibility state of the windows. That is, if a window is 
  1186. visible when the option is selected, it will be made visible when the next 
  1187. session is started. 
  1188.  
  1189.  
  1190. ΓòÉΓòÉΓòÉ 11. Startup parameters ΓòÉΓòÉΓòÉ
  1191.  
  1192. When you start the application either from a command line or workplace object 
  1193. you may provide a startup parameter. These are: 
  1194.  
  1195. Argument       Description 
  1196. -nc            No connect, Says it all (used to debug the application) 
  1197.  
  1198.  
  1199. -r             Remote, The remote selection dialog is immediately displayed 
  1200.  
  1201.  
  1202. ΓòÉΓòÉΓòÉ 12. Breaking execution ΓòÉΓòÉΓòÉ
  1203.  
  1204. To break execution of the debug machine you first set focus on either the 
  1205. command entry field or the display area of the main window and enter the Ctrl-C 
  1206. key combination. This will cause the debug prompt to appear in the display area 
  1207. and focus to be set to the command entry field. 
  1208.  
  1209. You may also program a command button to perform this task by setting its 
  1210. command string to the text string *BREAK. Once set, activating this button will 
  1211. send the break command to the debug machine. 
  1212.  
  1213. Related Topics 
  1214.  
  1215. o Programming command buttons 
  1216.  
  1217.  
  1218. ΓòÉΓòÉΓòÉ <hidden> Setting log file name ΓòÉΓòÉΓòÉ
  1219.  
  1220. From this dialog you can set the name of the file to which the logging 
  1221. information is to be sent.  When the dialog first appears, the entry will 
  1222. contain the default filename.  If you wish, you may log to a different 
  1223. directory or drive by entering the full path name of the filename.  If only a 
  1224. name is given, it will be written to the current working directory. 
  1225.  
  1226. To start a new log file or overwrite an existing one, press the Start button. 
  1227.  
  1228. To continue logging to an existing log file, press the Resume button. 
  1229.  
  1230. Selecting the Cancel button will cancel the log file selection, 
  1231.  
  1232.  
  1233. ΓòÉΓòÉΓòÉ <hidden> Entering a log file memo ΓòÉΓòÉΓòÉ
  1234.  
  1235. This dialog allows to you enter text to be included in the current log file. 
  1236. Type the memo you wish to appear in the log and select the OK button.  The memo 
  1237. will then be written to the log file at that point but will not appear in the 
  1238. display area. 
  1239.  
  1240. Each memo line is preceded by the string ** to make them stand out. 
  1241.  
  1242. Selecting the Cancel button will abort the memo. 
  1243.  
  1244.  
  1245. ΓòÉΓòÉΓòÉ <hidden> Edit Buttons Dialog ΓòÉΓòÉΓòÉ
  1246.  
  1247. This dialog allows you to set the face and command text for each of the command 
  1248. buttons.  The face text is the string that show on the button.  The command 
  1249. text is the string sent to the debug machine when the button is activated. 
  1250.  
  1251. Each page of the notebook contain one set of the four button sets. Use the 
  1252. notebook tabs to switch to a different button set. You do NOT have to save each 
  1253. page individually. 
  1254.  
  1255. To set a mnemonic for a command button, place a ~ character before the desired 
  1256. mnemonic character for that button's face text. 
  1257.  
  1258. To make a button accept dropped text, place the $ character in the button's 
  1259. command string. 
  1260.  
  1261. Once your changes are complete, select the OK button to make them active. If 
  1262. you want them saved to the application's INI file, select the Save button 
  1263. first. 
  1264.  
  1265. To abort the changes, select the Cancel button. 
  1266.  
  1267. Related Topics 
  1268.  
  1269. o Command buttons 
  1270. o Dropping text on command buttons 
  1271.  
  1272.  
  1273. ΓòÉΓòÉΓòÉ <hidden> Edit command line ΓòÉΓòÉΓòÉ
  1274.  
  1275. From this dialog you may make changes to the command list item. Use the mouse 
  1276. and keyboard to effect the desired changes to the command. 
  1277.  
  1278. To save the changes, activate the OK  button and the changed line should appear 
  1279. in the command list window.  To exit without saving the changes, activate the 
  1280. Cancel  button. 
  1281.  
  1282.  
  1283. ΓòÉΓòÉΓòÉ <hidden> Edit function keys ΓòÉΓòÉΓòÉ
  1284.  
  1285. From this dialog you may make changes to the function keys. Use the mouse and 
  1286. keyboard to effect the desired changes to the function key's command strings. 
  1287.  
  1288. To set or reset the "execute on select" feature for a function key, check or 
  1289. uncheck the checkbox for the function key. Checked means that this option is in 
  1290. effect for the function key. Without this option pressing the function key will 
  1291. only copy its text into the display window's command line. 
  1292.  
  1293. Use the scroll bar on the right to view functions key not visible. Changes are 
  1294. not lost if they are scroll off the display. 
  1295.  
  1296. To apply the changes, activate the OK  button.  To exit without applying the 
  1297. changes, activate the Cancel  button. 
  1298.  
  1299. You may immediately save the changes into the PMDEBUG.INI file by selecting the 
  1300. Save button. 
  1301.  
  1302.  
  1303. ΓòÉΓòÉΓòÉ <hidden> Local connect parameters ΓòÉΓòÉΓòÉ
  1304.  
  1305. From this dialog you set the parameters to be used in establishing a local 
  1306. connection to a debug machine. There are three parameters to be set: 1) the 
  1307. comm port, 2) the baud rate and 3) the bit settings. 
  1308.  
  1309. To select the comm port point the mouse to the desired port icon and press the 
  1310. Button 1 on the mouse. The port's icon should become highlighted. 
  1311.  
  1312. To set the baud rate and bit settings, use the mouse to make the desired values 
  1313. become highlighted. 
  1314.  
  1315. When all settings are complete, activate the Connect  button to make the 
  1316. connection.  Once the connect is made the dialog disappears.  If there is a 
  1317. problem a message box will inform you as to a possible cause. 
  1318.  
  1319. To abort the setting of the parameters, select the Cancel button. 
  1320.  
  1321.  
  1322. ΓòÉΓòÉΓòÉ <hidden> Establishing remote connection ΓòÉΓòÉΓòÉ
  1323.  
  1324. Establishing a remote connection consists of two parts. First you set the 
  1325. parameters to be used, them make the connection. The connection is made via a 
  1326. Hayes compatible modem over a telephone line. 
  1327.  
  1328. Connection settings consists of a telephone number, comm port, baud rate and 
  1329. bit settings. The application has the ability to save these setting based on a 
  1330. given site name. All these settings are stored in a file named PMDEBUG.RMT. 
  1331.  
  1332. To redial an established site, simply select that site name from the list and 
  1333. activate the Dial button. Otherwise you must enter the settings and add a new 
  1334. site name to the list. the following topics tell you how to do this. 
  1335.  
  1336. Related Topics 
  1337.  
  1338. o Selecting a site 
  1339. o Setting parameters 
  1340. o Dialing out 
  1341. o Adding a site 
  1342. o Deleting a site 
  1343. o Changing a sitename 
  1344. o Saving changes 
  1345. o Site memos 
  1346. o Site information 
  1347.  
  1348.  
  1349. ΓòÉΓòÉΓòÉ <hidden> Selecting a site ΓòÉΓòÉΓòÉ
  1350.  
  1351. The listbox on the left contains the various sites know to this PM Debug 
  1352. session. They are loaded in from the file PMDEBUG.RMT when this dialog is 
  1353. loaded. 
  1354.  
  1355. To select a site, simply click on its name in the list. When the site name 
  1356. becomes highlighted its number, baud rate, comm port and bit settings are 
  1357. automatically display in the other controls. 
  1358.  
  1359. Related Topics 
  1360.  
  1361. o Setting parameters 
  1362. o Adding a site 
  1363.  
  1364.  
  1365. ΓòÉΓòÉΓòÉ <hidden> Setting parameters ΓòÉΓòÉΓòÉ
  1366.  
  1367. To set the number to call, place the focus on the number field and enter the 
  1368. desired number. 
  1369.  
  1370. The Data\Stop\Parity bits are set by dropping the combobox's list and choosing 
  1371. the desired value. 
  1372.  
  1373. A baud rate is chosen from that combobox. 
  1374.  
  1375. The comm port is set from the spin button. 
  1376.  
  1377. When all the setting controls are showing the desired values, you are ready to 
  1378. perform the next step, dialing out. 
  1379.  
  1380. Related Topics 
  1381.  
  1382. o Dialing out 
  1383. o Changing a sitename 
  1384. o Saving changes 
  1385.  
  1386.  
  1387. ΓòÉΓòÉΓòÉ <hidden> Dialing out ΓòÉΓòÉΓòÉ
  1388.  
  1389. To dial out using the current settings, activate the Dial button. This will 
  1390. cause the setting dialog to be replaced with a status dialog. 
  1391.  
  1392. If the connecting is made, the status dialog disappears, leaving you on the 
  1393. main window. If the connection was not made, selecting Exit from the status 
  1394. dialog will cause the remote setting dialog to reappear. 
  1395.  
  1396.  
  1397. ΓòÉΓòÉΓòÉ <hidden> Adding a site ΓòÉΓòÉΓòÉ
  1398.  
  1399. To add a new site to the list, click with mouse Button 2 over the site listbox. 
  1400. This will bring up a context menu. From that menu select the Add option. 
  1401.  
  1402. From the resulting dialog type in the new site's name and select the OK button. 
  1403. This will add the new site into the list. The setting for that site will be the 
  1404. one in the setting controls when the add was started. 
  1405.  
  1406. Related Topics 
  1407.  
  1408. o Changing a sitename 
  1409. o Saving changes 
  1410.  
  1411.  
  1412. ΓòÉΓòÉΓòÉ <hidden> Deleting a site ΓòÉΓòÉΓòÉ
  1413.  
  1414. To delete a site from the list, click with mouse Button 2 over the site 
  1415. listbox.  From the resulting context menu, select the Delete option. 
  1416.  
  1417. You will be asked to verify that you did in fact want to delete the site. 
  1418.  
  1419.  
  1420. ΓòÉΓòÉΓòÉ <hidden> Changing a sitename ΓòÉΓòÉΓòÉ
  1421.  
  1422. To change a site in the list, click with mouse Button 2 over the site listbox. 
  1423. From the resulting context menu, select the Change option. 
  1424.  
  1425. From the resulting dialog type in the site's new name and select the OK 
  1426. button.  This will add the site new name into the list.  The setting for the 
  1427. site will also be changed to be the ones in the setting controls when the 
  1428. change was started. 
  1429.  
  1430. Related Topics 
  1431.  
  1432. o Adding a site 
  1433. o Saving changes 
  1434.  
  1435.  
  1436. ΓòÉΓòÉΓòÉ <hidden> Saving changes ΓòÉΓòÉΓòÉ
  1437.  
  1438. When adding, deleting or changing a site, the final results are automatically 
  1439. updated into the remote site file. If you just want to change a setting value, 
  1440. you should select the site and change the desired settings control. 
  1441.  
  1442. To save the change , click with mouse Button 2 over the site listbox.  From the 
  1443. resulting context menu, select the Save option.  This will cause the remote 
  1444. site file to be updated with your change. 
  1445.  
  1446.  
  1447. ΓòÉΓòÉΓòÉ <hidden> Site memos ΓòÉΓòÉΓòÉ
  1448.  
  1449. Each site in the list has a memo field to which you may enter text for whatever 
  1450. you want.  To display and edit this field you, click with mouse Button 2  over 
  1451. the site listbox.  From the resulting context menu, select the Memo option. 
  1452.  
  1453.  
  1454. ΓòÉΓòÉΓòÉ <hidden> Site information ΓòÉΓòÉΓòÉ
  1455.  
  1456. Each site in the list save the number call and the date/time the last call was 
  1457. made to that site. 
  1458.  
  1459. To view this information, click with mouse Button 2  over the site listbox. 
  1460. From the resulting context menu, select the Info option. 
  1461.  
  1462. This information is automatically update when a connection is made to the site. 
  1463.  
  1464.  
  1465. ΓòÉΓòÉΓòÉ <hidden> Entering site name ΓòÉΓòÉΓòÉ
  1466.  
  1467. From this dialog you may enter a new or change the existing site name. 
  1468.  
  1469. Selecting the OK button causes the name to be used. 
  1470.  
  1471.  
  1472. ΓòÉΓòÉΓòÉ <hidden> Remote site dialing status ΓòÉΓòÉΓòÉ
  1473.  
  1474. This dialog shows the status of the remote connect attempt. When the phone icon 
  1475. shows the receiver off hook, the connection is in progress. The commands to the 
  1476. modem and its replies are display in the box next to the phone icon. 
  1477.  
  1478. If the connection cannot be made, the receiver is hung up. You should then 
  1479. select the Cancel button to go back to the remote settings dialog. To abort the 
  1480. attempt before the time-out or connection occurs, select the Hangup button. 
  1481.  
  1482. If the connection is made, you will go from this dialog directly to the main 
  1483. window. 
  1484.  
  1485.  
  1486. ΓòÉΓòÉΓòÉ <hidden> Remote site memo entry ΓòÉΓòÉΓòÉ
  1487.  
  1488. This dialog allows to you enter text to be associated to the current site. 
  1489. Type/change the text you wish to appear in the memo and select the OK button. 
  1490. The memo will then be written to the site file. 
  1491.  
  1492. Selecting the Cancel button will abort the operation. 
  1493.  
  1494.  
  1495. ΓòÉΓòÉΓòÉ <hidden> Entering search parameters ΓòÉΓòÉΓòÉ
  1496.  
  1497. Use this dialog to specify the search parameters: 
  1498.  
  1499. Enter the test string to search for in the entry field. Leading and trailing 
  1500. blanks are NOT removed. 
  1501.  
  1502. If the Case sensitive box is checked, the display text must exactly match the 
  1503. search string. 
  1504.  
  1505. If the Wrap box is checked, when the end of the text is reached, the search 
  1506. will continue at the start of the text. No warning is given when the wrap 
  1507. occurs. 
  1508.  
  1509. Activate the Find button to start the search. The Cancel button will abort it. 
  1510.  
  1511.  
  1512. ΓòÉΓòÉΓòÉ <hidden> Changing memory edit colors/fonts ΓòÉΓòÉΓòÉ
  1513.  
  1514. To change the color or font of the unchanged memory fields, drag the desired 
  1515. color/font to the entry field with title Unchanged. Drop it and the Edit Memory 
  1516. fields will be changed. 
  1517.  
  1518. For the changed field, do the same but drop on the entry field with the Changed 
  1519. title.. 
  1520.  
  1521.  
  1522. ΓòÉΓòÉΓòÉ <hidden> Changing a memory address ΓòÉΓòÉΓòÉ
  1523.  
  1524. Enter the desired address into the entry field and click on the OK button. An 
  1525. update of the memory fields will be performed. 
  1526.  
  1527. To abort the address change, click on the  Cancel button. 
  1528.  
  1529. Remember, the address must be valid for the context in which it is being used. 
  1530.  
  1531.  
  1532. ΓòÉΓòÉΓòÉ <hidden> No comm port response ΓòÉΓòÉΓòÉ
  1533.  
  1534. The expected data has not been received from the debug kernel. Please check the 
  1535. null modem cable. 
  1536.  
  1537. Click on the Continue button to wait for the data. 
  1538.  
  1539. Click on the Abort button to exit this operation 
  1540.  
  1541.  
  1542. ΓòÉΓòÉΓòÉ <hidden> Auto-Step Settings ΓòÉΓòÉΓòÉ
  1543.  
  1544. This dialog allows you to control the execution of the auto-step feature by 
  1545. configuring the auto-step settings. These settings may be altered while 
  1546. auto-step is active. 
  1547.  
  1548. The two timers set the delay before the next step. They have the range of 0 to 
  1549. 8 seconds. The Call timer indicates the time to delay before executing a "call" 
  1550. instruction. The Step timer is the delay before all other instructions. 
  1551.  
  1552. The Options buttons are to set which type of debug command will be executed. 
  1553. The Verbose sub-option causes the register information to be displayed. If 
  1554. Quiet is selected this information is inhibited. 
  1555.  
  1556. Finally if you wish, a debug command may be entered in the Command entryfield. 
  1557. this command will be executed after each auto-step operation. 
  1558.  
  1559. These settings are saved whenever a system setup save is executed. 
  1560.  
  1561. Related Topics 
  1562.  
  1563. o Saving the setup 
  1564. o Auto-Step Execution 
  1565.  
  1566.  
  1567. ΓòÉΓòÉΓòÉ <hidden> Memory display item settings ΓòÉΓòÉΓòÉ
  1568.  
  1569. This dialog shows the selected element's information.  Besides the Type and 
  1570. name fields, it also displays the offset from the start of the structure and 
  1571. the size in bytes for this element. 
  1572.  
  1573. You may change the display settings for this element. Open the combo box 
  1574. display the various type and select the one desired. Click on the OK button to 
  1575. put your change into effect. The following table describes each of the display 
  1576. types. 
  1577.  
  1578. o Don't Display 
  1579.  
  1580.   Do not display anything for this element. Use if the element is large and you 
  1581.   are not interested in its values. 
  1582.  
  1583. o Element's Address 
  1584.  
  1585.   Instead of displaying the element's values, display its address instead. This 
  1586.   is useful for elements which are structures. You can drag and drop the 
  1587.   address into a memory window displaying that structure's format. 
  1588.  
  1589. o Bytes 
  1590.  
  1591.   Display the element's values as a series of bytes. 
  1592.  
  1593. o Words 
  1594.  
  1595.   Display the element's values as a series of words. 
  1596.  
  1597. o Doubles 
  1598.  
  1599.   Display the element's values as a series of doubles. 
  1600.  
  1601. o Segmented Pointer 
  1602.  
  1603.   Display the element's values as a 16 bit segmented pointer. 
  1604.  
  1605. o Flat Pointer 
  1606.  
  1607.   Display the element's values as a 32 bit flat pointer. 
  1608.  
  1609. Changes made to the structure's elements can be saved in the MDF file. 
  1610.  
  1611. Related Topics 
  1612.  
  1613. o Saving format changes 
  1614. o Dragging memory values 
  1615.  
  1616.  
  1617. ΓòÉΓòÉΓòÉ <hidden> Memory display drop configuration ΓòÉΓòÉΓòÉ
  1618.  
  1619. This dialog sets how a dropped address will be translated. Select a Drop Type 
  1620. and set the Format field if desired. Click on the OK button to put the changes 
  1621. into effect. 
  1622.  
  1623. When data is dropped into the memory window the dropped data is translated 
  1624. according to the selected Drop Type and placed into the Format field in the 
  1625. position indicated by the first $ character. For example dropping the data 1234 
  1626. into the format $:0000 results in the string 1234:0000. 
  1627.  
  1628. o No translation 
  1629.  
  1630.   No translation of the dropped data occurs. If a format field is set the data 
  1631.   replaces the first $ character. 
  1632.  
  1633. o 16 bit address 
  1634.  
  1635.   A string already in a valid 16 bit address format is left alone. A pair of 
  1636.   words 1234 5678 is translate into 5678:1234 and a double 12345678 translates 
  1637.   into 1234:5678 
  1638.  
  1639. o 32 bit address 
  1640.  
  1641.   A string already in a valid 32 bit address format is left alone. A pair of 
  1642.   words 1234 5678 is translate into %56781234 and a double 12345678 translates 
  1643.   into %1234:5678 
  1644.  
  1645. If the translation is invalid, a warning beep occurs when the drop is made. 
  1646.  
  1647. Changes made to the structure's elements can be saved in the MDF file. 
  1648.  
  1649. Related Topics 
  1650.  
  1651. o Saving format changes 
  1652. o Dragging memory values 
  1653.