From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id oAUKCME0OWWMnzYAWB0awg (envelope-from ) for ; Wed, 25 Oct 2023 11:31:13 -0400 Authentication-Results: simark.ca; dkim=pass (2048-bit key; unprotected) header.d=lists.lttng.org header.i=@lists.lttng.org header.a=rsa-sha256 header.s=default header.b=eYiC60PE; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 153301E0C1; Wed, 25 Oct 2023 11:31:13 -0400 (EDT) Received: from lists.lttng.org (lists.lttng.org [167.114.26.123]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id 0ABA41E098 for ; Wed, 25 Oct 2023 11:31:11 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=lists.lttng.org; s=default; t=1698247870; bh=rEw8aOaQ8AbiaNVjH7VJ3PCqSeDC0lxg9f3l6PmyFGE=; h=Date:To:References:In-Reply-To:Subject:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=eYiC60PE4jCEAKsJdnoawwZcxrBVM0ar/8eifeLpPOVfmSnBlmkxekMWvyLnGLTSn Ku2pv2KD3rjHTOCGVoHqodTAv80yd7C/jqwrcW09YQWMJCB9Cy0UQSRQI0YzVHevUM HX1swqGnEIOszm9Ce09t8JkBchpfkKUlFDj/LgLCCHEAfRldnrjJMexyWEBzcMWyaA kqclWbrWM/sIEjoCk9DjDA0A+5DsNPWx0+gjjZlzMhap5dB+acueQDJ6vVYMYDzFpJ X/8EeXRXbyke/VFjcbW0YNM4bPUQqJT69wV6eBixH5HuBeMqBOkb1vnRo8SH+5PMKS OXl3Ggl/TXReg== Received: from lists-lttng01.efficios.com (localhost [IPv6:::1]) by lists.lttng.org (Postfix) with ESMTP id 4SFtDt2H4bz8R3; Wed, 25 Oct 2023 11:31:10 -0400 (EDT) Received: from simark.ca (simark.ca [158.69.221.121]) by lists.lttng.org (Postfix) with ESMTPS id 4SFtDs2BM0z8R2 for ; Wed, 25 Oct 2023 11:31:09 -0400 (EDT) Received: from [172.16.0.192] (192-222-143-198.qc.cable.ebox.net [192.222.143.198]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPSA id BDCF71E00F; Wed, 25 Oct 2023 11:31:07 -0400 (EDT) Message-ID: Date: Wed, 25 Oct 2023 11:31:07 -0400 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Content-Language: fr To: "Seidl, Aron" , "lttng-dev@lists.lttng.org" References: In-Reply-To: Subject: Re: [lttng-dev] Debugging Libaries in Babeltrace 2 X-BeenThere: lttng-dev@lists.lttng.org X-Mailman-Version: 2.1.39 Precedence: list List-Id: LTTng development list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Simon Marchi via lttng-dev Reply-To: Simon Marchi Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: lttng-dev-bounces@lists.lttng.org Sender: "lttng-dev" On 10/25/23 03:29, Seidl, Aron via lttng-dev wrote: > Hi Simon, > Thanks for your quick answer! > I run GDB like this: > gdb --args ./babeltrace2 /home/aron/Schreibtisch/kernel4 -o text > (I'm in src/cli/.libs) Don't do that (try to debug the binary in .libs directly). > I don't think I've ever installed a System Version of babeltrace2, so it is really weird that GDB uses following library: > > 0x00007ffff7f36f00 0x00007ffff7f89749 Yes (*) /lib/x86_64-linux-gnu/libbabeltrace2.so.0 > (*): Shared library is missing debugging information. It might have been installed as a dependency of another package, I don't know. > And you're absolutely right! That is the reason why I can't debug it. > Is there a way to specify the library path? Because even with the libtool wrapper, GDB uses the release version of libbabeltrace2.so.0. Can you run this *in the root of your build tree* and show the output? We should see a path to libbabeltrace2.so inside your build tree. $ libtool --mode=execute gdb -q -batch src/cli/babeltrace2 -ex start -ex "info shared" Simon _______________________________________________ lttng-dev mailing list lttng-dev@lists.lttng.org https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev