From owner-freebsd-current@freebsd.org Sat Jan 12 19:14:39 2019 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id F1328149B968 for ; Sat, 12 Jan 2019 19:14:38 +0000 (UTC) (envelope-from oliver.pinter@hardenedbsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 401016C0DC for ; Sat, 12 Jan 2019 19:14:38 +0000 (UTC) (envelope-from oliver.pinter@hardenedbsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 00EAA149B967; Sat, 12 Jan 2019 19:14:38 +0000 (UTC) Delivered-To: current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id CE65A149B965 for ; Sat, 12 Jan 2019 19:14:37 +0000 (UTC) (envelope-from oliver.pinter@hardenedbsd.org) Received: from mail-yb1-xb44.google.com (mail-yb1-xb44.google.com [IPv6:2607:f8b0:4864:20::b44]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 663A26C0D8 for ; Sat, 12 Jan 2019 19:14:37 +0000 (UTC) (envelope-from oliver.pinter@hardenedbsd.org) Received: by mail-yb1-xb44.google.com with SMTP id q2so7151984ybd.12 for ; Sat, 12 Jan 2019 11:14:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hardenedbsd.org; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=IgU6WRYhzQQBhGvKZr5aFrwolR/WWoPk5YQ2oajlIpk=; b=SGFnhY8pLoo+QLUNNaMHjTumf9LF+ev41Bc2Xg0c34wu5UxDvP0t5JZW9LyMUF6NES 8VxBE3/v83y69kLRTyAPqPykLYLSrs0NkH8G32UxKElkrAkTYi5cjb+qizomt05Li8pm 8u+ankQC+0kn99mJnSrUrFbBFZt/5J3CY8Q7qEzTyshQV+o6ej4JMZp16DQgW+PGJP8I wpDBN4Apj2DIiIaCC86NIQj6gHoeelY52IclfznnOnQm936qu1ZFFKqKKI6cgQBJ7bpd zozQU+Dw5QagdQEDs4MUlBz2n0LAxFJHdJu0d/zjIFzkrDV7DFt846v7Y6cKDCT6hXfS cyuQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=IgU6WRYhzQQBhGvKZr5aFrwolR/WWoPk5YQ2oajlIpk=; b=Y9jHshiRbW0iffpiYJm28LordgEh0K+NJFXptYsPyyGPabe3I0u6xOimfX9+b4l9Vg 7rLNChgpx1Zn3MZjNO1oNQNGjkGlfk83O30uIsj4gzoasQnMfoA/3w8iHEw3gzIc++z3 HI9yf+YoZXQflv/Nf4rdUYT9n5LXMcJql9uDHNPiWEFuRUrHmxuWy3o0CNeMZqoDDMKr hrQSfAXB//b+4yn3qOk7/MkkxXvZ88kjX7J5MoW5rlKZC8Abu7OlEv0I3NZJMMJko8C0 70inTDc6+5nNYHdpvk0FMcVQgmOY7Sv67GEOXUJ3ev6ano6anSBUtI1XUlJA5zRQIYlX vGDw== X-Gm-Message-State: AJcUukcQS1ty3nNMxYfaTFbgx6J1HElEffWq3ojdQAXlP4br6N3/xmPN fkt/1KtjO/+jInBmtVgJ/2eCp+T7Lu9RCXoDG4CAXRaXNpQ= X-Google-Smtp-Source: ALg8bN4tkeHKH78TSj8XVq7J3P1SceudkyHQg1MrQx2x4nnWanNrpTl/ZiEH7wCNQirSQLb32/jfVvPO3v8Cr/lEpOY= X-Received: by 2002:a25:ed06:: with SMTP id k6mr787529ybh.158.1547320476790; Sat, 12 Jan 2019 11:14:36 -0800 (PST) MIME-Version: 1.0 Received: by 2002:a5b:ec8:0:0:0:0:0 with HTTP; Sat, 12 Jan 2019 11:14:36 -0800 (PST) In-Reply-To: <70C62120-8F26-4EE6-AAA5-EBDAF7F65ACE@FreeBSD.org> References: <70C62120-8F26-4EE6-AAA5-EBDAF7F65ACE@FreeBSD.org> From: Oliver Pinter Date: Sat, 12 Jan 2019 20:14:36 +0100 Message-ID: Subject: Re: dwarf2 today on 13-CURRENT To: Dimitry Andric Cc: current@freebsd.org Content-Type: text/plain; charset="UTF-8" X-Rspamd-Queue-Id: 663A26C0D8 X-Spamd-Bar: ------ Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-6.98 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; NEURAL_HAM_SHORT(-0.98)[-0.981,0]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; REPLY(-4.00)[] X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 12 Jan 2019 19:14:39 -0000 On 1/12/19, Dimitry Andric wrote: > On 12 Jan 2019, at 19:40, Oliver Pinter > wrote: >> According the following comment in ${SRCTOP}/sys/conf/kern.mk: >> >> # >> # Add -gdwarf-2 when compiling -g. The default starting in clang v3.4 >> # and gcc 4.8 is to generate DWARF version 4. However, our tools don't >> # cope well with DWARF 4, so force it to genereate DWARF2, which they >> # understand. Do this unconditionally as it is harmless when not needed, >> # but critical for these newer versions. >> # >> .if ${CFLAGS:M-g} != "" && ${CFLAGS:M-gdwarf*} == "" >> CFLAGS+= -gdwarf-2 >> .endif >> >> this dwarf2 limitation still exists in today's HEAD? >> >> I mean the FreeBSD project switched to elftoolchain and mostly to LLVM >> tools. LLDB is compiled by default on 13-CURRENT (~ HEAD) and the kgdb >> has moved under the libexec directory, to hide them from the common >> usage. > > See https://reviews.freebsd.org/D17930, where there is a proposed patch > for this very topic. Thanks! >From the other side, is there any result from the GSoC14's klldb? I can't really find any info in the project's github branch, but I've found this patch: https://reviews.llvm.org/rLLDB314672 . > > -Dimitry > >