From owner-freebsd-current@freebsd.org Sat Jan 12 19:26:17 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 7E96C149BFB7 for ; Sat, 12 Jan 2019 19:26:17 +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 B01416C7F4 for ; Sat, 12 Jan 2019 19:26:16 +0000 (UTC) (envelope-from oliver.pinter@hardenedbsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 7181C149BFB6; Sat, 12 Jan 2019 19:26:16 +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 314AC149BFB4 for ; Sat, 12 Jan 2019 19:26:16 +0000 (UTC) (envelope-from oliver.pinter@hardenedbsd.org) Received: from mail-yb1-xb42.google.com (mail-yb1-xb42.google.com [IPv6:2607:f8b0:4864:20::b42]) (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 B50CA6C7EC for ; Sat, 12 Jan 2019 19:26:15 +0000 (UTC) (envelope-from oliver.pinter@hardenedbsd.org) Received: by mail-yb1-xb42.google.com with SMTP id t16so7159346ybk.10 for ; Sat, 12 Jan 2019 11:26:15 -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=5h66/S64etAcfTB9kKTZlJmlAni37qrqVHjTPA/MUn0=; b=WFBbwJbNUe9cMg+TtZVwjebX6eG8QcE2QYofGL2VvpO9xp516nNvY6TDiEMT/uiCQC nEzxQ66cxyPT4oMDntWJd11DHaYvrLTpU5Y0uw4+f/ET+EKWerramkSC8Rb/uRxjR/Kh PmdZihokhMsrs/+JuBkBH2QB3uRRoxaYcorRDCvtb7VXc1Xlo+o2OVHAagUKK7Dd59hX nNQQYaZINKV+gk3C2EAVDyb+j8TYZWawVZg9MQXVd1gBdhCB6b75kdwiVKWsRdHvnl3U 4WS83ZODbriCKEI+uALUL8scI7vsugxApAxuAyDGAKyHUG2rmJiF99fgmeRVeHSvXIq0 rv1g== 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=5h66/S64etAcfTB9kKTZlJmlAni37qrqVHjTPA/MUn0=; b=surHi7pxgFf3BF3Yd17rgsTY20S9Ta0henTn9IOW4eKIkCUBS2y+Q7mqDDoVLt1Vpd aHqePYE8iPCYRK+u8U/Y+3ewFoJHZx37pvMsNb8pPDkZONx+1d9u/7hGCpaGEy1ESnf0 ozW7Qg9oMlSshY3yWBerBbhhqOd2LJUf5K3kEufAfvbQ81ioC33ekUaP1lcUQFEnSHzs 6lSXP1f2Gkeo8wgApNoAOvWpyni+0p2qlug0/tlxXE9C6mftSwgpUGH6/5Aq4cDZynpf flQitrCwmWRPvs6DfY6PwTijTHhQevDtPycrZYP6Ia+OIjZO4C6OYR1pwd9Ttj9pAGsk SFrA== X-Gm-Message-State: AJcUukejhuT6oBIsl7lEqtVC0EKaq9rT9zwTP+816pL0Mth5avtnqil0 y14Od1BWzYVJBNgTZcUn/nDcQnwIhhME/ylPRmd8k4C6aq4= X-Google-Smtp-Source: ALg8bN5IUwLUil9neDF+uzNiEyXSC3lJL2iGWpb341jPT3gYpXFExLKs+cGW4EXFxs/vNbCmtdQ6zzU697T+z+XBdcI= X-Received: by 2002:a25:cac7:: with SMTP id a190mr3989742ybg.439.1547321175258; Sat, 12 Jan 2019 11:26:15 -0800 (PST) MIME-Version: 1.0 Received: by 2002:a5b:ec8:0:0:0:0:0 with HTTP; Sat, 12 Jan 2019 11:26:14 -0800 (PST) In-Reply-To: References: <70C62120-8F26-4EE6-AAA5-EBDAF7F65ACE@FreeBSD.org> From: Oliver Pinter Date: Sat, 12 Jan 2019 20:26:14 +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: B50CA6C7EC 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]; REPLY(-4.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0] 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:26:17 -0000 On 1/12/19, Oliver Pinter wrote: > 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 . And probably found them: https://reviews.llvm.org/D10216 . > > > >> >> -Dimitry >> >> >