From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#30151: Debugger API Date: Fri, 19 Jan 2018 12:19:10 +0200 Message-ID: <83vafytald.fsf@gnu.org> References: <1516251398.1364994.1239356432.7334F1AF@webmail.messagingengine.com> <83shb3ut4j.fsf@gnu.org> <1516353947.1372266.1240815736.7C68AE47@webmail.messagingengine.com> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1516357107 9626 195.159.176.226 (19 Jan 2018 10:18:27 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 19 Jan 2018 10:18:27 +0000 (UTC) Cc: 30151@debbugs.gnu.org To: James Nguyen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Jan 19 11:18:22 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ecTkO-0001JB-0y for geb-bug-gnu-emacs@m.gmane.org; Fri, 19 Jan 2018 11:18:08 +0100 Original-Received: from localhost ([::1]:40304 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ecTmN-0006DT-Mr for geb-bug-gnu-emacs@m.gmane.org; Fri, 19 Jan 2018 05:20:11 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50560) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ecTmH-0006Cp-9k for bug-gnu-emacs@gnu.org; Fri, 19 Jan 2018 05:20:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ecTmE-0000A9-7N for bug-gnu-emacs@gnu.org; Fri, 19 Jan 2018 05:20:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:54401) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ecTmE-00009h-4B for bug-gnu-emacs@gnu.org; Fri, 19 Jan 2018 05:20:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ecTmD-0001p9-Ro for bug-gnu-emacs@gnu.org; Fri, 19 Jan 2018 05:20:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 19 Jan 2018 10:20:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 30151 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 30151-submit@debbugs.gnu.org id=B30151.15163571836983 (code B ref 30151); Fri, 19 Jan 2018 10:20:01 +0000 Original-Received: (at 30151) by debbugs.gnu.org; 19 Jan 2018 10:19:43 +0000 Original-Received: from localhost ([127.0.0.1]:34065 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ecTlu-0001oZ-NX for submit@debbugs.gnu.org; Fri, 19 Jan 2018 05:19:42 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:59520) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ecTlt-0001oK-65 for 30151@debbugs.gnu.org; Fri, 19 Jan 2018 05:19:41 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ecTlk-00081r-M9 for 30151@debbugs.gnu.org; Fri, 19 Jan 2018 05:19:35 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:44968) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ecTlk-00081a-IH; Fri, 19 Jan 2018 05:19:32 -0500 Original-Received: from [176.228.60.248] (port=2021 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1ecTlj-0000rU-Gl; Fri, 19 Jan 2018 05:19:31 -0500 In-reply-to: <1516353947.1372266.1240815736.7C68AE47@webmail.messagingengine.com> (message from James Nguyen on Fri, 19 Jan 2018 01:25:47 -0800) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:142291 Archived-At: > From: James Nguyen > Cc: 30151@debbugs.gnu.org > Date: Fri, 19 Jan 2018 01:25:47 -0800 > > Ideally, it'd be nice to have something simple that asks me: > 1. Where to draw breakpoints in the buffer. > 2. What locals exist and displaying them in some kind of 'locals' buffer. > 3. Maybe an extra window that will display extraneous information (similar to jdibug's stacktrace buffer) > 4. I'm missing some other common functionalities between debuggers. > > I think some/all of ^ is very similar to gdb-many-windows but I've only ever seen that for *just* gdb. I agree, but as I said, these capabilities need to be supported by the underlying debuggers. Currently, only gdb-mi.el provides them because GDB includes a special interface for debugging front-ends, and that interface provides the functionality required for the features shown in gdb-many-windows. If other debuggers can support similar functionalities, gud.el could be extended to do that for them as well. Perhaps the first step would be to look at what realgud does to provide these features. But please be aware that if you are going to read realgud's source with the intent of doing something similar in Emacs, you are advised to check with realgud's developers whether they will be willing to sign legal paperwork, in case you end up copying some of their code. Thanks.