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

Setting Object Paths

» 

Technical documentation

Complete book in PDF

 » Table of Contents

You can set object paths so that the WDB GUI can locate the object files for the currently loaded executable. You can also delete and change the order of priority for the object paths that you have set.

Adding and deleting object paths

To add an object path

  1. On the Edit menu, click Object File Paths.

  2. Click the Browse... button in the Object File Paths dialog box.

  3. In the Add Object File Path dialog box, double-click in the Directories list to select the appropriate path.

  4. When the proper path appears in the Selection box, click Add.

  5. Repeat steps 3 and 4 to add as many paths as you want. Click Close.

  6. In the Object File Paths dialog box, verify that the object paths you selected appear in the Object File Paths list.

  7. Click OK.

To delete an object path

  1. On the Edit menu, click Object File Paths.

  2. In the Object File Paths list, select the object path you want to delete.

  3. Click Delete. The selected object path disappears from the Object File Paths list.

  4. Click OK.

To replace an object path

  1. On the Edit menu, click Object File Paths.

  2. Double-click the directory you want to replace in the Object File Paths text box.

  3. Click the Browse... button in the Object File Paths dialog box.

  4. In the Add Object File Path dialog box, click in the Directories list to select the new directory with which you want to replace the old one

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

  6. In the Object File Paths dialog box, verify that

    • the directory you want to replace is highlighted in the Object File Paths text box.

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

  7. Click Replace.

  8. Click OK.

Changing the order of object paths

In the Object File Paths list, the paths are searched in the order they are listed, that is, the WDB GUI will search the first path listed, then the second path, and so on.

To move an object path up

  1. On the Edit menu, click Object File Paths.

  2. In the Object File Paths list, select the object path 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 an object path down

  1. On the Edit menu, click Object File Paths.

  2. In the Object File Paths list, select the object path 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.

Tips

  • One way to save your object path information is to save your debug session.

  • You can automatically set object file paths every time WDB starts by specifying paths in the .gdbinit file. To automatically load object file paths, add the following line to the .gdbinit file:

    objectdir path

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