From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 55810 invoked by alias); 29 Sep 2019 21:23:00 -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 55798 invoked by uid 89); 29 Sep 2019 21:22:59 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-3.4 required=5.0 tests=AWL,BAYES_00,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=no version=3.3.1 spammy= X-HELO: mail-io1-f51.google.com Received: from mail-io1-f51.google.com (HELO mail-io1-f51.google.com) (209.85.166.51) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sun, 29 Sep 2019 21:22:58 +0000 Received: by mail-io1-f51.google.com with SMTP id n26so4224598ioj.8 for ; Sun, 29 Sep 2019 14:22:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=WpMxRuq0MmzNtgE7F0qSxo4VHYsGSIbuAwv+oJW86fs=; b=raJ9GoIjytxbHMwBvBvTqxPW1/A3Z3ELeoJivQKVjG4elvda1Gt8N+eLDz/f7fxOJE g1E19P7zXicUNtqggIPfJ708LHrO0fKMkzwv0UNN8hSXsSmolEohHr2JlJMXSynMVlRY DKNVSVPX9dRWPqBhkSmmDJmnndj5oPla/gz2DIlscZWcJWzXd32pZSu89CLp/j8g6yVu M9linyqDa1uKyEbMzWBWwRvF3CEhSb8Byf/ftFcqkJz/H/Hev0IZzTGABebMlwpxja0T P4wQ1tkeEIxKYbspBNZIk56F/lOx0mzrhpMDMdirTRhLB7XPZNU1Zzn1clMLU8i6dy4F dFrg== MIME-Version: 1.0 References: In-Reply-To: From: Ruslan Kabatsayev Date: Sun, 29 Sep 2019 21:23:00 -0000 Message-ID: Subject: Re: GDB does not recognize cxx extension? To: noloader@gmail.com Cc: Christian Biesinger , gdb@sourceware.org Content-Type: text/plain; charset="UTF-8" X-IsSubscribed: yes X-SW-Source: 2019-09/txt/msg00034.txt.bz2 Hi, On Sun, 29 Sep 2019 at 08:18, Jeffrey Walton wrote: > > On Sun, Sep 29, 2019 at 1:09 AM Christian Biesinger > wrote: > > > > On Sun, Sep 29, 2019 at 12:01 AM Jeffrey Walton wrote: > > > I've got a C++ program built from a source called pem_test.cxx. I'm > > > having trouble getting GDB to accept it. Autocomplete does not work: > > > > > > (gdb) b pem_ > > > pem_common.cpp pem_common.h pem_read.cpp pem_write.cpp > > > > GDB gets the list of files from the debug data in the binary, not from > > the current directory. Are you sure you compiled pem_test.cxx into the > > binary? > > Yes. A 'b main' stops in pem_test.cxx. > > The recipe to build pem_test.cxx is at > https://github.com/noloader/cryptopp-pem/blob/master/pem_create_keys.sh#L42 This line: "$CXX" "$CXXFLAGS" pem_test.cxx ./libcryptopp.a -o pem_test.exe passes "-DDEBUG -g3 -O0 -Wall" as a single option. So, it's the same as -D"DEBUG -g3 -O0 -Wall". Thus the -g3 isn't passed as symbol generation option. Try removing the quotes. > > Jeff Regards, Ruslan