From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31014 invoked by alias); 21 Feb 2008 13:44:17 -0000 Received: (qmail 31005 invoked by uid 22791); 21 Feb 2008 13:44:16 -0000 X-Spam-Check-By: sourceware.org Received: from an-out-0708.google.com (HELO an-out-0708.google.com) (209.85.132.248) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 21 Feb 2008 13:44:00 +0000 Received: by an-out-0708.google.com with SMTP id c23so18873anc.42 for ; Thu, 21 Feb 2008 05:43:59 -0800 (PST) Received: by 10.100.46.10 with SMTP id t10mr20059375ant.18.1203601439027; Thu, 21 Feb 2008 05:43:59 -0800 (PST) Received: by 10.100.207.14 with HTTP; Thu, 21 Feb 2008 05:43:58 -0800 (PST) Message-ID: <64077c280802210543r163ce60aje62c2d6fc4632554@mail.gmail.com> Date: Thu, 21 Feb 2008 13:47:00 -0000 From: "luca regini" To: gdb@sourceware.org Subject: Beginner question regarding gdb symbol files MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2008-02/txt/msg00165.txt.bz2 I have a project that is organized like the Makefile that follows. I have an executable that links two shared objects. I separate debug symbols from shared libraries and executable files. I would like to debug the stripped executable using the stripped symbols. Sadly i am not able to view any debug information. I tryed to use both the symbol-file and add-symbol-file to read the stripped symbols. Any help is very appreciated. libbellac.so: bellaclib.c gcc -g -c bellaclib.c -o bellac.o gcc -g -s -shared -Wl,-soname,libbellac.so -o libbellac.so bellac.o strip bellac.o --only-keep-debug -o clib.dbg libbellacpp.so: bellacpplib.cpp g++ -g -c bellacpplib.cpp -o bellacpp.o g++ -g -s -shared -Wl,-soname,libbellacpp.so -o libbellacpp.so bellacpp.o strip bellacpp.o --only-keep-debug -o cpplib.dbg all: main.cpp libbellac.so libbellacpp.so g++ -g -c main.cpp -o main.o g++ -s main.o libbellac.so libbellacpp.so -o test strip main.o --only-keep-debug -o test.dbg clean: rm -f *.so *.o *.dbg Greets, Luca