From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-il1-x130.google.com (mail-il1-x130.google.com [IPv6:2607:f8b0:4864:20::130]) by sourceware.org (Postfix) with ESMTPS id 3427A385E44A for ; Fri, 14 May 2021 22:01:37 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 3427A385E44A Received: by mail-il1-x130.google.com with SMTP id w13so981073ilv.11 for ; Fri, 14 May 2021 15:01:37 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:reply-to :from:date:message-id:subject:to:cc; bh=whoDY9zAQ/uKW9IQTZ7YQQL+AdBigx5kbHx6GDF3Iio=; b=AXstoM4I3yAJt3bnMiwJ7XpUNNZCxLQjvEU2qzPclAq7O8wt9QG0VJzniLp/5DBUYr ix4LGrFeaKYM+TEkK+anXlpiAkAC7PPTwcVeClZKhMzo+S+1gY29XGDF0zW9opTJYTmK fVvBYl95aNpZj8Om4oTEOdsw//c2/uZJN/248a3z6btoPngIM1e8LR0tpI0qEXx+HSnL GOHcUTsFkwBq6Dj4oCaTbauSpyeCeGFsSH/y933PxKDB9ZrnpFRl3+JSUZS14mZX3VJy 0whRsFjic09lvLfx3WfREnj592jL7eRARvqy9gk/tYLKwE8joEJGv2iVnQR/qfTKNFHV lnKg== X-Gm-Message-State: AOAM531adgN2iQ+7lROev/kO7AlKGvy6PWA9YFeAvgFBrR8x7/+JfZyR lL0vIaBzm88V9qgp0n6j3Ro3sAq8PaeuHvzeKAluHCoNtMQ= X-Google-Smtp-Source: ABdhPJyRNwqD9p/l8iLF/gfctY952AaWlDUnA9rmez34A5Muey9ry3q9/1zKlQ33kQ8VHCrbkhDbv3UkKQlVpSdhfkc= X-Received: by 2002:a05:6e02:128a:: with SMTP id y10mr40920515ilq.166.1621029696722; Fri, 14 May 2021 15:01:36 -0700 (PDT) MIME-Version: 1.0 References: <895597245.1533806.1619862429301.ref@mail.yahoo.com> <895597245.1533806.1619862429301@mail.yahoo.com> <79240173-07cd-7ac1-b080-450efbb444b1@polymtl.ca> <2058203102.408071.1621021556704@mail.yahoo.com> <30782f24-62b0-97c8-db48-d798e773fa53@polymtl.ca> <1555568360.354077.1621022905086@mail.yahoo.com> In-Reply-To: <1555568360.354077.1621022905086@mail.yahoo.com> Reply-To: noloader@gmail.com From: Jeffrey Walton Date: Fri, 14 May 2021 18:01:06 -0400 Message-ID: Subject: Re: Trace/breakpoint trap. To: Jason Long Cc: gdb@sourceware.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.6 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: gdb@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 May 2021 22:01:38 -0000 On Fri, May 14, 2021 at 5:39 PM Jason Long via Gdb wrote: > > Thank you. > Why you selected "0x0000555557425000 - 0x000055555c440280 is .text" ? > How to build with debug information? > Disassembly? I must use a disassembler? >From the top level directory, where you run configure, change CFLAGS and CXXFLAGS to include: -g3 -O1 -fdebug-prefix-map=${PWD}=/opt/src/wallet Then, after you perform 'sudo make install', perform the following to copy the sources to /opt/src/wallet. IFS= find "./" \( -name '*.h' -o -name '*.hpp' -o -name '*.hxx' -o \ -name '*.c' -o -name '*.cc' -o \ -name '*.cpp' -o -name '*.cxx' -o -name '*.CC' -o \ -name '*.s' -o -name '*.S' \) -print | while read -r file do # This trims the leading "./" in "./foo.c". file=$(echo -n "${file}" | tr -s '/' | cut -c 3-); cp --parents --preserve=timestamps "${file}" /opt/src/wallet done After the sources are in /opt/src/wallet, GDB will start working as expected. Jeff