HPlogo HP WDB-GUI Reference Manual: HP-UX 11i v2 > Chapter 3 Debugging with WDB GUI

Setting Pathmap

» 

Technical documentation

Complete book in PDF

 » Table of Contents

You can set pathmap so that WDB GUI can locate the object files for the currently loaded executable, which are spread over many directories. The Pathmap ’From’ and ’To’ dialog box lets you define a list of substitution rules that need to be applied to the path names to identify the object files and the corresponding source files. In this dialog box, you can add, delete, and change the priority order of pathmap.

Adding and Deleting Pathmap

Using the Pathmap dialog box, you can add and delete pathmaps.

To add a pathmap

  1. On the Edit menu, click Pathmap.

  2. In the Pathmap dialog box, click the Browse button.

  3. In the From-Add Pathmap File Path and To-Add Pathmap File Path dialog box, double-click in the Directories list to select the appropriate ’From’ and ’To’ paths.

  4. When the proper path appears in the Selection box in the From-Add Pathmap File Path and the To-Add Pathmap File Path dialog boxes, click Add to add in Pathmaps in the From and To text boxes in the Pathmap dialog box.

  5. Click Add in Pathmap dialog to add pathmaps in pathmap list.

  6. In the Pathmap dialog box, verify that the pathmaps you selected appear in the Pathmap list.

  7. Click OK.

To delete a pathmap

  1. On the Edit menu, click Pathmap.

  2. In the Pathmap list, select the pathmap that you want to delete.

  3. Click Delete. The selected Pathmap disappears from the Pathmap list.

  4. Click OK.

To replace a pathmap

  1. On the Edit menu, click Pathmap.

  2. Double-click the directory you want to replace in the Pathmap text box, it will be listed in ’From’ and ’To’ path selection text boxes..

  3. Click Browse button, click in the Directories list in the select From-Add Pathmap File paths and To-Add Pathmap File paths to select the new directory with which you want to replace the old one .

  4. When the proper directory appears in the Selection box, click OK.

  5. In the Pathmap dialog box, verify whether:

    • the directory that you want to replace is highlighted in the Pathmap- From and To text box.

    • the new directory that you selected appears in the directory edit box (to the left of the Browse button).

  6. Click Replace.

  7. Click OK.

Changing the Order of Pathmap

In the Pathmap list, the paths are searched in the order in which they are listed, that is, the WDB GUI will map the first pathmap listed, then the second path, and so on.

To move a pathmap up

  1. On the Edit menu, click Pathmap.

  2. In the Pathmaps list, select the pathmap you want to move up.

  3. Click Move Up until the path is where you want it in the list.

  4. Click OK.

To move a pathmap down

  1. On the Edit menu, click Pathmap.

  2. In the Pathmap list, select the pathmap you want to move down.

  3. Click Move Down until the path is in the place where you want it to be in the list.

  4. Click OK.

Tip

One way to save your pathmap information is to save your debug session.

© 2004-2005 Hewlett-Packard Development Company, L.P.