Christian Biere wrote:
> Maybe try -g instead of -g3.

Sadly recompiling with  -Dccflags="-g -Wall" -Doptimize="-O0"  did not 
help, it still is not producing useable core dumps

andy:~$ cd /home/andy/.gtk-gnutella/core2007.02.27.03.21.23/
andy:~/.gtk-gnutella/core2007.02.27.03.21.23$ gdb -c core ./gtk-gnutella
GNU gdb 6.6
Copyright (C) 2006 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 "i686-pc-linux-gnu"...
Using host libthread_db library "/lib/libthread_db.so.1".
"/home/andy/.gtk-gnutella/core2007.02.27.03.21.23/core" is not a core 
dump: File format not recognized
(gdb)

file seems to think it's a core dump

file /home/andy/.gtk-gnutella/core2007.02.27.03.21.23/core
/home/andy/.gtk-gnutella/core2007.02.27.03.21.23/core: ELF 32-bit LSB 
core file Intel 80386, version 1 (SYSV), SVR4-style, from 'gtk-gnutella'

Maybe the problem is with gdb?
I don't know what I'm doing wrong, I compile gtk-gnutella like this

cd /home/andy/save/src/gtk-gnutella &&
svn up &&
cp -rf /home/andy/save/src/gtk-gnutella /home/andy/Desktop &&
cd /home/andy/Desktop/gtk-gnutella &&
./Configure -ders -O -Dprefix=/usr -Dprivlib=/usr/share/gtk-gnutella 
-Dofficial='true' -Dremotectrl='false' -Dgtkversion='2' -Dccflags="-g 
-Wall" -Doptimize="-O0" &&
make &&
su -c 'install -m 555 src/gtk-gnutella /usr/bin/gtk-gnutella' &&
cd .. &&
rm -rf gtk-gnutella &&
exit

I run it with this script

#!/bin/bash

# Turn on core dumps
ulimit -S -c unlimited

# Run gtk-gnutella and redirect output to a log file
gtk-gnutella > ~/.gtk-gnutella/gtk-gnutella.log 2>&1

# If a core is dumped, create a uniquely named directory
# to save the core, log and executable
if [ -e core ] ; then
Core_Save_Dir=~/.gtk-gnutella/$(date "+core%Y.%m.%d.%H.%M.%S")
mkdir $Core_Save_Dir
cp /usr/bin/gtk-gnutella $Core_Save_Dir
mv ~/.gtk-gnutella/gtk-gnutella.log $Core_Save_Dir
mv core $Core_Save_Dir
fi

Andy

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Gtk-gnutella-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gtk-gnutella-devel

Reply via email to