Attaching to the database server process with the debugger

To debug your DataBlade® module, use a debugger that can attach to the active server process and access the symbol tables of dynamically loaded shared object files.

About this task

On UNIX™ or Linux™, the debugger and dbx utilities meet these criteria. To start a debugger, enter the following command at the shell prompt, in which pid is the process identifier of the CPU or virtual processor:
debugger - pid

This command starts the debugger on the server virtual-processor process without starting a new instance of the virtual processor. For more information about available debugger commands, see the debugger manual page.

To attach to the database server process:

Procedure

  1. Create a debugging version of the shared-object file.
  2. Connect to the database server from a client application, such as .
  3. Make sure that the shared-object file is loaded into the server address space.
  4. Obtain the process identifier for the virtual processor you want to debug.
  5. Start the debugger on the server process.

Results