This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFC/ia64-linux] pb with shared libraries when attaching to process
On Thu, Apr 24, 2008 at 07:36:23PM -0700, Joel Brobecker wrote:
> Looking deeper into this, the problem is that GDB determins that
> this symbol is in the .data section. The code that recognizes
> function descriptors for ia64 checks first that the associated
> section name is ".opd", or else checks the name of the symbol
> with is_vtable_name() (see ia64-tdep.c:ia64_convert_from_func_ptr_addr).
>
> I double checked /lib/ld-linux-ia64.so.2, and unless I'm mistaken,
> the debugger is correct. Our address is inside the .data section
> of the loader. There is no .opd section in sight.
Well, you'll have to ask someone more familiar with IA-64 than I at
this point. I'm not sure why that might be. But my guess is that
it's legitimate and GDB simply should adapt.
You'd need a link map from the build of ld.so to say for sure.
--
Daniel Jacobowitz
CodeSourcery