This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

HP-UX Itanium: Shared libraries and separate symbol files


Hi

Using: HP gdb 5.2 for HP Itanium (32 or 64 bit) and target HP-UX 11.2x.

Which is actually wdb download from HP.

I am trying to load the debug symbols for a shared library that has been loaded by an explicit shl_load() call. Can anyone help me with how to do this as I seem to be doing it wrong.

After the library has loaded, I use the 'info sharedlibrary' command and try and load the symbols using 'add-symbol-file <lib-symbols- file> <addr>' where <lib-symbols-file> is a matching library including debug symbols and <addr> is the tsstart address given for the library by the 'info sharedlibrary' command.

This causes:

(gdb) info sharedlibrary
Shared Object Libraries
tstart tend dstart dend
/usr/lib/hpux64/dld.so
0x9ffffffffef82000 0x9ffffffffeffa090 0x9ffffffffef7a000 0x9ffffffffef81310
/lib/hpux64/libm.so.1
0x9ffffffffee05000 0x9ffffffffef6f710 0x9ffffffffee01000 0x9ffffffffee04818
/lib/hpux64/libc.so.1
0x9ffffffffc000000 0x9ffffffffc2495a0 0x9ffffffffede8000 0x9ffffffffedfacb8
/lib/hpux64/libpthread.so.1
0x9ffffffffed4e000 0x9ffffffffede3110 0x9ffffffffed48000 0x9ffffffffed4b380
/lib/hpux64/libunwind.so.1
0x9ffffffffecfb000 0x9ffffffffed47f80 0x9ffffffffef76000 0x9ffffffffef77460
/lib/hpux64/libdl.so.1
0x9ffffffffecf7000 0x9ffffffffecfa600 0x9ffffffffee00000 0x9ffffffffee00080
/usr/lib/hpux64/libuca.so.1
0x9ffffffffecef000 0x9ffffffffecf6e00 0x9ffffffffedfb000 0x9ffffffffedfb150
demo_client_libFNP_notr.sl (symbols not loaded)
0x9ffffffffd478000 0x9ffffffffece9930 0x9ffffffffd2ec000 0x9ffffffffd476b58
Total of 8 shared libraries.
(gdb) add-symbol-file libFNP_notr.sl.debug 0x9ffffffffd478000
add symbol table from file "libFNP_notr.sl.debug" at
.text_addr = 0x9ffffffffd478000
(y or n) y
Reading symbols from libFNP_notr.sl.debug...Unable to set section offsets for /home/bills/dev/FNP/_test-notr/_debug-HP-UX-B.11.23-ia64/ libFNP_notr.sl.debug
(0) 0x0000000000153b80 gdb_crash_handler + 0xb0 [/opt/langtools/bin/ gdb]
(1) 0xe00000010b402620 _user_sendsig + 0x2620 [***_Kernel_Gateway_***]
(2) 0x0000000000260aa0 free_table + 0x250 [/opt/langtools/bin/gdb]
(3) 0x00000000002e9f00 free_objfile + 0x200 [/opt/langtools/bin/gdb]
(4) 0x00000000002ea400 do_free_objfile_cleanup + 0x20 [/opt/ langtools/bin/gdb]
(5) 0x00000000003acdc0 do_cleanups + 0xa0 [/opt/langtools/bin/gdb]
(6) 0x0000000000399e00 return_to_top_level + 0xb0 [/opt/langtools/ bin/gdb]
(7) 0x00000000003af3e0 error + 0x180 [/opt/langtools/bin/gdb]
(8) 0x000000000024d890 hp_ia64_solib_section_offsets + 0x210 [/opt/ langtools/bin/gdb]
(9) 0x00000000001dbc00 syms_from_objfile + 0x200 [/opt/langtools/bin/ gdb]
(10) 0x00000000001dcf30 maybe_symbol_file_add + 0x340 [/opt/ langtools/bin/gdb]
(11) 0x00000000001dd830 symbol_file_add + 0x30 [/opt/langtools/bin/gdb]
(12) 0x00000000001dfb90 add_symbol_file_command + 0x5f0 [/opt/ langtools/bin/gdb]
(13) 0x000000000039fc40 execute_command + 0x630 [/opt/langtools/bin/ gdb]
(14) 0x0000000000213700 command_handler + 0x220 [/opt/langtools/bin/ gdb]
(15) 0x00000000002120d0 command_line_handler + 0xce0 [/opt/langtools/ bin/gdb]
(16) 0x00000000005203b0 rl_callback_read_char + 0x150 [/opt/ langtools/bin/gdb]
(17) 0x0000000000210b60 rl_callback_read_char_wrapper + 0x20 [/opt/ langtools/bin/gdb]
(18) 0x0000000000212f00 stdin_event_handler + 0x130 [/opt/langtools/ bin/gdb]
(19) 0x000000000040d030 handle_file_event + 0x270 [/opt/langtools/ bin/gdb]
(20) 0x000000000040d280 process_event + 0x1a0 [/opt/langtools/bin/gdb]
(21) 0x000000000040d5a0 gdb_do_one_event + 0x1e0 [/opt/langtools/bin/ gdb]
(22) 0x000000000039a240 catch_errors + 0x2c0 [/opt/langtools/bin/gdb]
(23) 0x000000000040e080 start_event_loop + 0x50 [/opt/langtools/bin/ gdb]
(24) 0x0000000000210d40 cli_command_loop + 0x1c0 [/opt/langtools/bin/ gdb]
(25) 0x0000000000151030 captured_command_loop + 0x70 [/opt/langtools/ bin/gdb]
(26) 0x000000000039a240 catch_errors + 0x2c0 [/opt/langtools/bin/gdb]
(27) 0x0000000000152850 captured_main + 0x16d0 [/opt/langtools/bin/gdb]
(28) 0x000000000039a240 catch_errors + 0x2c0 [/opt/langtools/bin/gdb]
(29) 0x0000000000155100 main + 0x60 [/opt/langtools/bin/gdb]
(30) 0x60000000c004e790 main_opd_entry + 0x50 [/usr/lib/hpux32/dld.so]


GDB crashed with signal 11! About to dump core into 'core' in the directory:
/home/bills/dev/FNP/_test-notr/_debug-HP-UX-B.11.23-ia64
Select one of the following options...
[N] No, do not dump core
[Y] Yes, dump core (default)
NOTE: Make sure to rename any existing core file in this
directory, as gdb's core will overwrite it.
[C] Continue execution (at your own risk)
> n


Debugger finished

Bill Somerville


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]