Version: 5.0
Platform: i586-pc-sco3.2v5.0.2
Compiler: gcc-2.95.2

When shared object is linked to running program, addresses of shared
object's local data items (static variables) are calculated
incorrectly by gdb, at least for those in `.bss' section of SO.  gdb
takes them exactly from SO symbol table and does not add to them
actual address of containing SO section in current process.  With
global (externally visible) variables it is OK.

To reproduce this, one can compare output of `print &rl_initialized'
and `print &rl_point' while debugging `libreadline.so' user.

Reply via email to