From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr1-x433.google.com (mail-wr1-x433.google.com [IPv6:2a00:1450:4864:20::433]) by sourceware.org (Postfix) with ESMTPS id 7A59D3857820 for ; Thu, 19 Aug 2021 09:49:42 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 7A59D3857820 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=embecosm.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=embecosm.com Received: by mail-wr1-x433.google.com with SMTP id l11so8152921wrx.4 for ; Thu, 19 Aug 2021 02:49:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=embecosm.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=0Swip3mtY1LCUTFLzm3sLOSEl2uJN+iTHhyzHi5eYXo=; b=cK75OYv5eTFA+vEzaf7mrWWohtMAYxp3OXZzNMBt7CvvXPYzTypZjDjzbUABMJSmHx /rhlsGVL+R14UhzOR1OgDt49dmXjZKFaY3n0HKIZqeK5KbNfLNDLRqbXWFi6/qPMJtue LKTK0ZvVpNGzPzdtCegfPazJltyO8rKQhgU35wmQ8SU+9j5iHQQeCbXQ/ntFdRJ5uokS OSp0rFljKcI8NrJP97LweZr8pix6W3JwdwbEqc7q8Lfo+0/Ka6U4KMVTmhfOBjSWVTZa CJKLypkC8Wr8AhQMliCcwGa8WqfDivIPlSYAb2BnBNreb9Bzsj4jgC/cM8j61rv8jwRI tKAA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=0Swip3mtY1LCUTFLzm3sLOSEl2uJN+iTHhyzHi5eYXo=; b=j2yEj1iKrMjJcAE4wcufJ/ZzY7ew17zr4yV1eqbEKDIivuc8Q8JL3J+YwIZF4PeVeo xutKvdIDJUenS6Z8ZKo+6WY3C7HmGya10aSsNK3k3bn3nIvGw0To0NYlDaM7i/cFI6Xy kyaHfIxbejJB3NlF5/qbiHBOI4Y1TZUOwmYILP6rmlpTBDDdOunG/ZQbCsanT37/msAz nl1xdrEqL13NriBX3k7bxhFn19XvjSx7T19rUa/Hjqy+Q5NxYRdRpTUrofIlW5jv7UJR pPRS2D1egApfuYLLVrqiH8pO9lI6arORBPFnnuiIdM7yMJuK5nsb0KxDx4RXLCPLWBTa 9R5Q== X-Gm-Message-State: AOAM530VETenFH1z+rf6ZRLkY0RyK09hHvgl3SoSLCvn3nRlyG5okYWY 1qZtiPi/MbfCkhpVGKmxa5J/ypULevLu7A== X-Google-Smtp-Source: ABdhPJzoAVEJ+VzyWncROUydSoDhbzsj28eExXUuc9SEWNNP+F8ybJUe7uOM5ZmjcO4ros//rRLc/A== X-Received: by 2002:adf:f352:: with SMTP id e18mr2638427wrp.160.1629366581460; Thu, 19 Aug 2021 02:49:41 -0700 (PDT) Received: from localhost (host86-188-49-44.range86-188.btcentralplus.com. [86.188.49.44]) by smtp.gmail.com with ESMTPSA id y10sm7795028wmo.18.2021.08.19.02.49.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Aug 2021 02:49:41 -0700 (PDT) From: Andrew Burgess To: gdb-patches@sourceware.org Subject: [PATCH 4/6] Copy in libbacktrace from gcc Date: Thu, 19 Aug 2021 10:49:29 +0100 Message-Id: <782281946fb4c0af69adfb456e233c097482234f.1629366146.git.andrew.burgess@embecosm.com> X-Mailer: git-send-email 2.25.4 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.9 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Aug 2021 09:49:48 -0000 This copies in libbacktrace from the gcc repository as it was in the commit ad3f0ad4bafe377072a53ded468fd9948e659f46. GDB is going to start using this library soon. A dependency between GDB and libbacktrace has already been added to the top level Makefile, so, after this commit, when building GDB, libbacktrace will be built first. However, libbacktrace is not yet linked into GDB, or used by GDB in any way. It is possible to stop libbacktrace being built by configuring the tree with --disable-libbacktrace. --- libbacktrace/ChangeLog | 1759 ++ libbacktrace/ChangeLog.jit | 14 + libbacktrace/Makefile.am | 586 + libbacktrace/Makefile.in | 2528 +++ libbacktrace/README | 23 + libbacktrace/aclocal.m4 | 867 + libbacktrace/alloc.c | 167 + libbacktrace/allocfail.c | 136 + libbacktrace/allocfail.sh | 104 + libbacktrace/atomic.c | 113 + libbacktrace/backtrace-supported.h.in | 66 + libbacktrace/backtrace.c | 129 + libbacktrace/backtrace.h | 206 + libbacktrace/btest.c | 501 + libbacktrace/config.h.in | 184 + libbacktrace/configure | 16893 ++++++++++++++++ libbacktrace/configure.ac | 581 + libbacktrace/dwarf.c | 4056 ++++ libbacktrace/edtest.c | 120 + libbacktrace/edtest2.c | 43 + libbacktrace/elf.c | 4919 +++++ libbacktrace/fileline.c | 346 + libbacktrace/filetype.awk | 13 + .../install-debuginfo-for-buildid.sh.in | 65 + libbacktrace/instrumented_alloc.c | 114 + libbacktrace/internal.h | 380 + libbacktrace/macho.c | 1355 ++ libbacktrace/mmap.c | 331 + libbacktrace/mmapio.c | 110 + libbacktrace/mtest.c | 410 + libbacktrace/nounwind.c | 66 + libbacktrace/pecoff.c | 935 + libbacktrace/posix.c | 104 + libbacktrace/print.c | 92 + libbacktrace/read.c | 110 + libbacktrace/simple.c | 108 + libbacktrace/sort.c | 108 + libbacktrace/state.c | 72 + libbacktrace/stest.c | 137 + libbacktrace/test_format.c | 55 + libbacktrace/testlib.c | 234 + libbacktrace/testlib.h | 110 + libbacktrace/ttest.c | 161 + libbacktrace/unittest.c | 92 + libbacktrace/unknown.c | 65 + libbacktrace/xcoff.c | 1606 ++ libbacktrace/xztest.c | 508 + libbacktrace/ztest.c | 541 + 48 files changed, 42223 insertions(+) create mode 100644 libbacktrace/ChangeLog create mode 100644 libbacktrace/ChangeLog.jit create mode 100644 libbacktrace/Makefile.am create mode 100644 libbacktrace/Makefile.in create mode 100644 libbacktrace/README create mode 100644 libbacktrace/aclocal.m4 create mode 100644 libbacktrace/alloc.c create mode 100644 libbacktrace/allocfail.c create mode 100755 libbacktrace/allocfail.sh create mode 100644 libbacktrace/atomic.c create mode 100644 libbacktrace/backtrace-supported.h.in create mode 100644 libbacktrace/backtrace.c create mode 100644 libbacktrace/backtrace.h create mode 100644 libbacktrace/btest.c create mode 100644 libbacktrace/config.h.in create mode 100755 libbacktrace/configure create mode 100644 libbacktrace/configure.ac create mode 100644 libbacktrace/dwarf.c create mode 100644 libbacktrace/edtest.c create mode 100644 libbacktrace/edtest2.c create mode 100644 libbacktrace/elf.c create mode 100644 libbacktrace/fileline.c create mode 100644 libbacktrace/filetype.awk create mode 100644 libbacktrace/install-debuginfo-for-buildid.sh.in create mode 100644 libbacktrace/instrumented_alloc.c create mode 100644 libbacktrace/internal.h create mode 100644 libbacktrace/macho.c create mode 100644 libbacktrace/mmap.c create mode 100644 libbacktrace/mmapio.c create mode 100644 libbacktrace/mtest.c create mode 100644 libbacktrace/nounwind.c create mode 100644 libbacktrace/pecoff.c create mode 100644 libbacktrace/posix.c create mode 100644 libbacktrace/print.c create mode 100644 libbacktrace/read.c create mode 100644 libbacktrace/simple.c create mode 100644 libbacktrace/sort.c create mode 100644 libbacktrace/state.c create mode 100644 libbacktrace/stest.c create mode 100644 libbacktrace/test_format.c create mode 100644 libbacktrace/testlib.c create mode 100644 libbacktrace/testlib.h create mode 100644 libbacktrace/ttest.c create mode 100644 libbacktrace/unittest.c create mode 100644 libbacktrace/unknown.c create mode 100644 libbacktrace/xcoff.c create mode 100644 libbacktrace/xztest.c create mode 100644 libbacktrace/ztest.c ### SNIP #### I've not included the patch here. I'm just copying in the whole directory gcc/libbacktrace/ without any modifications.