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

Setting source paths

» 

Technical documentation

Complete book in PDF

 » Table of Contents

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

Adding and deleting source paths

To add a source path

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

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

  3. In the Add Source 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. In the Source File Paths dialog box, verify that the source paths you selected appear in the Source File Paths list. Click OK.

To delete a source path

  1. From the Edit menu, click Source File Paths.

  2. In the Source File Paths list, select the source path you want to delete.

  3. Click Delete. The selected source path disappears from the Source File Paths list.

  4. Click OK.

To replace a source path

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

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

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

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

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

  6. In the Source File Paths dialog box, verify that the directory you want to replace is highlighted in the Source File Paths text box and 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 source paths

In the Source 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 a source path up

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

  2. In the Source File Paths list, select the source 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 a source path down

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

  2. In the Source File Paths list, select the source path you want to move down.

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

  4. Click OK.

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

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

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