From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15488 invoked by alias); 17 Mar 2017 13:35:29 -0000 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 Received: (qmail 15477 invoked by uid 89); 17 Mar 2017 13:35:27 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-6.1 required=5.0 tests=BAYES_00,FREEMAIL_FROM,GIT_PATCH_2,KAM_ASCII_DIVIDERS,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 spammy=H*r:192.168.43 X-HELO: mail-lf0-f44.google.com Received: from mail-lf0-f44.google.com (HELO mail-lf0-f44.google.com) (209.85.215.44) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 17 Mar 2017 13:35:26 +0000 Received: by mail-lf0-f44.google.com with SMTP id a6so33261923lfa.0 for ; Fri, 17 Mar 2017 06:35:26 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:to:from:subject:message-id:date:user-agent :mime-version:content-transfer-encoding; bh=eB0zk8N58uby5/elog++1GOFpWVYjeKbCBAQTRPSrJE=; b=QPNIQxxeX0fmjQnRXmHyfN38NJkJXB4do8SOSPp5wTFKASmTssCZ5Tg1kXPbPEtHkn ZDk7zbQiiT500A3J/+NQqn6F6Pi1GX/TNdO4oM8wrVhFjwsrbe3J45mqE5ssy5EfzRuL HkqjPe+8ms6vLTqDHGhfvysUlOt1otU9k/cVh9T9Q9bf2X8lzvJGCbaRZFBpIB82qHIS GYWKumWQQXrhSyfiTHHnsFcK7Gvi2LMCwNXtAljWsYltDXwmKDjhTNF1B5QMQ+0M+aTE p8VB4xX2TQ3L1pPE6P6aXlNEAmEOaCr1Ler5Imv1TjttG8t6Bo2HrRuaJdIeVpJNXenA 6/cg== X-Gm-Message-State: AFeK/H1skUzPHis0oqdkelMWkObbB4WYD7YdFRbx0MTjVo8TWcdamGtiQ03XinPf1GBYSQ== X-Received: by 10.25.155.132 with SMTP id d126mr4634528lfe.110.1489757724412; Fri, 17 Mar 2017 06:35:24 -0700 (PDT) Received: from [192.168.43.172] (37-219-11-177.nat.bb.dnainternet.fi. [37.219.11.177]) by smtp.gmail.com with ESMTPSA id q8sm1339863lfh.51.2017.03.17.06.35.23 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 17 Mar 2017 06:35:23 -0700 (PDT) To: gdb@sourceware.org From: =?UTF-8?B?VG9tbWkgSMO2eW7DpGzDpG5tYWE=?= Subject: A problem debugging libraries Message-ID: <09fc6dce-9f14-785d-dd9e-c765cf577d4d@gmail.com> Date: Fri, 17 Mar 2017 13:35:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.5.1 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2017-03/txt/msg00026.txt.bz2 I'm writing software using libraries liboctave, LAPACK, and BLAS. I added function dnrm2alt1 to blas and changed lapack to use that instead of dnrm2. When I try to debug a program using blas "break dnrm2_" works in gdb but "break dnrm2alt1_" does not. Gdb can't find function dnrm2alt1_. Can anybody tell what is wrong? Here are outputs of some commands: ---cut here--- tohoyn@tohoyn-laptop:~/tyo/omat/aallokkeet/libinterp3d1$ update-alternatives --config libblas.so.3 There are 2 choices for the alternative libblas.so.3 (providing /usr/lib/libblas.so.3). Selection Path Priority Status ------------------------------------------------------------ 0 /usr/lib/atlas-base/atlas/libblas.so.3 35 auto mode 1 /usr/lib/atlas-base/atlas/libblas.so.3 35 manual mode * 2 /usr/lib/libblas/libblas.so.3 10 manual mode Press enter to keep the current choice[*], or type selection number: tohoyn@tohoyn-laptop:~/tyo/omat/aallokkeet/libinterp3d1$ ---cut here--- ---cut here--- tohoyn@tohoyn-laptop:~/tyo/omat/aallokkeet/libinterp3d1$ update-alternatives --config liblapack.so.3 There are 2 choices for the alternative liblapack.so.3 (providing /usr/lib/liblapack.so.3). Selection Path Priority Status ------------------------------------------------------------ * 0 /usr/lib/lapack/liblapack.so.3 10 auto mode 1 /usr/lib/atlas-base/atlas/liblapack.so.3 5 manual mode 2 /usr/lib/lapack/liblapack.so.3 10 manual mode Press enter to keep the current choice[*], or type selection number: tohoyn@tohoyn-laptop:~/tyo/omat/aallokkeet/libinterp3d1$ ---cut here--- ---cut here--- tohoyn@tohoyn-laptop:/usr/lib/libblas$ objdump -T libblas.so.3.0 | grep -i dnrm2 0000000000040320 g DF .text 0000000000000011 Base dnrm2sub_ 000000000000fd50 g DF .text 000000000000002b Base cblas_dnrm2 0000000000040220 g DF .text 000000000000006b Base dnrm2_ 0000000000040290 g DF .text 0000000000000084 Base dnrm2alt1_ tohoyn@tohoyn-laptop:/usr/lib/libblas$ ---cut here--- ---cut here--- tohoyn@tohoyn-laptop:/usr/lib/lapack$ objdump -T liblapack.so.3.0 | grep -i dnrm2 0000000000000000 DF *UND* 0000000000000000 dnrm2alt1_ tohoyn@tohoyn-laptop:/usr/lib/lapack$ ---cut here--- - Tommi H.