Using the WDB GUI · Setting Object Paths Home and Help Icons Keyword Index Home Using Help
Line Graphic
Line Graphic

Contents

Keyword Index

Using the WDB GUI
Starting and Exiting the WDB GUI
Loading a Program and Changing Program Settings
Opening Source Files
Changing the Working Directory
Saving and Restoring Debug Sessions
Setting Source Paths
{short description of image} Setting Object Paths
Setting Pathmap
Viewing Your Code
Browsing Functions
Setting Signal Handling
Finding Specific Text in Your Code
Using the Command View
Using the Watch View
Using Quick Watch
Using the Local Variables View
Using the Call Stack View
Using the Threads View
Using the Registers View
Examining Memory Use
Using the Program Console
Using Breakpoints
Advancing Through Your Program
Fixing Code from within the Debugger
Starting and Stopping the Debug Process
Setting Debugger Preferences
Customizing Colors and Fonts

Reference Information

Troubleshooting

Using Help



Bullet Overview
Bullet Adding and Deleting Object Paths
Bullet Changing the Order of Object Paths
Bullet Tips
Bullet See Also

Line Graphic

Overview

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. Line Graphic

Adding and Deleting Object Paths

To add an object path

  1. On the Edit menu, click Object File Paths.
  2. Click the ... 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 ... 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.
Line Graphic

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.
{short description of image}

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

    For more information about the .gdbinit file, see Creating the .gdbinit File

Line Graphic

See Also

Line Graphic

Return to Top