Neoview ODBC Drivers Manual (R2.2)
Debugging
gdb is used to debug application on Linux and HP systems. Before starting gdb, make sure that
the executable has been linked in with the right version of the library (use ldd).
On Linux, if your test program uses a non default library, set the environment variable
LD_LIBRARY_PATH to the directory where the library resides.
For example:
gdb program
(gdb) list
(gdb) break (break point is a line number, function name, etc.)
(gdb) run
(gdb) step
(gdb) backtract (to list trace)
To analyze a core dump file, enter:
gdb program core
On HP-UX, to instruct gdb to ignore SIGBUS (because of an unaligned data issue), enter:
(gdb) handle SIGBUS noprint pass
More information on gdb is available at http://www.gnu.org/software/gdb/documentation
Getting the Version of the Driver
These steps print version information on the terminal:
1. Move to the directory where you installed the library file of the HP Neoview ODBC driver:
cd your-library-home
your-library-home is the directory where you installed the library file of the HP Neoview
ODBC driver. For details, see Step 6 in “Installing or Reinstalling HP Neoview ODBC Drivers
for Linux, HP-UX, and IBM AIX®”.
The nm command returns this version information:
_###HPODBC_x_y_z_yymmdd
The “x_y_z” string is the version number (for example, 1_0_0).
The “yymmdd” string is the date, where yy is the year, mm is the month, and dd is the day
(for example, 060419).
40 Installing the HP Neoview ODBC Drivers