This is the mail archive of the gdb@sourceware.cygnus.com 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]

[hercules@lokigames.com: GDB shared library problems (test case)]


----- Forwarded message from Sam Lantinga <hercules@lokigames.com> -----

Delivered-To: hjl@lucon.org
Date: Mon, 31 Jan 2000 13:41:49 -0800
From: Sam Lantinga <hercules@lokigames.com>
Organization: Loki Entertainment Software
X-Mailer: Mozilla 4.6 [en] (X11; I; Linux 2.2.13 i686)
X-Accept-Language: en
To: hjl@lucon.org
Cc: coders@lokigames.com
Subject: GDB shared library problems (test case)

Using gdb:
GNU gdb 4.17.0.14 with Linux support
Copyright 1998 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you
are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for
details.
This GDB was configured as "i386-redhat-linux".

If you run gdb on main, and step through the program, you will see that
when gdb loads symbols for foo2.so, it does not update the internal
symbol
table for the symbol foo().
If you step into the newly loaded foo() function pointer and try a
backtrace,
you get something like the following:
#0  0x400155b0 in __do_global_ctors_aux ()
#1  0x804854f in main () at main.c:17
#2  0x40033cb3 in __libc_start_main (main=0x80484c8 <main>, argc=1,
    argv=0xbffffb24, init=0x8048354 <_init>, fini=0x80485ec <_fini>,
    rtld_fini=0x4000a350 <_dl_fini>, stack_end=0xbffffb1c)
    at ../sysdeps/generic/libc-start.c:78

I will be working on this today, but if you have a fix, or know where to
look, any help would be appreciated.

Thanks!
-- 
	-Sam Lantinga, Lead Programmer, Loki Entertainment Software


----- End forwarded message -----

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