Problem when debugging Mozilla 1.7.5 in Suse 9.2
Alexander Miro <[email protected]>
| Newsgroups | gmane.comp.mozilla.devel.unix |
|---|---|
| Organization | Another Netscape Collabra Server User |
| Message-ID | <[email protected]> |
Hi everyone,
I'm trying to debug Mozilla but I got some problem...
After `prun' gdb command Mozilla is lauched and gdb freezes without
show any prompt.
As we can see bellow, gdb is loading `/lib/tls/libthread_db.so.1' instead
of `/lib/libpthread.so.0', however I don't know whether it is a problem...
---- BEGIN OUTPUT ----
[ 23:28:52 * altami * /home/altami/4_Programas/mozillaDist/mozilla1.7.5]
$ file /lib/libpthread.so.0
/lib/libpthread.so.0: ELF 32-bit LSB shared object, Intel 80386, version
1 (SYSV), not stripped
[ 23:29:04 * altami * /home/altami/4_Programas/mozillaDist/mozilla1.7.5]
$ file /lib/libthread_db.so.1
/lib/libthread_db.so.1: ELF 32-bit LSB shared object, Intel 80386,
version 1 (SYSV), not stripped
[ 23:29:08 * altami * /home/altami/4_Programas/mozillaDist/mozilla1.7.5]
$ ./mozilla -g -d gdb
./run-mozilla.sh -g -d gdb ./mozilla-bin
MOZILLA_FIVE_HOME=.
LD_LIBRARY_PATH=.:./plugins:/usr/local/lib/mre/mre-1.7.5
DISPLAY=:0.0
DYLD_LIBRARY_PATH=.:/usr/local/lib/mre/mre-1.7.5
LIBRARY_PATH=.:./components:/usr/local/lib/mre/mre-1.7.5
SHLIB_PATH=.:/usr/local/lib/mre/mre-1.7.5
LIBPATH=.:/usr/local/lib/mre/mre-1.7.5
ADDON_PATH=.
MOZ_PROGRAM=./mozilla-bin
MOZ_TOOLKIT=
moz_debug=1
moz_debugger=gdb
/usr/bin/gdb ./mozilla-bin -x /tmp/mozargs10009
GNU gdb 6.2.1
Copyright 2004 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 "i586-suse-linux"...(no debugging symbols
found)...Using host libthread_db library "/lib/tls/libthread_db.so.1".
(gdb) prun
Breakpoint 1 at 0x8057776
(no debugging symbols found)...(no debugging symbols found)...(no
debugging symbols found)...(no debugging symbols found)...(no debugging
symbols found)...[Thread debugging using libthread_db enabled]
[New Thread 1079035616 (LWP 10015)]
(no debugging symbols found)...(no debugging symbols found)...(no
debugging symbols found)...[Switching to Thread 1079035616 (LWP 10015)]
0x08057776 in main ()
[New Thread 1092828080 (LWP 10018)]
[New Thread 1099701168 (LWP 10019)]
[New Thread 1101802416 (LWP 10020)]
[New Thread 1105988528 (LWP 10021)]
[Thread 1105988528 (LWP 10021) exited]
[New Thread 1108089776 (LWP 10022)]
[Thread 1108089776 (LWP 10022) exited]
[Thread 1099701168 (LWP 10019) exited]
[New Thread 1099701168 (LWP 10446)]
[New Thread 1108089776 (LWP 10447)]
[Thread 1108089776 (LWP 10447) exited]
[Thread 1099701168 (LWP 10446) exited]
[New Thread 1099701168 (LWP 11047)]
[New Thread 1108089776 (LWP 11048)]
[Thread 1108089776 (LWP 11048) exited]
[Thread 1099701168 (LWP 11047) exited]
[New Thread 1099701168 (LWP 11442)]
[New Thread 1108089776 (LWP 11443)]
[Thread 1108089776 (LWP 11443) exited]
---- END OUTPUT ----
It is the `prun' gdb function:
# run when using the auto-solib-add trick
def prun
tbreak main
run
set auto-solib-add 0
cont
end
Does anyone knows what is going on? How can I fix it?
Thanks an advance.
Alexander Miro
Rio de Janeiro - Brasil