From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= Newsgroups: gmane.emacs.bugs Subject: bug#66575: [PATCH] Gud lldb support Date: Tue, 17 Oct 2023 18:18:26 +0200 Message-ID: References: <7A4E9221-C0A4-4A98-A80A-5FD58C95C014@gmail.com> <19FFB7CA-6501-4E62-9EC6-D5F2DB680D70@gmail.com> <76E471C3-4926-4B71-B945-0C87BB04B0CD@gmail.com> Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.120.0.1.15\)) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="18544"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 66575@debbugs.gnu.org To: Gerd =?UTF-8?Q?M=C3=B6llmann?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Oct 17 18:20:01 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qsmnY-0004VY-Td for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 17 Oct 2023 18:20:01 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qsmnD-00071g-9k; Tue, 17 Oct 2023 12:19:39 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qsmnB-00071S-H1 for bug-gnu-emacs@gnu.org; Tue, 17 Oct 2023 12:19:38 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qsmnA-0000g3-NJ for bug-gnu-emacs@gnu.org; Tue, 17 Oct 2023 12:19:37 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qsmnZ-0006JZ-Rq for bug-gnu-emacs@gnu.org; Tue, 17 Oct 2023 12:20:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 17 Oct 2023 16:20:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 66575 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 66575-submit@debbugs.gnu.org id=B66575.169755954324199 (code B ref 66575); Tue, 17 Oct 2023 16:20:01 +0000 Original-Received: (at 66575) by debbugs.gnu.org; 17 Oct 2023 16:19:03 +0000 Original-Received: from localhost ([127.0.0.1]:60882 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qsmmd-0006IF-2P for submit@debbugs.gnu.org; Tue, 17 Oct 2023 12:19:03 -0400 Original-Received: from mail-lf1-x133.google.com ([2a00:1450:4864:20::133]:60925) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qsmmb-0006Hi-2p for 66575@debbugs.gnu.org; Tue, 17 Oct 2023 12:19:02 -0400 Original-Received: by mail-lf1-x133.google.com with SMTP id 2adb3069b0e04-5079eed8bfbso5325243e87.1 for <66575@debbugs.gnu.org>; Tue, 17 Oct 2023 09:18:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1697559509; x=1698164309; darn=debbugs.gnu.org; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:sender:from:to:cc:subject :date:message-id:reply-to; bh=ExK326woj6sA3Z1FB7hbG4E7xBGyk+TmmDxluLwh5ig=; b=cFQ0AhGr/fsVLfacZZNpTkvwENZKQ+26YX2Z4sDup/9nB+bhpl4D6NhCq1SxwjwZSR lPVE5GL5JiYYM6mskK0RYTgjZJNb1yo4ZNt5H0gsQAyTN6sFw5D4ilY+qefE5YWsXvr3 YN2iMEH0CQb+Ogi2xTpO0iVuwcA2NUOVn3bI0mJaAfSszKYDq4EPWzhB+cR5l7MTO02M W45+xQHEU69Ltp5fZyUNRXphETde/AhQbbcIdCsJlOyL51KHZ5uK2ZapNnFDjOCdk2aJ FSyrExp5dQ3mWNuj30p8NUaOF32eE0yLRalWdy8o88g6vF3Eh/ffO0Ef7CymgfriB9zm BmNA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697559509; x=1698164309; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:sender:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=ExK326woj6sA3Z1FB7hbG4E7xBGyk+TmmDxluLwh5ig=; b=g0SS3gUv/Rrout6hC2pJSxgBFxD9HVmeoh0MmMOjnSfTgdCYqoabIrfN4Bn1aZs9Vl UjAMgOfkGoJ5S4evGFaNtOOHWzzAwlWVzClgledqhY/BwrDJdGJY7OH00n6QKYuIJgKi uE0ko644b4hcbNsR+GDuMtJ/LhiTw3OFsC+UkYqC1VIv4wLITjhxo/R/nfr9HkpmMkuL cSgTSjcReZU1NrKVqIHDhBSnVdov5x7u81O7jd3rCG3uI4H+BzM2rf2yH8xNZlIt8/g7 RHxVQKkP2xg2KhpSuMz3Oqlyig7z1lHEMD09YgRxKwOzi75PdgdVzanjZlT/2QCZOuCC FSAA== X-Gm-Message-State: AOJu0YzWCJz7RuZzxIlqAPBAgwce2KZvceXaYXMqf2Vy6sTf/aKL5M9H o7Q6ZJ8/L+cWD8V+dhkTmtA= X-Google-Smtp-Source: AGHT+IHhcpB7CNwRL5fCYQJCpWAP91+d2AvDH6VxLGZCL9b5F5Jh6k53Chgg36l8Ai6q+Mb32JLfJw== X-Received: by 2002:ac2:55b9:0:b0:507:9640:f256 with SMTP id y25-20020ac255b9000000b005079640f256mr2120926lfg.36.1697559508888; Tue, 17 Oct 2023 09:18:28 -0700 (PDT) Original-Received: from smtpclient.apple (c188-150-165-235.bredband.tele2.se. [188.150.165.235]) by smtp.gmail.com with ESMTPSA id f21-20020ac251b5000000b005079db81105sm339068lfk.116.2023.10.17.09.18.27 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 17 Oct 2023 09:18:27 -0700 (PDT) In-Reply-To: X-Mailer: Apple Mail (2.3654.120.0.1.15) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:272618 Archived-At: 17 okt. 2023 kl. 14.30 skrev Gerd M=C3=B6llmann = : > There is this: https://lldb.llvm.org/use/formatting.html That's excellent! > The default is, AFAIU, and I'm not an LLDB expert at all, relative > paths. Indeed: (lldb) settings show frame-format frame-format (format-string) =3D "frame #${frame.index}: = ${ansi.fg.yellow}${frame.pc}${ansi.normal}{ = ${module.file.basename}{\`${function.name-with-args}{${frame.no-debug}${fu= nction.pc-offset}}}}{ at = ${ansi.fg.cyan}${line.file.basename}${ansi.normal}:${ansi.fg.yellow}${line= .number}${ansi.normal}{:${ansi.fg.yellow}${line.column}${ansi.normal}}}{${= function.is-optimized} [opt]}{${frame.is-artificial} [artificial]}\n" in which we note line.file.basename. We could modify frame-format and = thread-stop-format to convey all the useful information in a format that = is easy to parse. > In general, I find it always surprising what scenarios users come up > with, and I dont't want to get into anyone's way. You get from LLDB > what you configure for LLDB. Sure, but not all settings are alike in that respect. The user = definitely expects Emacs to take care of those that are pertinent to the = interface.=20 > Could be, yes. In that case they could use different init files, or > different LLDB config files, or write some Python (INSIDE_EMACS should > be in the environment when in Emacs), or... No, the source-attached init files should contain settings pertaining to = peculiarities of the project, not to the lldb interaction mode. > Can you give me an example that I can try to reproduce? LLDB version > and output in these cases would be also be interesting. I'm using > 17.0.2 here on macOS 14.0. I have older macOS and LLDB versions but starting an empty emacs, M-x = lldb attaching to another Emacs process and stopping somewhere that = doesn't correspond to an open source buffer (eval.c, say) won't cause = that file to be opened. Presumably it doesn't know where to look, given = the use of line.file.basename in frame-format. Anyway, your patch is fine to be committed -- any further improvement = can be made later on, and actual users mean more people complaining. We = shall give all of them your home address and telephone number.