From unknown Mon Aug 18 08:59:37 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#56495 <56495@debbugs.gnu.org> To: bug#56495 <56495@debbugs.gnu.org> Subject: Status: 29.0.50; Support for debugging Emacs with LLDB Reply-To: bug#56495 <56495@debbugs.gnu.org> Date: Mon, 18 Aug 2025 15:59:37 +0000 retitle 56495 29.0.50; Support for debugging Emacs with LLDB reassign 56495 emacs submitter 56495 Gerd M=C3=B6llmann severity 56495 wishlist tag 56495 patch thanks From debbugs-submit-bounces@debbugs.gnu.org Mon Jul 11 04:13:44 2022 Received: (at submit) by debbugs.gnu.org; 11 Jul 2022 08:13:44 +0000 Received: from localhost ([127.0.0.1]:38205 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oAoY4-0006Y2-Is for submit@debbugs.gnu.org; Mon, 11 Jul 2022 04:13:44 -0400 Received: from lists.gnu.org ([209.51.188.17]:57590) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oAoY3-0006Xv-B9 for submit@debbugs.gnu.org; Mon, 11 Jul 2022 04:13:43 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:47270) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oAoY2-0000mE-Nz for bug-gnu-emacs@gnu.org; Mon, 11 Jul 2022 04:13:43 -0400 Received: from mail-wr1-x431.google.com ([2a00:1450:4864:20::431]:36607) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oAoY0-0001uP-RE for bug-gnu-emacs@gnu.org; Mon, 11 Jul 2022 04:13:42 -0400 Received: by mail-wr1-x431.google.com with SMTP id o4so5954645wrh.3 for ; Mon, 11 Jul 2022 01:13:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:mime-version:subject:message-id:date:to; bh=nruCy5QYYeKpu9tyTfPA2p+/ofWTiOFymV+H4ENUlro=; b=mo++VeyxoVlGOY5gykHFTfCBzECGPBMWpH0LnxFFuzQId+kAb7W61j9+koJIuXgg+h Caw2UpiE/FVBom4KSX0oHUYKTuLEJ0MBtrj773s+8LN0Pnek/1Tku85xK1g7GEDe5wkj ce3OsqNIVhOIXyb+V9YOuQhEAkaxpeB2hNcFaT32bHZ74XDT1GTqryseVjgCCSHMHEdc enpO0u3jgIIBpcTX1Uptqxix/XmUCdBaNnSgE859BLUpvpDX8Z/V9PW2lg5hS912+PEy O+jVVWQ+UDa39wFznxxXZN++UpJPb7XwmbxfFbvuhAGZs/WL6UQDdgC8CJl6zqrJAr+G oa4A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:mime-version:subject:message-id:date:to; bh=nruCy5QYYeKpu9tyTfPA2p+/ofWTiOFymV+H4ENUlro=; b=fP/ZB6AojYw8BCpJg6+6nmXzoFGopb4BjTO1eITbyK6tOiTuttpr/rlQPeFybsF/34 oAE5L7I/t6t9buMXIxeai8Atn6AEdNUNCt0qYyJPy0HS2+4lSwaq76+8aaUuvDn1viRr ukjdgagp4KXzgma1ECdwiWekI32H1R9iramgAQ4Gw1ez2uKuLRVL4IybAXR5Qwrdlld/ 3gf4Ii5ndNoR1kWjbYSkvzUGFABYHIdiw02CCNhlX2tkQ1/hi2Abfrjdev0cnUZolRoD GfmmuKNLF8IlPiP2AufUEHxTknnMv7LIDWKhJBMnruK/2v0TF8xGeuXIfA9OmwshMXJf NyvQ== X-Gm-Message-State: AJIora+LB1yDa4bFJvSfuDIUUbGI+6jBSwECcJ5HmZHdNsBRSocniksU 3M+3SicXfuoDbBWZNAURBvqBnkzKMnf0og== X-Google-Smtp-Source: AGRyM1tAOqpMYJZkDLubRsJEKYynbLiJ7X2zwG26M7OGMupWsOugYI+1fei8yUBGDpXNONYjeMYRmA== X-Received: by 2002:a05:6000:184c:b0:21b:b6ac:8cb6 with SMTP id c12-20020a056000184c00b0021bb6ac8cb6mr15741047wri.154.1657527217854; Mon, 11 Jul 2022 01:13:37 -0700 (PDT) Received: from smtpclient.apple (pd9e369e6.dip0.t-ipconnect.de. [217.227.105.230]) by smtp.gmail.com with ESMTPSA id w15-20020a1cf60f000000b003a2c7bf0497sm6110198wmc.16.2022.07.11.01.13.36 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 11 Jul 2022 01:13:36 -0700 (PDT) From: =?utf-8?Q?Gerd_M=C3=B6llmann?= Content-Type: multipart/signed; boundary="Apple-Mail=_D9E4F5FD-BB49-4D87-B845-907284C61050"; protocol="application/pgp-signature"; micalg=pgp-sha512 Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.100.31\)) Subject: 29.0.50; Support for debugging Emacs with LLDB Message-Id: Date: Mon, 11 Jul 2022 10:13:35 +0200 To: bug-gnu-emacs@gnu.org X-Mailer: Apple Mail (2.3696.100.31) Received-SPF: pass client-ip=2a00:1450:4864:20::431; envelope-from=gerd.moellmann@gmail.com; helo=mail-wr1-x431.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) --Apple-Mail=_D9E4F5FD-BB49-4D87-B845-907284C61050 Content-Type: multipart/mixed; boundary="Apple-Mail=_0AF19E57-73BE-404D-B01C-E030BD866513" --Apple-Mail=_0AF19E57-73BE-404D-B01C-E030BD866513 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii My system, macOS with Apple M1 chip, is currently not supported by GDB. To quote gdb-devel, "lldb is the way to go" to debug Emacs for me. Attached patch adds rather limited support for that. Limited by - the fact that I don't know LLDB, - that I don't know LLDB's Python API, - that I'm not a Python programmer, - that the Python API documentation is pretty lacking in itself, - that I didn't implement support for ENABLE_CHECKING and what else might change Lisp_Object layout So please bear with me. Anyway, at least displaying some Lisp_Objects with 'p obj' seems to work, and 'xbacktrace' seems to be working. YMMV. --Apple-Mail=_0AF19E57-73BE-404D-B01C-E030BD866513 Content-Disposition: attachment; filename=0001-Support-for-debugging-Emacs-with-LLDB.patch Content-Type: application/octet-stream; name=0001-Support-for-debugging-Emacs-with-LLDB.patch; x-unix-mode=0644 Content-Transfer-Encoding: quoted-printable =46rom=20c5cfd261a549740a0619eb1854032778204dc51e=20Mon=20Sep=2017=20= 00:00:00=202001=0AFrom:=20=3D?UTF-8?q?Gerd=3D20M=3DC3=3DB6llmann?=3D=20= =0ADate:=20Sun,=2010=20Jul=202022=2013:35:32=20+0200=0A= Subject:=20[PATCH]=20Support=20for=20debugging=20Emacs=20with=20LLDB=0A=0A= *=20(src/.lldbinit):=20New=20file.=0A*=20(etc/emacs_lldb.py):=20Module=20= loaded=20from=20.lldbinit.=0A---=0A=20etc/emacs_lldb.py=20|=20166=20= ++++++++++++++++++++++++++++++++++++++++++++++=0A=20src/.lldbinit=20=20=20= =20=20|=20=2033=20+++++++++=0A=202=20files=20changed,=20199=20= insertions(+)=0A=20create=20mode=20100644=20etc/emacs_lldb.py=0A=20= create=20mode=20100644=20src/.lldbinit=0A=0Adiff=20--git=20= a/etc/emacs_lldb.py=20b/etc/emacs_lldb.py=0Anew=20file=20mode=20100644=0A= index=200000000000..3a9f17e020=0A---=20/dev/null=0A+++=20= b/etc/emacs_lldb.py=0A@@=20-0,0=20+1,166=20@@=0A+#=20Copyright=20(C)=20= 2022=20Free=20Software=20Foundation,=20Inc.=0A+#=0A+#=20This=20file=20is=20= part=20of=20GNU=20Emacs.=0A+#=0A+#=20GNU=20Emacs=20is=20free=20software;=20= you=20can=20redistribute=20it=20and/or=20modify=0A+#=20it=20under=20the=20= terms=20of=20the=20GNU=20General=20Public=20License=20as=20published=20= by=0A+#=20the=20Free=20Software=20Foundation;=20either=20version=203,=20= or=20(at=20your=20option)=0A+#=20any=20later=20version.=0A+#=0A+#=20GNU=20= Emacs=20is=20distributed=20in=20the=20hope=20that=20it=20will=20be=20= useful,=0A+#=20but=20WITHOUT=20ANY=20WARRANTY;=20without=20even=20the=20= implied=20warranty=20of=0A+#=20MERCHANTABILITY=20or=20FITNESS=20FOR=20A=20= PARTICULAR=20PURPOSE.=20=20See=20the=0A+#=20GNU=20General=20Public=20= License=20for=20more=20details.=0A+#=0A+#=20You=20should=20have=20= received=20a=20copy=20of=20the=20GNU=20General=20Public=20License=0A+#=20= along=20with=20GNU=20Emacs.=20=20If=20not,=20see=20= .=0A+=0A+#=20Load=20this=20module=20in=20= LLDB=20with=0A+#=0A+#=20(lldb)=20command=20script=20import=20emacs_lldb=0A= +#=0A+#=20Available=20commands=20start=20with=20'x'=20and=20can=20be=20= seen=20with=0A+#=0A+#=20(lldb)=20help=0A+=0A+import=20lldb=0A+=0A+=0C=0A= +########################################################################=0A= +#=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20Utilties=0A= +########################################################################=0A= +=0A+#=20Return=20the=20Lisp_Type=20of=20Lisp_Object=20OBJ.=0A+def=20= get_lisp_type(obj):=0A+=20=20=20=20int_value=20=3D=20= obj.GetValueAsUnsigned()=0A+=20=20=20=20return=20= obj.GetFrame().EvaluateExpression(=0A+=20=20=20=20=20=20=20=20f"(enum=20= Lisp_Type)=20((EMACS_INT)=20{int_value}=20"=0A+=20=20=20=20=20=20=20=20= "&=20(1=20<<=20GCTYPEBITS)=20-=201)")=0A+=0A+#=20Return=20the=20= Lisp_Type=20or=20pseudo-vector=20type=20of=20OBJ.=0A+def=20= get_lisp_type_or_vectorlike(obj):=0A+=20=20=20=20lisp_type=20=3D=20= get_lisp_type(obj)=0A+=20=20=20=20if=20enumerator_name(lisp_type)=20=3D=3D= =20"Lisp_Vectorlike":=0A+=20=20=20=20=20=20=20=20vector=20=3D=20= get_lisp_pointer(obj,=20"struct=20Lisp_Vector")=0A+=20=20=20=20=20=20=20=20= header_size=20=3D=20vector.GetValueForExpressionPath(=0A+=20=20=20=20=20=20= =20=20=20=20=20=20"->header.size").GetValueAsUnsigned()=0A+=20=20=20=20=20= =20=20=20frame=20=3D=20obj.GetFrame()=0A+=20=20=20=20=20=20=20=20pseudo=20= =3D=20frame.EvaluateExpression(=0A+=20=20=20=20=20=20=20=20=20=20=20=20= f"{header_size}=20&=20PSEUDOVECTOR_FLAG")=0A+=20=20=20=20=20=20=20=20if=20= pseudo.GetValueAsUnsigned()=20!=3D=200:=0A+=20=20=20=20=20=20=20=20=20=20= =20=20return=20frame.EvaluateExpression(=0A+=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20f"(enum=20pvec_type)=20(({header_size}=20"=0A+=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20"&=20= More_Lisp_Bits::PVEC_TYPE_MASK)=20"=0A+=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20">>=20More_Lisp_Bits::PSEUDOVECTOR_AREA_BITS)")=0A+=20=20=20=20= =20=20=20=20return=20= frame.EvaluateExpression("pvec_type::PVEC_NORMAL_VECTOR")=0A+=20=20=20=20= return=20lisp_type=0A+=0A+#=20Return=20Lisp_Object=20OBJ=20as=20pointer=20= to=20TYP=20*.=0A+def=20get_lisp_pointer(obj,=20typ):=0A+=20=20=20=20= return=20obj.GetFrame().EvaluateExpression(=0A+=20=20=20=20=20=20=20=20= f"({typ}*)=20(((EMACS_INT)=20{obj.GetValueAsUnsigned()})=20&=20= VALMASK)")=0A+=0A+#=20Return=20Lisp_Object=20OBJ=20as=20pointer=20to=20= Lisp_Symbol.=0A+def=20get_lisp_symbol(obj):=0A+=20=20=20=20ptr=20=3D=20= get_lisp_pointer(obj,=20"char")=0A+=20=20=20=20offset=20=3D=20= ptr.GetValueAsUnsigned()=0A+=20=20=20=20return=20= obj.GetFrame().EvaluateExpression(=0A+=20=20=20=20=20=20=20=20f"(struct=20= Lisp_Symbol=20*)=20((char=20*)=20&lispsym=20+=20{offset})")=0A+=0A+#=20= Return=20Lisp_Object=20OBJ=20as=20pointer=20to=20Lisp_String=0A+def=20= get_lisp_string(obj):=0A+=20=20=20=20return=20get_lisp_pointer(obj,=20= "struct=20Lisp_String")=0A+=0A+#=20Return=20the=20string=20data=20of=20= Lisp_Object=20OBJ=20which=20denotes=20a=20Lisp_String.=0A+def=20= get_lisp_string_data(obj):=0A+=20=20=20=20string=20=3D=20= get_lisp_string(obj)=0A+=20=20=20=20return=20= string.GetValueForExpressionPath("->u.s.data")=0A+=0A+#=20Assuming=20OBJ=20= denotes=20a=20Lisp_Symbol,=20return=20the=20name=20of=20the=20symbol.=0A= +def=20get_lisp_symbol_name(obj):=0A+=20=20=20=20sym=20=3D=20= get_lisp_symbol(obj)=0A+=20=20=20=20name=20=3D=20= sym.GetValueForExpressionPath("->u.s.name")=0A+=20=20=20=20return=20= get_lisp_string_data(name)=0A+=0A+#=20Return=20a=20string=20for=20the=20= enuerator=20ENUM.=0A+def=20enumerator_name(enum):=0A+=20=20=20=20= enumerators=20=3D=20enum.GetType().GetEnumMembers()=0A+=20=20=20=20= return=20enumerators[enum.GetValueAsUnsigned()].GetName()=0A+=0A+=0C=0A= +########################################################################=0A= +#=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20LLDB=20Commands=0A= +########################################################################=0A= +=0A+def=20xbacktrace(debugger,=20command,=20ctx,=20result,=20= internal_dict):=0A+=20=20=20=20"""Print=20Emacs=20Lisp=20backtrace"""=0A= +=20=20=20=20frame=20=3D=20ctx.GetFrame()=0A+=20=20=20=20n=20=3D=20= frame.EvaluateExpression(=0A+=20=20=20=20=20=20=20=20= "current_thread->m_specpdl_ptr=20-=20current_thread->m_specpdl")=0A+=20=20= =20=20for=20i=20in=20reversed(range(0,=20n.GetValueAsUnsigned())):=0A+=20= =20=20=20=20=20=20=20s=20=3D=20= frame.EvaluateExpression(f"current_thread->m_specpdl[{i}]")=0A+=20=20=20=20= =20=20=20=20kind=20=3D=20= enumerator_name(s.GetChildMemberWithName("kind"))=0A+=20=20=20=20=20=20=20= =20if=20kind=20=3D=3D=20"SPECPDL_BACKTRACE":=0A+=20=20=20=20=20=20=20=20=20= =20=20=20function=20=3D=20s.GetValueForExpressionPath(".bt.function")=0A= +=20=20=20=20=20=20=20=20=20=20=20=20function_type=20=3D=20= enumerator_name(get_lisp_type(function))=0A+=20=20=20=20=20=20=20=20=20=20= =20=20if=20function_type=20=3D=3D=20"Lisp_Symbol":=0A+=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20sym_name=20=3D=20= get_lisp_symbol_name(function)=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20result.AppendMessage(str(sym_name))=0A+=20=20=20=20=20=20=20=20=20= =20=20=20elif=20function_type=20=3D=3D=20"Lisp_Vectorlike":=0A+=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20subtype=20=3D=20= get_lisp_type_or_vectorlike(function)=0A+=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20result.AppendMessage(str(subtype))=0A+=20=20=20=20=20=20=20= =20=20=20=20=20else:=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= result.AppendMessage(function_type)=0A+=0A+def=20xdebug_print(debugger,=20= command,=20result,=20internal_dict):=0A+=20=20=20=20"""Print=20= Lisp_Objects=20using=20safe_debug_print()"""=0A+=20=20=20=20= debugger.HandleCommand(f"expr=20safe_debug_print({command})")=0A+=0A+=0C=0A= +########################################################################=0A= +#=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20Formatters=0A= +########################################################################=0A= +=0A+#=20Return=20a=20type=20summary=20for=20Lisp_Objects.=0A+def=20= format_Lisp_Object(obj,=20internal_dict):=0A+=20=20=20=20lisp_type=20=3D=20= get_lisp_type_or_vectorlike(obj)=0A+=20=20=20=20kind=20=3D=20= enumerator_name(lisp_type)=0A+=20=20=20=20summary=20=3D=20"->=20"=0A+=20=20= =20=20if=20kind=20=3D=3D=20"PVEC_FRAME":=0A+=20=20=20=20=20=20=20=20ptr=20= =3D=20get_lisp_pointer(obj,=20"struct=20frame")=0A+=20=20=20=20=20=20=20=20= summary=20+=3D=20str(ptr)=0A+=20=20=20=20elif=20kind=20=3D=3D=20= "PVEC_WINDOW":=0A+=20=20=20=20=20=20=20=20ptr=20=3D=20= get_lisp_pointer(obj,=20"struct=20window")=0A+=20=20=20=20=20=20=20=20= summary=20+=3D=20str(ptr)=0A+=20=20=20=20return=20summary=0A+=0A+=0C=0A= +########################################################################=0A= +#=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20Initialization=0A= +########################################################################=0A= +=0A+#=20Define=20Python=20FUNCTION=20as=20an=20LLDB=20command.=0A+def=20= define_command=20(debugger,=20function):=0A+=20=20=20=20lldb_command=20=3D= =20function.__name__=0A+=20=20=20=20python_function=20=3D=20__name__=20+=20= "."=20+=20function.__name__=0A+=20=20=20=20= debugger.HandleCommand(f"command=20script=20add=20"=0A+=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= f"--overwrite=20"=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20f"--function=20{python_function}=20"=0A+=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= f"{lldb_command}")=0A+=0A+#=20Define=20Python=20FUNCTION=20as=20an=20= LLDB=20type=20formatter.=0A+def=20define_formatter(debugger,=20regex,=20= function):=0A+=20=20=20=20python_function=20=3D=20__name__=20+=20"."=20+=20= function.__name__=0A+=20=20=20=20debugger.HandleCommand(f"type=20summary=20= add=20"=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20f"--cascade=20true=20"=0A+=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20f'--regex=20"{regex}"=20= '=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20f"--python-function=20{python_function}")=0A+=0A+#=20This=20= function=20is=20called=20by=20LLDB=20to=20initialize=20the=20module.=0A= +def=20__lldb_init_module(debugger,=20internal_dict):=0A+=20=20=20=20= define_command(debugger,=20xbacktrace)=0A+=20=20=20=20= define_command(debugger,=20xdebug_print)=0A+=20=20=20=20= define_formatter(debugger,=20"Lisp_Object",=20format_Lisp_Object)=0A+=20=20= =20=20print('Emacs=20debugging=20support=20has=20been=20installed.')=0A+=0A= +#=20end.=0Adiff=20--git=20a/src/.lldbinit=20b/src/.lldbinit=0Anew=20= file=20mode=20100644=0Aindex=200000000000..617d63958b=0A---=20/dev/null=0A= +++=20b/src/.lldbinit=0A@@=20-0,0=20+1,33=20@@=0A+#=20-*-=20mode:=20= shell-script=20-*-=0A+#=20Copyright=20(C)=201992-1998,=202000-2022=20= Free=20Software=20Foundation,=20Inc.=0A+#=0A+#=20This=20file=20is=20part=20= of=20GNU=20Emacs.=0A+#=0A+#=20GNU=20Emacs=20is=20free=20software;=20you=20= can=20redistribute=20it=20and/or=20modify=0A+#=20it=20under=20the=20= terms=20of=20the=20GNU=20General=20Public=20License=20as=20published=20= by=0A+#=20the=20Free=20Software=20Foundation;=20either=20version=203,=20= or=20(at=20your=20option)=0A+#=20any=20later=20version.=0A+#=0A+#=20GNU=20= Emacs=20is=20distributed=20in=20the=20hope=20that=20it=20will=20be=20= useful,=0A+#=20but=20WITHOUT=20ANY=20WARRANTY;=20without=20even=20the=20= implied=20warranty=20of=0A+#=20MERCHANTABILITY=20or=20FITNESS=20FOR=20A=20= PARTICULAR=20PURPOSE.=20=20See=20the=0A+#=20GNU=20General=20Public=20= License=20for=20more=20details.=0A+#=0A+#=20You=20should=20have=20= received=20a=20copy=20of=20the=20GNU=20General=20Public=20License=0A+#=20= along=20with=20GNU=20Emacs.=20=20If=20not,=20see=20= .=0A+#=0A+#=20Use=20'lldb=20--local-init'=20= or=20add=20to=20your=20~/.lldbinit=20the=20line=0A+#=0A+#=20settings=20= set=20target.load-cwd-lldbinit=20true=0A+#=0A+#=20Emacs-specific=20= commands=20start=20with=20'x'.=20=20Type=20'help'=20to=20see=20all=0A+#=20= commands.=20=20Type=20'help=20'=20to=20see=20help=20for=20a=20= command=0A+#=20.=0A+=0A+#=20Make=20Python=20find=20our=20files=0A= +script=20--=20sys.path.append('../etc')=0A+=0A+#=20Load=20our=20Python=20= files=0A+command=20script=20import=20emacs_lldb=0A+=0A+#=20end.=0A--=20=0A= 2.37.0=0A=0A= --Apple-Mail=_0AF19E57-73BE-404D-B01C-E030BD866513-- --Apple-Mail=_D9E4F5FD-BB49-4D87-B845-907284C61050 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP -----BEGIN PGP SIGNATURE----- Comment: GPGTools - https://gpgtools.org iQIzBAEBCgAdFiEEirYePpiT82Hjkftpc+obGZDFPmMFAmLL268ACgkQc+obGZDF PmP9zA//ZLNyFlIDmCVDkVAXsl/Yw0SMXrwiy0+O7DIezvU3hgH7cqSLajwRMESm NoUJWwA2cGuN3aERdrgJRMUaklu3CJadvC+U0G9vf60bjUnvVvD3COvjaQQccfNi evmCrT/FvlkpjSMRAW1/0nVUSPxoleR1+LCMzmRHAkOB6qLWHZXKtpSMrJ7KNQNb ZC+Mrq3bBycBl3om96ReBY1tUkOOJ9dU6hXSXrtDuipUDe8hW7gFyulVny9n98OG pVjeNKpTZrkeb/yOSKmc/rasyrCOHUVjYouI91a9/FYW8Id35y0j+RtHVEhrSBNC 4WnE2Cjo8pKZ9oBdwyeTUBBkW7f0khnh8kn8+98wGDG6TchtnmXIqhQWLkNFUoNw MpRMLFpTJxPewRx5W5d7ZgDdHwNSwKMs444sapT3XhDhREtLeZyIS9aqU5Xn/vBe HTnZEEMFHn9K3T0ZS5lnFZrH0ish/XgcTau1nB6O2ePfgumWyroeusP3Td7ztRjL ekGf9IXhw2dFiC3PtJ2wx0LtCbY1hvU+F1ez6Np6u4WlEwOARRrJWFrp3ICQSDD/ rG4rsv9hly19jJ5HDnLQg/ub+LvsUi58e7cvP6ZGQnEVsMpLVhLS+EnrNd2ro+r1 K0a3BkDUU2q8YLBntZyOnRpNLiE+1l2R/xteE2/1XqJsdZ3eRHE= =HJhF -----END PGP SIGNATURE----- --Apple-Mail=_D9E4F5FD-BB49-4D87-B845-907284C61050-- From debbugs-submit-bounces@debbugs.gnu.org Mon Jul 11 05:18:32 2022 Received: (at 56495) by debbugs.gnu.org; 11 Jul 2022 09:18:32 +0000 Received: from localhost ([127.0.0.1]:38249 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oApYm-0008IL-Cg for submit@debbugs.gnu.org; Mon, 11 Jul 2022 05:18:32 -0400 Received: from mail-wr1-f48.google.com ([209.85.221.48]:43530) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oApYl-0008I8-2f for 56495@debbugs.gnu.org; Mon, 11 Jul 2022 05:18:31 -0400 Received: by mail-wr1-f48.google.com with SMTP id d16so6129147wrv.10 for <56495@debbugs.gnu.org>; Mon, 11 Jul 2022 02:18:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version:content-transfer-encoding; bh=MjOmzqyL+HAO//RgGNZdshxz4qNqgio5TCiWHUQzA3A=; b=PmfPUdT/eefiXSd2yCPDTHsu5Zw3+nlbVNtbhN7PqSV5ZF0oU2bXi5F+6hgeH80pNE MXQvYld5fg9VMhYF9cFjIRYp9pYSWVk1PbId4OkSUl+yOTezP+2+SO3X3bUOkIRj8SEg vbnnloHZY1MVu3DBD+tWDCRMKl2XpHOMO3NSdW8mgPBZmj0vBL3KwcTkz2hPeQMf19C1 B+HcZjh6BrSwKVjco466xgU9wjWQr6Q9TTLpWuGJNoqlT+ZrwF57WJkLu9iOJs8Escdh AQIFiER0pVlkhjlwgyxpnOX63atTojMsJPlNm+pX2f2bSHRmc0kvHXJQbPbLVIBefNT6 z0mw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version:content-transfer-encoding; bh=MjOmzqyL+HAO//RgGNZdshxz4qNqgio5TCiWHUQzA3A=; b=64SGZXvzE3t4EjMVpuUBWycU2cDUC02ra5JkqNzNEFDmOcccvC0/7+c0MjcJaPPIn9 ya1h+DsVYMqssKtR1SAzAyYjARCCZANLw9lWs7sYqvC6jx0S5SBGeTpbFT/e7i9heBmb cJwRqMXB08jkYj3VsIAOBaPcBs2wBZoxACT+XnqoeVPQ/fI8VhcT+DjBIzYpZcVgb3SX uS0OCm0ScDem9VSeQjsJ6oInV6dsBhis1OVyL4xPUjvLHWgMe2jvHLgvMktv2xUGRU3T RVfZX1o7evUwbThp6ew+T5itvDyB4wXYHkXXLFXc0pwIQtcYUSXEGN8+EHr2uhjMFjLy dKUA== X-Gm-Message-State: AJIora8vZQmpQToov5wCmy65SW17WuYk/ArbMr1wDuIXGLXs+qw7cFQ8 Ehk1EYCzXkD1xJRY+mBb7HrgkDanpXA= X-Google-Smtp-Source: AGRyM1t8KwzU6c8RT34yiDEAirdF39DqW63niXgB8Ewlzk4mls58mLyXuvlZLxM3gtzrk1KXRZjMMw== X-Received: by 2002:adf:f90c:0:b0:21a:3dcb:d106 with SMTP id b12-20020adff90c000000b0021a3dcbd106mr15664566wrr.448.1657531104700; Mon, 11 Jul 2022 02:18:24 -0700 (PDT) Received: from rltb ([2a01:e0a:3f3:fb50:ba5:3a36:aec4:f05e]) by smtp.gmail.com with ESMTPSA id i25-20020a1c5419000000b003a2cfb9f5basm9656573wmb.16.2022.07.11.02.18.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Jul 2022 02:18:24 -0700 (PDT) From: Robert Pluim To: Gerd =?utf-8?Q?M=C3=B6llmann?= Subject: Re: bug#56495: 29.0.50; Support for debugging Emacs with LLDB In-Reply-To: ("Gerd =?utf-8?Q?M=C3=B6llmann=22's?= message of "Mon, 11 Jul 2022 10:13:35 +0200") References: Date: Mon, 11 Jul 2022 11:18:23 +0200 Message-ID: <877d4kgg80.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 56495 Cc: 56495@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) >>>>> On Mon, 11 Jul 2022 10:13:35 +0200, Gerd M=C3=B6llmann said: Gerd> My system, macOS with Apple M1 chip, is currently not supported b= y GDB. Gerd> To quote gdb-devel, "lldb is the way to go" to debug Emacs for me. Gerd> Attached patch adds rather limited support for that. Limited by Gerd> - the fact that I don't know LLDB, Gerd> - that I don't know LLDB's Python API, Gerd> - that I'm not a Python programmer, Gerd> - that the Python API documentation is pretty lacking in itself, Gerd> - that I didn't implement support for ENABLE_CHECKING and what el= se Gerd> might change Lisp_Object layout Gerd> So please bear with me. It=CA=BCs better than what we have now, so thanks Gerd> Anyway, at least displaying some Lisp_Objects with 'p obj' seems = to Gerd> work, and 'xbacktrace' seems to be working. Gerd> YMMV. I=CA=BCve got: lldb -v lldb-1300.0.42.3 Swift version 5.5.2-dev (this is an Intel macbook, not an M1) I=CA=BCm getting this: lldb emacs error: unknown or ambiguous option error: unknown or ambiguous option Emacs debugging support has been installed. (lldb) target create "emacs" Current executable set to =CA=BC/Users/rpluim/repos/emacs/src/emacs=CA= =BC (x86_64). which I can fix by doing this: diff --git a/etc/emacs_lldb.py b/etc/emacs_lldb.py index 3a9f17e020..ebf14d44c2 100644 --- a/etc/emacs_lldb.py +++ b/etc/emacs_lldb.py @@ -144,7 +144,6 @@ def define_command (debugger, function): lldb_command =3D function.__name__ python_function =3D __name__ + "." + function.__name__ debugger.HandleCommand(f"command script add " - f"--overwrite " f"--function {python_function} " f"{lldb_command}") Robert --=20 From debbugs-submit-bounces@debbugs.gnu.org Mon Jul 11 05:50:21 2022 Received: (at control) by debbugs.gnu.org; 11 Jul 2022 09:50:21 +0000 Received: from localhost ([127.0.0.1]:38263 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oAq3Z-0000kA-E8 for submit@debbugs.gnu.org; Mon, 11 Jul 2022 05:50:21 -0400 Received: from quimby.gnus.org ([95.216.78.240]:48668) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oAq3Y-0000jx-9b for control@debbugs.gnu.org; Mon, 11 Jul 2022 05:50:20 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=6tZ1XylHCdzKtb0zjtCS6m9M6odj9/wAXkVPmCkGwVo=; b=nkLnoMFV1cTZZ+KwGwgTS9lmRk TpG1WGAdctx+oZ2ZjKLOu/LmQqTyrwEIn2Gdl+o87G0KFiDORRI2ebNOPhmGS1rHTXPbNgabdERPl qna7WmQ1H/CCzrIrvQaK/3/ybQTkXoSrJ3jGDn8U/SALp4D5bDb2klqXXyRzGMnmuHDA=; Received: from [84.212.220.105] (helo=joga) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oAq3Q-0001M2-4p for control@debbugs.gnu.org; Mon, 11 Jul 2022 11:50:14 +0200 Date: Mon, 11 Jul 2022 11:50:11 +0200 Message-Id: <87edys2d2k.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #56495 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: tags 56495 + patch quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) tags 56495 + patch quit From debbugs-submit-bounces@debbugs.gnu.org Mon Jul 11 06:42:15 2022 Received: (at 56495) by debbugs.gnu.org; 11 Jul 2022 10:42:15 +0000 Received: from localhost ([127.0.0.1]:38458 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oAqrm-0000cX-VQ for submit@debbugs.gnu.org; Mon, 11 Jul 2022 06:42:15 -0400 Received: from mail-ed1-f41.google.com ([209.85.208.41]:46753) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oAqrk-0000c5-TK for 56495@debbugs.gnu.org; Mon, 11 Jul 2022 06:42:13 -0400 Received: by mail-ed1-f41.google.com with SMTP id w12so4962799edd.13 for <56495@debbugs.gnu.org>; Mon, 11 Jul 2022 03:42:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:message-id:mime-version:subject:date:in-reply-to:cc:to :references; bh=O7eJrUEkmobYv6D2BBs4AkSKUte2Vpl2jp8as7t/sqc=; b=iVD9PI/0Qbg3PoG0oMgb58h9kBcsK0MH+SHeI/WH9Ikh5VtcQ5NFBSGgQ1gwpAqQf/ NTg6rZOG8LBOw/yE1mYGDEl4314OGxEyXjLxk6mgM4qAMhWRuOzx2DAOotM/3TrQQ1hM 0HhnBfta3k5JI+3hbTS2n83byFlIWTAf0YeClqAhk6BqNGiptdRJQWN4OHq2JdZbSirp AE1ttXrMBcCHjd7SuGyJK5EBnoyjpcQw500m0tSJQwTQCUhOzM8/O+nRCE34AOSX8V1I Lp0nJHGMbgRQIS7SX0tS6uS1H6mJ7+VMfbDL1MXc1TvPFxA32+oziEnaM4JWXlTQC2gf TqAA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:message-id:mime-version:subject:date :in-reply-to:cc:to:references; bh=O7eJrUEkmobYv6D2BBs4AkSKUte2Vpl2jp8as7t/sqc=; b=xj3XBRk1z39QH69LgZU/cf3IDUzXeBsacOOjuDenjlySpm1uacVlC9FBIto1GdyHuj +UfxEokQIaM8RaHvaGSjrKDFmcT/SQ1T3dzIfeMyCmi7D0gOJLLmFh6o4K4vDVMBRF2z BLJ9+FjkDPUJ6PHUrXo1t37Vat4pDSay+2pUPVLkIJkXrzTPUzuIdFH76tpxWHNd0Fpj KlV6YyBhP1WDFPDsspVKX2c/IQkYXWPbJuP9w/nnsLSMG/NltTe1PVWMQ0XDpG8CunKd hkHvUMXl92254Mjb6iPaScuW+jhALhFRDmJViHLQz2t/YH39srC80xzyL1DJNgIxWQka 0pSA== X-Gm-Message-State: AJIora9G3t/5M7cqPmtkYJFXhKtfjEAPueZgY1bfLViooXccmwTleYCW gcJ64AzTI198pDP2ZL+Hl1w= X-Google-Smtp-Source: AGRyM1viT9sfnnwv/cxHny5l6MaVXvfFLC+RNc3YnvnHrNzIobxQFMC5MCtAa1UUWRQm6VL6H/6Zmg== X-Received: by 2002:a50:ff0e:0:b0:433:5d15:eada with SMTP id a14-20020a50ff0e000000b004335d15eadamr23294838edu.102.1657536126932; Mon, 11 Jul 2022 03:42:06 -0700 (PDT) Received: from smtpclient.apple (pd9e369e6.dip0.t-ipconnect.de. [217.227.105.230]) by smtp.gmail.com with ESMTPSA id eg1-20020a056402288100b0043a7134b381sm4113757edb.11.2022.07.11.03.42.04 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 11 Jul 2022 03:42:05 -0700 (PDT) From: =?utf-8?Q?Gerd_M=C3=B6llmann?= Message-Id: <7D5B966F-2080-4508-8CB2-E13C5147FE8F@gmail.com> Content-Type: multipart/signed; boundary="Apple-Mail=_3187CB48-7ECC-4220-8340-7FC055F38F04"; protocol="application/pgp-signature"; micalg=pgp-sha512 Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.100.31\)) Subject: Re: bug#56495: 29.0.50; Support for debugging Emacs with LLDB Date: Mon, 11 Jul 2022 12:42:04 +0200 In-Reply-To: <877d4kgg80.fsf@gmail.com> To: Robert Pluim References: <877d4kgg80.fsf@gmail.com> X-Mailer: Apple Mail (2.3696.100.31) X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 56495 Cc: 56495@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --Apple-Mail=_3187CB48-7ECC-4220-8340-7FC055F38F04 Content-Type: multipart/alternative; boundary="Apple-Mail=_3794D536-B2EC-4381-BF50-1CAA9DD5C37A" --Apple-Mail=_3794D536-B2EC-4381-BF50-1CAA9DD5C37A Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > On 2022-07-11,, at 11:18 , Robert Pluim wrote: >=20 >>>>>> On Mon, 11 Jul 2022 10:13:35 +0200, Gerd M=C3=B6llmann = said: > I=CA=BCve got: > lldb -v > lldb-1300.0.42.3 > Swift version 5.5.2-dev Thanks. Looks like Apple's LLDB from the Xcode command-line tools. Mine says "lldb version 14.0.6", and comes from "brew install llvm". = (Which I need for 'llvm-vscode', which I need for 'dap-mode', which I = need for debugging with LLDB inside of Emacs, which is because of , and ). I need '--overwrite' because it allows me to reload the code in a = running LLDB. Apple's LLDB seems to '--overwrite' by default, while = mine gives an error: cannot add command: user command exists and force replace not set \o/ Maybe I can somehow pythonese if '--overwrite' is supported or not. > (this is an Intel macbook, not an M1) >=20 > I=CA=BCm getting this: >=20 > lldb emacs > error: unknown or ambiguous option > error: unknown or ambiguous option > Emacs debugging support has been installed. > (lldb) target create "emacs" > Current executable set to =CA=BC/Users/rpluim/repos/emacs/src/emacs=CA= =BC > (x86_64). >=20 > which I can fix by doing this: >=20 > diff --git a/etc/emacs_lldb.py b/etc/emacs_lldb.py > index 3a9f17e020..ebf14d44c2 100644 > --- a/etc/emacs_lldb.py > +++ b/etc/emacs_lldb.py > @@ -144,7 +144,6 @@ def define_command (debugger, function): > lldb_command =3D function.__name__ > python_function =3D __name__ + "." + function.__name__ > debugger.HandleCommand(f"command script add " > - f"--overwrite " > f"--function {python_function} " > f"{lldb_command}") >=20 > Robert > -- --Apple-Mail=_3794D536-B2EC-4381-BF50-1CAA9DD5C37A Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8

On 2022-07-11,, at 11:18 , Robert Pluim <rpluim@gmail.com> = wrote:

On Mon, 11 Jul 2022 = 10:13:35 +0200, Gerd M=C3=B6llmann <gerd.moellmann@gmail.com> = said:
I=CA= =BCve got:
   lldb -v
=    lldb-1300.0.42.3
=    Swift version 5.5.2-dev

Thanks.

Looks like Apple's LLDB from the = Xcode command-line tools.  

Mine says "lldb = version 14.0.6", and comes from "brew install llvm".  (Which I need = for 'llvm-vscode', which I need for 'dap-mode', which I need for = debugging with LLDB inside of Emacs, which is because of <known = long story here>, and <another, shorter story here>).

I need '--overwrite' because it allows = me to reload the code in a running LLDB.  Apple's LLDB seems to = '--overwrite' by default, while mine gives an = error:

  = cannot add command: user command exists and force replace not = set

\o/

Maybe I can somehow = pythonese if '--overwrite' is supported or = not.


(this is an Intel macbook, not an M1)

I=CA=BCm getting this:

   lldb emacs
=    error: unknown or ambiguous option
=    error: unknown or ambiguous option
=    Emacs debugging support has been installed.
   (lldb) target create "emacs"
=    Current executable set to = =CA=BC/Users/rpluim/repos/emacs/src/emacs=CA=BC
=    (x86_64).

which I can fix = by doing this:

diff --git = a/etc/emacs_lldb.py b/etc/emacs_lldb.py
index = 3a9f17e020..ebf14d44c2 100644
--- a/etc/emacs_lldb.py
+++ b/etc/emacs_lldb.py
@@ -144,7 +144,6 @@ def = define_command (debugger, function):
=     lldb_command =3D function.__name__
=          python_function =3D = __name__ + "." + function.__name__
=             &n= bsp; debugger.HandleCommand(f"command script add "
- =             &n= bsp;           &nbs= p; f"--overwrite "
=             &n= bsp;           &nbs= p;  f"--function {python_function} "
=             &n= bsp;           &nbs= p;  f"{lldb_command}")

Robert
--

= --Apple-Mail=_3794D536-B2EC-4381-BF50-1CAA9DD5C37A-- --Apple-Mail=_3187CB48-7ECC-4220-8340-7FC055F38F04 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP -----BEGIN PGP SIGNATURE----- Comment: GPGTools - https://gpgtools.org iQIzBAEBCgAdFiEEirYePpiT82Hjkftpc+obGZDFPmMFAmLL/nwACgkQc+obGZDF PmPKTRAAwEMhUUy54etyhmgPMTbUPxnw55pkyWao94bHEetID0pUVmWvRVhEUzW+ 2e6wRg0xfqn1HJVXRh9gLSCdEv+vMfU62RGVe3DkGwZ2TkB3Td3perkc5+YCfVk5 0ZOQ0Z0B36XY0GqydjRHxYXtaHxkDWBCcySmEtk1db4ePsYvKDYgXlZy2/rdApsE mDc/x1dDH4RS1G/hpXqFL/BhxN8twwSVWDiBXQb9jxUYIC32q+PAFgrTJ2jTSQP1 k8BfohXHEu012Tdj2D+YBtdOK4d65lp35hWH9Z7G9CATk3EoslLRf5ttSj9ObT2i 2AxOXhCnNDtOxqsV29Fj7XP2G9drEYD23zdslKKmNXqSpikUFbWrJEP/1HBNimPq ZPHGsHLTRZQifImDd0aXGhhkHHptlXxfdCY/RS5g4nng4EJbeE+IM3m1xkn604FD I/hG3XvRY1+YANiKdl3mEdmpxS5XjzDsnV6WKAaHjUuJwcUcVwz1cPQjwCSNoOCn JBzewXmMnfxEoOP9CaRlR5XuW24QuFdCpFDliMkSXlzDj4ya9Xkm4zk5OYmbv3lb EQS4LTyWs5MR5URXQBSEZjn0b27zztuezyCaR7ytfjlCV5y0yXEeuRI1LjIlqQPZ MpDOfdYYeBH5K39sXHarqIMvE8VtnmimJg3G5WJY+UZlaKVsfeQ= =Q2o9 -----END PGP SIGNATURE----- --Apple-Mail=_3187CB48-7ECC-4220-8340-7FC055F38F04-- From debbugs-submit-bounces@debbugs.gnu.org Mon Jul 11 06:56:45 2022 Received: (at 56495) by debbugs.gnu.org; 11 Jul 2022 10:56:45 +0000 Received: from localhost ([127.0.0.1]:38514 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oAr5o-0003GO-Rp for submit@debbugs.gnu.org; Mon, 11 Jul 2022 06:56:45 -0400 Received: from mail-wm1-f46.google.com ([209.85.128.46]:42577) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oAr5n-0003GA-9e for 56495@debbugs.gnu.org; Mon, 11 Jul 2022 06:56:43 -0400 Received: by mail-wm1-f46.google.com with SMTP id bi22-20020a05600c3d9600b003a04de22ab6so2794903wmb.1 for <56495@debbugs.gnu.org>; Mon, 11 Jul 2022 03:56:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version:content-transfer-encoding; bh=m8ZQskQfCc/C+g9YeOtXMMeuLC83VE9zhybwHe4zh5M=; b=keR4bleodA7D8QkymNPyVFS53+lM4RztKzwLV0CGAn7+Argid9BW5aGJxM4dFisWBQ zSRxZG591PalEEp3GhURHX0lzk0GxnG/j4nwKr2p380ZH8maX9kMw8Au5GIpFYZOGTth w/JID3X58W6E/GwdDL7VUxMajmrxC+VMOMnbTv8krtqGBnQbVaWQPQh49o9HhTROcH23 a22gyrtLWc+qFSr1cgOJBgkfY6TWdhSA21l+qFsKCIs6jZ6fyQGDxsYqdL38kg9t1kDJ o+iEWIMngfJxYmB7FXGaD0++tmmzX5Zu6NaXddZ9vYOe5TsDwgVx++LM/qjKU9muPCQf YY2Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version:content-transfer-encoding; bh=m8ZQskQfCc/C+g9YeOtXMMeuLC83VE9zhybwHe4zh5M=; b=eTN42myJ/l01YmW4uQUaYS3iiGy92wwQZ3Wt3o+rywLGVlHUJiGzMfSjGtxkSA0QMu MJm30Wpov0/+osMO0llNY3p77BvFqGpGN1ll00GyVcJ/6PB5D1x8gThifcR1eN9zdcpH Ux2i/tAmskCLpNZHqtdKinUs1fu/bcmlhHbk8TO4DWJrYFXsWaoff/ETnZbp+/Xfdy6L pQUsDWPY16mlSBck/WfjXYU9xQ6d74yDIhEzpQubHKghciXJjbMOU4NCFLUptHinEKZn zClXCqduy43TgHlmZ3venT6dJI2aQUriV2GrYP6WRlAjrJLjazLQxVYtTg7Va8LxT/q/ XWgQ== X-Gm-Message-State: AJIora/jQEdiojWpjF/rHONWRqlmO4ti52LGqhVeCv7UsXo8peUUml6Z gsyWojygLvadMSu7XDwJ9TOyUe6P+ME= X-Google-Smtp-Source: AGRyM1tGwm6+lYLGKvycC/GSED/cwDw7vqRk5SqK2hV4FL59OIPjUIs7IEq62hvtw9eW/A5nsgrhLQ== X-Received: by 2002:a7b:c386:0:b0:3a2:cf61:133f with SMTP id s6-20020a7bc386000000b003a2cf61133fmr15317760wmj.31.1657536996976; Mon, 11 Jul 2022 03:56:36 -0700 (PDT) Received: from rltb ([2a01:e0a:3f3:fb50:ba5:3a36:aec4:f05e]) by smtp.gmail.com with ESMTPSA id q13-20020adff94d000000b0020e6ce4dabdsm5450347wrr.103.2022.07.11.03.56.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Jul 2022 03:56:36 -0700 (PDT) From: Robert Pluim To: Gerd =?utf-8?Q?M=C3=B6llmann?= Subject: Re: bug#56495: 29.0.50; Support for debugging Emacs with LLDB In-Reply-To: <7D5B966F-2080-4508-8CB2-E13C5147FE8F@gmail.com> ("Gerd =?utf-8?Q?M=C3=B6llmann=22's?= message of "Mon, 11 Jul 2022 12:42:04 +0200") References: <877d4kgg80.fsf@gmail.com> <7D5B966F-2080-4508-8CB2-E13C5147FE8F@gmail.com> Date: Mon, 11 Jul 2022 12:56:35 +0200 Message-ID: <87leszgboc.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 56495 Cc: 56495@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) >>>>> On Mon, 11 Jul 2022 12:42:04 +0200, Gerd M=C3=B6llmann said: >> On 2022-07-11,, at 11:18 , Robert Pluim wrote: >>=20 >>>>>>> On Mon, 11 Jul 2022 10:13:35 +0200, Gerd M=C3=B6llmann said: >> I=CA=BCve got: >> lldb -v >> lldb-1300.0.42.3 >> Swift version 5.5.2-dev Gerd> Thanks. Gerd> Looks like Apple's LLDB from the Xcode command-line tools. Gerd> Mine says "lldb version 14.0.6", and comes from "brew install llv= m". Gerd> (Which I need for 'llvm-vscode', which I need for 'dap-mode', whi= ch I Gerd> need for debugging with LLDB inside of Emacs, which is because of Gerd> , and ). I have lldb 13.0.1 from llvm here as well, but it gives me the same error. Gerd> I need '--overwrite' because it allows me to reload the code in a Gerd> running LLDB. Apple's LLDB seems to '--overwrite' by default, wh= ile Gerd> mine gives an error: Gerd> cannot add command: user command exists and force replace not s= et But if I 'command script import emacs_lldb' in my llvm lldb, I get no errors. Maybe it=CA=BCs a version 14 thing. Gerd> \o/ =F0=9F=A4=B7 indeed Gerd> Maybe I can somehow pythonese if '--overwrite' is supported or no= t. I don=CA=BCt think it=CA=BCs a big deal, and lldb version dependent checks = will invariably be out of date. Maybe just stick in a comment? Robert --=20 From debbugs-submit-bounces@debbugs.gnu.org Mon Jul 11 07:20:19 2022 Received: (at 56495) by debbugs.gnu.org; 11 Jul 2022 11:20:19 +0000 Received: from localhost ([127.0.0.1]:38578 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oArSc-00066j-RF for submit@debbugs.gnu.org; Mon, 11 Jul 2022 07:20:19 -0400 Received: from eggs.gnu.org ([209.51.188.92]:45538) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oArSa-00066O-RV for 56495@debbugs.gnu.org; Mon, 11 Jul 2022 07:20:17 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:51902) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oArSV-00062g-Jy; Mon, 11 Jul 2022 07:20:11 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=C3eD22xkWqRZm2QJVGEIBNhIjlMnkyb1y11MCT1vvaA=; b=KheLr08bP7FQZypHrmJH On5l89KoY9gQQ5PLfK/ripw/nMi7DxERwwesXygAksA/i2LPFQGza1tYFX+NdpCRghs+zLjLnDSo0 px9BccI7qBJsguJbVAnHvLHaHbrtN09Z08oK7zvGGcvXyCrEufwBR0K5sv/0b0fzkodDR2nRctJ+F g8xXtJwTVNuXBvpV8ie5fm4O1sUXBbyEdn1vF008x0YDTO4P33Uj9UhHU7eMRmdppno0Tohy7hbiy sRus0ymNkvAyG9sM5JBW6dhbZPDPkaqmSdyxxRqFXIXyujj6DfZk4use6VTf2TSwAKsSUE2syqXGz m1aszkMqpLE2GQ==; Received: from [87.69.77.57] (port=2851 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oArSV-0000KM-3O; Mon, 11 Jul 2022 07:20:11 -0400 Date: Mon, 11 Jul 2022 14:19:56 +0300 Message-Id: <83v8s3zyjn.fsf@gnu.org> From: Eli Zaretskii To: Gerd =?utf-8?Q?M=C3=B6llmann?= In-Reply-To: (message from Gerd =?utf-8?Q?M=C3=B6llmann?= on Mon, 11 Jul 2022 10:13:35 +0200) Subject: Re: bug#56495: 29.0.50; Support for debugging Emacs with LLDB References: MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 56495 Cc: 56495@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Gerd Möllmann > Date: Mon, 11 Jul 2022 10:13:35 +0200 > > Attached patch adds rather limited support for that. Limited by > > - the fact that I don't know LLDB, > - that I don't know LLDB's Python API, > - that I'm not a Python programmer, > - that the Python API documentation is pretty lacking in itself, > - that I didn't implement support for ENABLE_CHECKING and what else > might change Lisp_Object layout > > So please bear with me. > > Anyway, at least displaying some Lisp_Objects with 'p obj' seems to > work, and 'xbacktrace' seems to be working. Thanks. Feel free to install when you think this is ready. Maybe also add a few words in etc/DEBUG about this. From debbugs-submit-bounces@debbugs.gnu.org Mon Jul 11 07:27:32 2022 Received: (at 56495) by debbugs.gnu.org; 11 Jul 2022 11:27:32 +0000 Received: from localhost ([127.0.0.1]:38613 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oArZb-0006MS-QV for submit@debbugs.gnu.org; Mon, 11 Jul 2022 07:27:31 -0400 Received: from mail-wr1-f47.google.com ([209.85.221.47]:40715) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oArZa-0006MA-8R for 56495@debbugs.gnu.org; Mon, 11 Jul 2022 07:27:30 -0400 Received: by mail-wr1-f47.google.com with SMTP id z12so6573461wrq.7 for <56495@debbugs.gnu.org>; Mon, 11 Jul 2022 04:27:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:subject:from:in-reply-to:date:cc:message-id:references :to; bh=1noiJ8A5+0Q3TvuyhRNIQSiqSwrTxzKM7v6V33rlybo=; b=QkHZnq/mjNKLlX0eIl0iLgIxu0YHZreN/EIYott0zpRNvMRrAC/7LYd5iRwPL6fd44 I2bxruMoLYj7OFBq6u2NXm56jbb+93Q8y2fGcdcFZRobAOdQ+X6PEYqb9BA7JSZbW71R OZiCUFVIFrT7Wy1Vmh2h/ZhvrQEJ7OP7yflpdZMmCyBkDqYxEOZw0EAWKdHxtk3AWVfY ARj83XeNP+PEkbzcTK1Lj9ma4YCSUadishnRIVQDMEgJf26p7X3MbAOtK+FsQe63M5TM DBE6+XJkrH+FV4q2DiayIA2aAbdWRqbOH8I0J64QX4Rf6G8IVGA+hADF+fW69dMIcSj6 KhyQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :message-id:references:to; bh=1noiJ8A5+0Q3TvuyhRNIQSiqSwrTxzKM7v6V33rlybo=; b=oJyFAy5aTkK76o/isVCVtrMe/QKkOfJoaz/O7r8ug8uVQo4ku45kIz8TBuNbtP6pbl Iw1yCnhkfmo7o7ye0jJVVpOukNjzcHVsTF5CzK9NDOaUWzAtmxoNOTYw1RRRR2Bh6Nbp mL4Ex8YwqvJyoPmgXniA+oJZmk0Xy0A1XV68H9A0WoxjwUKIskkmyrtjULzyHP3zGtmX TmyBmh42pjTV/Upv+Q8voqhLz2FXfJ+Y3R4I/Swoi+X4aAU6MJXfKZNd/U83So/cEHMZ aAw0THxXx926DkYf689ABzSsPAqB5QfJZziOpD9okr4WNN2IQ3Crs61Ztdz7IyoszV9W jWnw== X-Gm-Message-State: AJIora9zOHd/T2xUrqLxBnWVR49hG/L4hoccz/Gy8Hz3sAg4Wa8Rz8U9 NIh+0OE9SDpwAx9e2XONC3s= X-Google-Smtp-Source: AGRyM1u9yjqA1KRiL7k0TaT3lsZsFr5DrB54zDMpFom1wTMtMrOTWz0cS1oOblMHtXFzJknKcoJ0iQ== X-Received: by 2002:adf:f211:0:b0:21d:6f1a:b857 with SMTP id p17-20020adff211000000b0021d6f1ab857mr17208392wro.614.1657538844180; Mon, 11 Jul 2022 04:27:24 -0700 (PDT) Received: from smtpclient.apple (pd9e369e6.dip0.t-ipconnect.de. [217.227.105.230]) by smtp.gmail.com with ESMTPSA id 21-20020a05600c229500b003a02b135747sm6353718wmf.46.2022.07.11.04.27.22 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 11 Jul 2022 04:27:23 -0700 (PDT) Content-Type: multipart/signed; boundary="Apple-Mail=_5EC8703F-A458-47D8-9B5E-AF9A147DB393"; protocol="application/pgp-signature"; micalg=pgp-sha512 Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.100.31\)) Subject: Re: bug#56495: 29.0.50; Support for debugging Emacs with LLDB From: =?utf-8?Q?Gerd_M=C3=B6llmann?= In-Reply-To: <87leszgboc.fsf@gmail.com> Date: Mon, 11 Jul 2022 13:27:22 +0200 Message-Id: References: <877d4kgg80.fsf@gmail.com> <7D5B966F-2080-4508-8CB2-E13C5147FE8F@gmail.com> <87leszgboc.fsf@gmail.com> To: Robert Pluim X-Mailer: Apple Mail (2.3696.100.31) X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 56495 Cc: 56495@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --Apple-Mail=_5EC8703F-A458-47D8-9B5E-AF9A147DB393 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > On 2022-07-11,, at 12:56 , Robert Pluim wrote: >=20 > But if I 'command script import emacs_lldb' in my llvm lldb, I get no > errors. Maybe it=CA=BCs a version 14 thing. Looks like it is. > I don=CA=BCt think it=CA=BCs a big deal, and lldb version dependent = checks will > invariably be out of date. Maybe just stick in a comment? This seems to work for me with Apple's LLDB and the one from LLVM: def define_command (debugger, function): lldb_command =3D function.__name__ python_function =3D __name__ + "." + function.__name__ interpreter =3D debugger.GetCommandInterpreter() def define(overwrite): res =3D lldb.SBCommandReturnObject() interpreter.HandleCommand(f"command script add " f"{overwrite} " f"--function {python_function} " f"{lldb_command}", res) return res.Succeeded() if not define("--overwrite"): define("") Could you please try it with your LLDBs? It relies on runtime-availability of the '--overwrite', only. --Apple-Mail=_5EC8703F-A458-47D8-9B5E-AF9A147DB393 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP -----BEGIN PGP SIGNATURE----- Comment: GPGTools - https://gpgtools.org iQIzBAEBCgAdFiEEirYePpiT82Hjkftpc+obGZDFPmMFAmLMCRoACgkQc+obGZDF PmONkhAA7J8SCnUB2OK9Aoxwrr0DmsOXBh8OP2b6Cg0u/88+3k2vLI08WY0R8eH7 fAWH2pZcls5xnsgOdQCbaPMaCl6SlQzPMlAKlcXFYYNwkoWND7usGZlI0PgXFo4g 9meHX8hFfGOKYOo3/R+OzySQ4HR1SAQiy3NVBwZtPOPdmmMrEXY0LHWJ77CKAxYK BIcdHKCffIJJyU1znNCQczZwCy9Afk58CTkCtK0dsIA9g+FhKVJtkaTq9NfqWeDo cXUnWyAAQHkiMBZbSmH9x1uUcIMIAukiAl0Qtt/41Ri3JrYw8mSjbCVo9fdkXZIB gfMfsHA0PTA4609mf/LOLmpb+H9DUs5xS4YBR0y+npfFTGQjkrRAzi+QGPHuZgI5 mJrJ+y45bTl6QdV3sKb/UdBzBGIeywYvwPi2FcLfhnchTQmWzYIeOrVUI1M7MWOy NsFYp6B0O625OFm9L+Ts1RPTmwA7lA1DVrkr/kzo13UanGBSpYA2EIV7KSfBjfcv 6j4MSAAqffbTeJ2zinKRUGy1rnP/TGCnrXXXThlK06Qn4v2J/hQOPhwJyCtW3qkT SyeGa3a5rLRxGgiFLiwKd4KNgudEk0eHmyALCpYSkK4X1QmiLdt2J0GojUG/NCW4 RT2MR4Xw8UOA7W7+XM9V38rg3W+Vqk5psC0jyFaIlJa7bODUM4A= =ykyq -----END PGP SIGNATURE----- --Apple-Mail=_5EC8703F-A458-47D8-9B5E-AF9A147DB393-- From debbugs-submit-bounces@debbugs.gnu.org Mon Jul 11 07:32:05 2022 Received: (at 56495) by debbugs.gnu.org; 11 Jul 2022 11:32:05 +0000 Received: from localhost ([127.0.0.1]:38618 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oAre1-0008Mq-Bb for submit@debbugs.gnu.org; Mon, 11 Jul 2022 07:32:05 -0400 Received: from mail-wm1-f44.google.com ([209.85.128.44]:55066) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oAre0-0008Ht-37 for 56495@debbugs.gnu.org; Mon, 11 Jul 2022 07:32:04 -0400 Received: by mail-wm1-f44.google.com with SMTP id n185so2855111wmn.4 for <56495@debbugs.gnu.org>; Mon, 11 Jul 2022 04:32:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:subject:from:in-reply-to:date:cc:message-id:references :to; bh=owSGVGZWbnIlqJONUHr21aSR1Y1+IAZEUeYYxWy8N9I=; b=m9+oRE1DsxVC4BOoDy+nQmFRbQvb7wECy9U2ZgrlUO7xFB75ntPWj7M98sjABdrVFP bMAGE4b0f0Qmas8cltV7HBzjo6RWpGnldqOUNIwcmLHvWH40RqSWLJ4kAYmtzs2oH0XE B+fFcq+17icHflBp7RUIQx+logvnqj8lDmdICQbAXaQoyJ0xEY+1JP638kunlK60+yVq gQGwnsRzG80w8LyOB3WxanOKSWmUQwRNjneSlv6PrKxNKIonBJSzpH/vZKlBV1DJAlOA l+ieDirWOM7ozaLu94CXuyg2gQXY417bcqwiIaPL+ugCVI8tNTk8DplS3yVoByumm7lR +Puw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :message-id:references:to; bh=owSGVGZWbnIlqJONUHr21aSR1Y1+IAZEUeYYxWy8N9I=; b=s7tcb+hxthZ+ZHK8jwYq1jXYDYYV6onC+nUpNFOmbibLAyUol0r+jzQ4oEzIirSvZZ X+gFNjRgd3tkKVsgk7gTQGJya9vaJk7aA/6y1GCVtkqaITy+U4Q9k3zUOKxqxKswStGC nncDVgp5YUcAKCwxYY/AG3FXMrKhLYkGdl/KBfkG6V9KBge9LY2I/pPhD7U3dpEDzU3J dlLWCeog/kYuykwqJsf4QQdPse/6mbzmzPWUQzjNy8w4exnaur+9GopGRLIrRf0mNbOB 6TEXZvksXxCSNFBnQyo2EAPewooOXRd/wj5IMrybhkeMjoSN35ONYxzaeDjgdQS+9stg zBfA== X-Gm-Message-State: AJIora+Pyg8NkXZxMLpYIv0TPUWth0snnrzOSQzMSBxJ0oW62aduvJmT NG5qPcB6PocLlUVH1zkRaYV7+YBxp4TkXQ== X-Google-Smtp-Source: AGRyM1uWD+ezUBLHYdUIooFO8gKyHmKXJRwup9Sv1Vfpn7zKs+aWf4NKSI3epKyLEvbKcZ51nwxDPg== X-Received: by 2002:a05:600c:1e25:b0:3a1:7cbd:9c5c with SMTP id ay37-20020a05600c1e2500b003a17cbd9c5cmr15291963wmb.174.1657539118186; Mon, 11 Jul 2022 04:31:58 -0700 (PDT) Received: from smtpclient.apple (pd9e369e6.dip0.t-ipconnect.de. [217.227.105.230]) by smtp.gmail.com with ESMTPSA id y5-20020adff6c5000000b0021d83071683sm5580499wrp.64.2022.07.11.04.31.56 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 11 Jul 2022 04:31:57 -0700 (PDT) Content-Type: multipart/signed; boundary="Apple-Mail=_D0FD8B68-AF0F-42A2-9A27-1D7B96BBFB5A"; protocol="application/pgp-signature"; micalg=pgp-sha512 Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.100.31\)) Subject: Re: bug#56495: 29.0.50; Support for debugging Emacs with LLDB From: =?utf-8?Q?Gerd_M=C3=B6llmann?= In-Reply-To: <83v8s3zyjn.fsf@gnu.org> Date: Mon, 11 Jul 2022 13:31:56 +0200 Message-Id: References: <83v8s3zyjn.fsf@gnu.org> To: Eli Zaretskii X-Mailer: Apple Mail (2.3696.100.31) X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 56495 Cc: 56495@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --Apple-Mail=_D0FD8B68-AF0F-42A2-9A27-1D7B96BBFB5A Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii > On 2022-07-11,, at 13:19 , Eli Zaretskii wrote: > Thanks. Feel free to install when you think this is ready. > > Maybe also add a few words in etc/DEBUG about this. Thanks, will do. --Apple-Mail=_D0FD8B68-AF0F-42A2-9A27-1D7B96BBFB5A Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP -----BEGIN PGP SIGNATURE----- Comment: GPGTools - https://gpgtools.org iQIzBAEBCgAdFiEEirYePpiT82Hjkftpc+obGZDFPmMFAmLMCiwACgkQc+obGZDF PmM1yg/+JcOVK8eis8xXlZUjQJvVGQuKSsVJSnEDWVwQ/P2tR4FmTaaJjRsCvne/ URgPhxz0pa3JnNNODk7bEr0o/HpfmWyPtEG9PGbc/2IaWZs11hiVP93NpM3SgTbM Xaw851d3o08Y6ACmZ/myRnMcDpWLpC3cJ3iml5nRjQryLBKUQSRThFjvCwGKrqRS pSc4j9A2/tuKmo4UGi2jEMlQwtWxsMLqdry3vPa7zODlcc1Ac2i2FSKvCbiMD+rn 6VqzfsRaHKab01xBQw2j43qVZSC9D49X6+5cxeZHiN6kxR0LtxWFiPKnJ4KsyMU+ QUoZF/qp3SqcG3wkCYXSHPrnNtveVQ6hGgnUjLjNG5Wt9f0OcBvbQH2QUAHHwLEb g/DXYDB7oiqdRQiA3lIob8iO0MjNJkUVDHe7NBm6mYrnL9fcbVvuB/zXgo2gUzJp EGr5PJ0e3CNvr1AezywOduuZP+afj9S//vgJ0VZjZf1uHona+s7SySFdV0wlNkZP pofCraulm5eZ4S80xP1ahKu4RAVZO7nzxtANPQVFwKhLHqge4JN8H2JjF1Ht82gC 0/dPFOWPc6BI2AUpcmsc1OnVqwVgmpfdYUJfUcrT11jh4ZTFuNzyoNzr09bnuBlF sFuU1P1Q/zNNYVqThQ4WYxzRAZvEXub0vZKSwD4fq3+gw50Uw4g= =pd0d -----END PGP SIGNATURE----- --Apple-Mail=_D0FD8B68-AF0F-42A2-9A27-1D7B96BBFB5A-- From debbugs-submit-bounces@debbugs.gnu.org Mon Jul 11 08:09:46 2022 Received: (at control) by debbugs.gnu.org; 11 Jul 2022 12:09:47 +0000 Received: from localhost ([127.0.0.1]:38683 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oAsEU-0001ND-Od for submit@debbugs.gnu.org; Mon, 11 Jul 2022 08:09:46 -0400 Received: from mail-pl1-f181.google.com ([209.85.214.181]:41692) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oAsET-0001N0-BQ for control@debbugs.gnu.org; Mon, 11 Jul 2022 08:09:45 -0400 Received: by mail-pl1-f181.google.com with SMTP id j12so4243798plj.8 for ; Mon, 11 Jul 2022 05:09:45 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:mime-version:date:message-id:subject:to; bh=pq9phsFPC9IATwLQkxM/nK2dQeZUdNyCRashl6FNmGE=; b=DeTt6gbubl19puGw5Pg7THpWd7ZLCvQMibx8c2kXL2j5GzAbs7fIFXbWTqJhRhWR2o h63uwmKdu2fvpbzueV9q8pfGaoquUSa19W672o1eOcxJP6RxqbOTSdZBF1STk5jLaY4O pKeyGXW+Z9UIdcykg6yOiqT/MVbtTOqm/Jny541cNQIiRzAqUrt+V10mtVsh0BoJknAW rwXu7Nl7EbfasO0JEfWJJKd+qb1zIXvYHg9yTVf/cuflxVGcJ9wDN5AKvwlXlPFRsWff DSp7YxB1XnM2udbB0atYm8HiJBJu2DENmfMJ7ElIFiFSSqKWXiK0Qi84UxyAh+zjLvu8 Ty2w== X-Gm-Message-State: AJIora8YMlPN3J81YDruZYOsGMGzdBf79mw2yzB+Y8cmAy4p5fgUaSIM Chs4i8TicSLq3c64ZNR2pSf7mDxkCZtK+wps4TLg+OQg X-Google-Smtp-Source: AGRyM1uUz0E2kxORkCChNYgi7YtqAolJPEWgkX2BM7IRDs7yXsR4kGTUwT/5HHqUF+6X3AyYCkCK+Rue8y8GoKFKT4o= X-Received: by 2002:a17:90b:4d8d:b0:1ef:e3a1:d1bd with SMTP id oj13-20020a17090b4d8d00b001efe3a1d1bdmr17204646pjb.175.1657541379478; Mon, 11 Jul 2022 05:09:39 -0700 (PDT) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Mon, 11 Jul 2022 05:09:39 -0700 From: Stefan Kangas MIME-Version: 1.0 Date: Mon, 11 Jul 2022 05:09:39 -0700 Message-ID: Subject: control message for bug #56495 To: control@debbugs.gnu.org Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 0.5 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.5 (/) severity 56495 wishlist quit From debbugs-submit-bounces@debbugs.gnu.org Mon Jul 11 08:28:25 2022 Received: (at 56495) by debbugs.gnu.org; 11 Jul 2022 12:28:25 +0000 Received: from localhost ([127.0.0.1]:38732 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oAsWX-00043Z-DL for submit@debbugs.gnu.org; Mon, 11 Jul 2022 08:28:25 -0400 Received: from mail-wr1-f50.google.com ([209.85.221.50]:41654) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oAsWU-00043B-Ug for 56495@debbugs.gnu.org; Mon, 11 Jul 2022 08:28:23 -0400 Received: by mail-wr1-f50.google.com with SMTP id q9so6778349wrd.8 for <56495@debbugs.gnu.org>; Mon, 11 Jul 2022 05:28:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version:content-transfer-encoding; bh=qCqe5JlQEqNHdiqjUbchn5YgWDzXwZkaU/XN0FjoTIw=; b=OdG1i6puSlYVUIhW5+tJddn1vNLvRjUC6hVF/PE3VFzTyjPyvP3v8GhDypwgkreQY4 AD8shxyp4zQu/2GR9LwmDfbAeHwMZajLfDbaOIOJGnRWbKI4G/wnyQmIYCUfw6k3Nbjy VyYdCW3aN6ohxxRIqMVvFtB0M7K0XYEoSjK7rjzXRKP+URXrmqQaJjqi11er/4Z00pBR GyP68RmyVQ1LOfo2k7dR0Bqd5la8DngaC7mksJkYJ6uMEWIkdovdJ04ORyAAvpYNi9IK ++3rTTkfU/cEzubLebnzqvDtyYpy8L04g/8ZC9sYflCLwqgk1sRLfRD4yzq6vYUOXVyq 97SA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version:content-transfer-encoding; bh=qCqe5JlQEqNHdiqjUbchn5YgWDzXwZkaU/XN0FjoTIw=; b=Tpxy2SbNNmEXO8rDe3ZEW+O1Xd78NoEs0ag7cvYSnkGle6QI5PubwkIB8LCXwvL4sR 2W4wj44jf7Ao1X/UBBavO0jtJsWLDcadSN04o4VZO97ahz3cjU2Dmij6FjrzBQHQhCj6 Iz1m36DKe477x9qidtOhysyPeugBESv3qEoA8zy86bi2RaCIufhW7KkNlpL4c8lkMAP6 XKQjFkqEfMq/piz718zOSvoZd1X6Pu68lu6aFOXe7mSB+VWp7w/NjzneppQtD7gsICdG AzRGS+ypA9r3pqPxBjmjyP53TUzwcO2fnEmr27AWPYs0z2dEjmQC5NO8BZOZR9AwZ9eL JVuw== X-Gm-Message-State: AJIora9NAAowhtYdFXfBQxBr+xrm5vT5dqNGMOjvNpE3A/FF1aS4VF3e Ugo1IAZjNQagS5aQkaERSAj+bzVGfTc= X-Google-Smtp-Source: AGRyM1sJpszWQ0QkEcPIHcBWK+XIQtfqtkesYsy9X9CTVZnJz5L6iij7elOWL4MkNksbgF4J3IQsuw== X-Received: by 2002:adf:fb03:0:b0:21d:70cb:d6b5 with SMTP id c3-20020adffb03000000b0021d70cbd6b5mr16116121wrr.548.1657542496581; Mon, 11 Jul 2022 05:28:16 -0700 (PDT) Received: from rltb ([2a01:e0a:3f3:fb50:ba5:3a36:aec4:f05e]) by smtp.gmail.com with ESMTPSA id o2-20020adfeac2000000b0021d68e1fd42sm5719343wrn.89.2022.07.11.05.28.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Jul 2022 05:28:16 -0700 (PDT) From: Robert Pluim To: Gerd =?utf-8?Q?M=C3=B6llmann?= Subject: Re: bug#56495: 29.0.50; Support for debugging Emacs with LLDB In-Reply-To: ("Gerd =?utf-8?Q?M=C3=B6llmann=22's?= message of "Mon, 11 Jul 2022 13:27:22 +0200") References: <877d4kgg80.fsf@gmail.com> <7D5B966F-2080-4508-8CB2-E13C5147FE8F@gmail.com> <87leszgboc.fsf@gmail.com> Date: Mon, 11 Jul 2022 14:28:15 +0200 Message-ID: <87h73ng7fk.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 56495 Cc: 56495@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) >>>>> On Mon, 11 Jul 2022 13:27:22 +0200, Gerd M=C3=B6llmann said: Gerd> Could you please try it with your LLDBs? Works for me on the Apple and llvm lldbs, thanks Robert --=20 From debbugs-submit-bounces@debbugs.gnu.org Mon Jul 11 23:04:31 2022 Received: (at 56495) by debbugs.gnu.org; 12 Jul 2022 03:04:31 +0000 Received: from localhost ([127.0.0.1]:41359 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oB6CN-0003sq-25 for submit@debbugs.gnu.org; Mon, 11 Jul 2022 23:04:31 -0400 Received: from eggs.gnu.org ([209.51.188.92]:60600) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oB6CL-0003sc-RY for 56495@debbugs.gnu.org; Mon, 11 Jul 2022 23:04:30 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:33780) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oB6CG-0007OM-IX; Mon, 11 Jul 2022 23:04:24 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=Date:References:Subject:In-Reply-To:To:From: mime-version; bh=ur7gp6jENtbzcmGIQ2o5b7elCfo3otz+9Drz8Nbti6Q=; b=pvcVkKxrawf/ 1DcwNZWmWhTa3gtFK0Z73g4fH6vjE76jUPRJocihNRLhPLT+Pgn8zZS8vFVVyVwU/Kzp9pbtA+lf6 FZBbCG84vXDECFqHJMYM+lTIkghmKlo7h3EBWoteQyObrx19yG9jf9CszdHbq3k2fQIsjFkPvkpDd nmeeAKwpEbUmTvHIJpQ3+SZotYrgHgx/d+2SIhB+1xRxP/atE7jqOeJJ7I3wONz7vJxEnc2x2+EYR hlYAfxDurMZQ45BUs68FzPgW5O+DsEKZrGKEM4pn7GS+iB1vgpXEGnV/C/8vFke7qWragvvxb7KXe +HRSME+e4DpnK1/KOYIsqw==; Received: from rms by fencepost.gnu.org with local (Exim 4.90_1) (envelope-from ) id 1oB6CG-0000YG-9A; Mon, 11 Jul 2022 23:04:24 -0400 Content-Type: text/plain; charset=Utf-8 From: Richard Stallman To: Gerd =?iso-8859-1?Q?M=C3=B6llmann?= In-Reply-To: (message from Gerd =?iso-8859-1?Q?M=C3=B6llmann?= on Mon, 11 Jul 2022 10:13:35 +0200) Subject: Re: bug#56495: 29.0.50; Support for debugging Emacs with LLDB References: Message-Id: Date: Mon, 11 Jul 2022 23:04:24 -0400 X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 56495 Cc: 56495@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: rms@gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) [[[ To any NSA and FBI agents reading my email: please consider ]]] [[[ whether defending the US Constitution against all enemies, ]]] [[[ foreign or domestic, requires you to follow Snowden's example. ]]] I an unhappy with duplicating code in our sources for the sake of supporting a competitor for GDB, that being for the sake of MacOS. Duplicating code leads to extra maintenance work. As I recall, GNU Emacs does not support MacOS anyway -- there is a separate, modified version of Emacs for that. This duplicate code should go into that modified version. The maintainers of that version presumably think it is worth making an effort to improve MacOS support -- so let them do the work. -- Dr Richard Stallman (https://stallman.org) Chief GNUisance of the GNU Project (https://gnu.org) Founder, Free Software Foundation (https://fsf.org) Internet Hall-of-Famer (https://internethalloffame.org) From debbugs-submit-bounces@debbugs.gnu.org Mon Jul 11 23:16:03 2022 Received: (at 56495) by debbugs.gnu.org; 12 Jul 2022 03:16:03 +0000 Received: from localhost ([127.0.0.1]:41378 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oB6NX-0004DW-Fa for submit@debbugs.gnu.org; Mon, 11 Jul 2022 23:16:03 -0400 Received: from mail-pj1-f47.google.com ([209.85.216.47]:46788) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oB6NV-0004Cu-V3 for 56495@debbugs.gnu.org; Mon, 11 Jul 2022 23:16:02 -0400 Received: by mail-pj1-f47.google.com with SMTP id t5-20020a17090a6a0500b001ef965b262eso6676263pjj.5 for <56495@debbugs.gnu.org>; Mon, 11 Jul 2022 20:16:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:in-reply-to:references:mime-version:date:message-id:subject:to :cc; bh=wWwo7OpOd2sA+CqokwQaKA7elVBufkjlXKG3AiMkK54=; b=A0cUg+zJG6NC86tPH2eDKXqU2J+n+/8px8LFrBZhdmXD4wiRmViTbO+Y6unW16O1Rx pHhVF5vd7bPh6pmWLN5kdq2sIGeZcqIL7+yy1XVMZwWEzKzlTglOwHMAOkLNVETZXyNZ cK5rl721mOeMNdCKHmlprC4qes5Qmj1vBIEgD9RW3kYPhHnW397kLQ9wRjrS16a20Pm7 /9TbBNbbtNz6+bgximpBzeHf8Uu51MQwe2e58hmVJUYBkQOUozdJDvcfPfece9YwAc+0 AMXSzTZrDduUGL6zp90PRseligBfY2/KDNOUH+8AtjY1oMaT49YzJzfqAJJkiVlq+8DH UN1A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:in-reply-to:references:mime-version:date :message-id:subject:to:cc; bh=wWwo7OpOd2sA+CqokwQaKA7elVBufkjlXKG3AiMkK54=; b=LCAPRFhXf/hr1o1l+pxfgbEqi1EP4t3K3L+/V9PPzo2DxVY+i7z6Ah2ZUGthpj3zlA 745jt3dwsiF7c5LZQOkDz31d5X4ludKH6V5ndQZLdmdMIiU8JFd8cJvdYDNWjd7LGswR KGK+ZLgfEZZ2kpLh06dQDMrhao/XflTmEPv5a3BFT2lrmfcQG9fwaoDR1DLXrxfkieFf UJ28vx39rtoXFtZdzC2sa5jV2UgOZNOr4YCs76TALxPS6wxvj/WWEDumVpEMuuRsFeAK +4D6HJyQLkwmTRw0jHCpOwPbTnOSOS2IJ/ifTZbi9TF0U4OGet7t6Mx9rVEtVTnnWcYa +GTA== X-Gm-Message-State: AJIora91i3KJF4gcwjNXFNfJd1ShlgD9j/CP3zzdjTDrBF0dC5uuyMg5 nvg6x7RupWBTD+UIY1ryNPd77f23D9O8pFLNMEQ= X-Google-Smtp-Source: AGRyM1sGOn8ihg3kPKCyzzFXJmVHTnIR5MIk7tP1WblyOSG4DC+cLaO+5nsdiyVIoX0UNHnFE/2TWxWqzrY/VnZ3C4E= X-Received: by 2002:a17:903:244c:b0:16c:594b:3f4a with SMTP id l12-20020a170903244c00b0016c594b3f4amr2451463pls.145.1657595756033; Mon, 11 Jul 2022 20:15:56 -0700 (PDT) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Mon, 11 Jul 2022 22:15:55 -0500 From: Stefan Kangas In-Reply-To: References: MIME-Version: 1.0 Date: Mon, 11 Jul 2022 22:15:55 -0500 Message-ID: Subject: Re: bug#56495: 29.0.50; Support for debugging Emacs with LLDB To: rms@gnu.org, =?UTF-8?B?R2VyZCBNw4PCtmxsbWFubg==?= Content-Type: text/plain; charset="UTF-8" X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 56495 Cc: 56495@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Richard Stallman writes: > As I recall, GNU Emacs does not support MacOS anyway GNU Emacs supports "MacOS X 10.6 or newer" (etc/MACHINES). From debbugs-submit-bounces@debbugs.gnu.org Tue Jul 12 04:04:21 2022 Received: (at 56495) by debbugs.gnu.org; 12 Jul 2022 08:04:21 +0000 Received: from localhost ([127.0.0.1]:41572 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oBAsX-0005qC-D7 for submit@debbugs.gnu.org; Tue, 12 Jul 2022 04:04:21 -0400 Received: from mail-ej1-f50.google.com ([209.85.218.50]:44809) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oBAsV-0005pz-R0 for 56495@debbugs.gnu.org; Tue, 12 Jul 2022 04:04:20 -0400 Received: by mail-ej1-f50.google.com with SMTP id ss3so6872010ejc.11 for <56495@debbugs.gnu.org>; Tue, 12 Jul 2022 01:04:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:subject:from:in-reply-to:date:cc:message-id:references :to; bh=tkpGv5GlDp+67cubYQgzPM+tOjN3BJLO94nr4I5ruEw=; b=hv5XmpeqUblDE/Ltqe7+2t6ktKY2yYVbEJ1vU0kEjRf2HvDxa7MUmp0LiyTGmd1ao9 dTr2+ale9qKBJ/wMHR2i0OA/r0T3BqoFtBYPipUcKaw9Y60rqedMnCMkO2P05qA+HMjG Q3lFc7JAxy4g3VJRE6SyX/wYqSOrWUZEF9g73vXirwtBc9y5roC0lrN/Ajd4wVkqXl8Q cRe6w1MQCqhmkykZ5yYBOIpOztc8W5ymHC06pOd3cGNg6VMN1/f0vkqroXAbL6S8tkhn cYTR0xji0orejJ3/O2HBvrkcBf7p58tm/ZSpFWYnxMXnmdNAnYlb7PatipbeVA8W76vk 0fug== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :message-id:references:to; bh=tkpGv5GlDp+67cubYQgzPM+tOjN3BJLO94nr4I5ruEw=; b=0t2bKEY90IuBQY9RBfpo1rWt2jh1u1T9TpsJsUwsrhFwAThiOmAMZ2GTMVdAyRzGFF JYE1PUNy2yT5Ba+oCgb3qEReM+CinluoEziN/j6cOteS8qvP5HKQBOOtEzHYHokIEhFI +GOl5AEZLKaDwp1Jusv/jh3wlKKThQ8e8l0aTMR3XjctWku4u9cjgBvEPoAnN4+hzSuZ Qr6x08zD3iocyCjJvIpHYYBRhT6QVs0+cUgFGc82PWr+EJUuW1MX/aaWN36pX9xYTbcr p3c/VqaK66T0JVWcTFXNd3UHcPVVYad7LqXPJn0KhWzx9gU/C2cyTuh+uY9w+qqprvtO 4ycQ== X-Gm-Message-State: AJIora/9xcdtmrCzxLzUR2m+EWkNw4icIxmqDsShuB4kzdoeFxc1e94P g5OFjY5EwRSkYO2m+kdSVSE9y6RMc2izcg== X-Google-Smtp-Source: AGRyM1tVLPOpluMWd/eMnKkPmKPtXarpMgBXZM0cG4kd++9Gw/11DCC/FB5TZEGL2qNben/Yak6Stg== X-Received: by 2002:a17:907:7da6:b0:72a:cf40:13e1 with SMTP id oz38-20020a1709077da600b0072acf4013e1mr22691130ejc.343.1657613053788; Tue, 12 Jul 2022 01:04:13 -0700 (PDT) Received: from smtpclient.apple (pd9e364d5.dip0.t-ipconnect.de. [217.227.100.213]) by smtp.gmail.com with ESMTPSA id l17-20020a1709065a9100b00722f66fb36csm3513936ejq.112.2022.07.12.01.04.12 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 12 Jul 2022 01:04:12 -0700 (PDT) Content-Type: multipart/signed; boundary="Apple-Mail=_C4DC6F2F-0F21-4F7F-91C2-07A507A14D7B"; protocol="application/pgp-signature"; micalg=pgp-sha512 Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.100.31\)) Subject: Re: bug#56495: 29.0.50; Support for debugging Emacs with LLDB From: =?utf-8?Q?Gerd_M=C3=B6llmann?= In-Reply-To: Date: Tue, 12 Jul 2022 10:04:11 +0200 Message-Id: References: To: rms@gnu.org X-Mailer: Apple Mail (2.3696.100.31) X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 56495 Cc: 56495@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --Apple-Mail=_C4DC6F2F-0F21-4F7F-91C2-07A507A14D7B Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii > On 2022-07-12,, at 5:04 , Richard Stallman wrote: > As I recall, GNU Emacs does not support MacOS anyway -- there is a > separate, modified version of Emacs for that. This duplicate code > should go into that modified version. The maintainers of that > version presumably think it is worth making an effort to > improve MacOS support -- so let them do the work. >=20 (As Stefan explained - macOS is supported. EFQ. You probably think of = Aquamacs, which AFAIU is a kind of fork of Emacs that started in the = early 2000s. I don't know much more about it. They will be = assimilated.) I'd also rather use GDB because of Emacs' .gdbinit. The problem is GDB: = it supports macOS on amd64, but not on arm64 (patches welcome, says = gdb-devel), and arm64 is what I have. So, for now, I've added 'xbacktrace' and 'pr' (safe_debug_print()) for = LLDB. Both could be useful for people investigating bugs, I think, as a = bare minimum. For anyone listening and interested: I've looked at the GDB sources for the first time today. GDB supports = arm64 on other platforms, and it supports macOS with amd64, so it might = not be too hard to add something for someone who knows what he is doing. = So far, I'm not that someone, and I don't want to spend a ton of time = on programming anyway these days, so I won't promise to do anything. --Apple-Mail=_C4DC6F2F-0F21-4F7F-91C2-07A507A14D7B Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP -----BEGIN PGP SIGNATURE----- Comment: GPGTools - https://gpgtools.org iQIzBAEBCgAdFiEEirYePpiT82Hjkftpc+obGZDFPmMFAmLNKvsACgkQc+obGZDF PmOCcRAAtH9gOjEkNEq+hH1EAfgoFDO0GW1A3iQNc+KRutdbbCizUpBZy7+k2rQ3 bio1PQZF7PypfgJDCiQJ4HqzrfbxSDejZ4ovNr1kQkQZZ6vFHeuhX32XbbXa6UfN 0KZy50mATzNVEeks4mvg+rscRTchStnnB3CaMh+7KOk5nCcj8suME2CTFQzAr13l pwVu+lKlM3m+xJRfg/XPGkVPaObWee/Sc8GVsJdH1LclKyENZBZZJUMh38+xAAlZ gs9V+jB66Oov6ud6AJcLj8l0+1jhFqht4TrmzlFMhAHfAaLKCAe4WFDppBuD+jcw zXVfaLaa+Uc0mvbhV1vdxcvM79Bj9ewdmpHPXD3/GtPSC6uQDca2tKXI7Dd2RPyK 2l5XoUKRN5I3IoeI/j3fqXgCfV6YKgN+3RHuFqFPrfrvExq/ZOk415xWVUkbw0hq vkYd29Y1c104bCNJa0LM8zC1CT15XwLZg/+vYm7MQsOZB7XjhVVCNacNhOzJikgV aGrEyRCGYz4/m33uRdsGtDVJJqOQ4X1ZV63awFUako+2VfX1MfgGLkb+UfFfXcmX YxW+S3wxm+Xfpilkf6W/H8y7XhE3p7pEJiEu0wCW/qCbphEOGe/0TKsqgDLTCVoO 36/bKbwfKW2JkXYHRgC8B1bKd4ae1cAQ8I0SOKD+dhbi2TgHy3Q= =bjKM -----END PGP SIGNATURE----- --Apple-Mail=_C4DC6F2F-0F21-4F7F-91C2-07A507A14D7B-- From debbugs-submit-bounces@debbugs.gnu.org Wed Jul 13 23:10:52 2022 Received: (at 56495) by debbugs.gnu.org; 14 Jul 2022 03:10:52 +0000 Received: from localhost ([127.0.0.1]:48186 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oBpFc-0004Eh-4i for submit@debbugs.gnu.org; Wed, 13 Jul 2022 23:10:52 -0400 Received: from eggs.gnu.org ([209.51.188.92]:36616) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oBpFZ-0004ER-Fr for 56495@debbugs.gnu.org; Wed, 13 Jul 2022 23:10:50 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:35336) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oBpFQ-00046o-KM; Wed, 13 Jul 2022 23:10:42 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=Date:References:Subject:In-Reply-To:To:From: mime-version; bh=Hwd23jacsOT11oVnNO9d6XbSBeXM35OetA72j1CyNUg=; b=nKL2ULsqkfD4 WUnAqFUhuOk7uFxcRnlIf7HLnDleUbS1gADiI0kx5HjB36JzsznYN4XwCx28YfsjCi2+44VH2R5k5 IkaP+CqSoZBIWtAlYNtbmDZZcxs9tViFX593mC8DTdasvUNLbWI+2ZEP38CeKT0ZiQuWnUq41EJp0 yotjqxCV4j4hmpyUTsV+VYaf+kxl19b4v8Q0UiwllwuPKydRvenwiKPwKDRhS5HhMoYKJvuJBU1En saFxIoY7EYczp9IEvcNTRKgRhgUekfavNubCzdO73MS7XgiXFr3XiL67DjMohHo8duuQU7Opp5y0c 5P2Z6e8RundolIzp6E7FSw==; Received: from rms by fencepost.gnu.org with local (Exim 4.90_1) (envelope-from ) id 1oBpFM-0007dE-Qp; Wed, 13 Jul 2022 23:10:38 -0400 Content-Type: text/plain; charset=Utf-8 From: Richard Stallman To: Stefan Kangas In-Reply-To: (message from Stefan Kangas on Mon, 11 Jul 2022 22:15:55 -0500) Subject: Re: bug#56495: 29.0.50; Support for debugging Emacs with LLDB References: Message-Id: Date: Wed, 13 Jul 2022 23:10:36 -0400 X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 56495 Cc: gerd.moellmann@gmail.com, 56495@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: rms@gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) [[[ To any NSA and FBI agents reading my email: please consider ]]] [[[ whether defending the US Constitution against all enemies, ]]] [[[ foreign or domestic, requires you to follow Snowden's example. ]]] > GNU Emacs supports "MacOS X 10.6 or newer" (etc/MACHINES). I stand corrected. Thanks. -- Dr Richard Stallman (https://stallman.org) Chief GNUisance of the GNU Project (https://gnu.org) Founder, Free Software Foundation (https://fsf.org) Internet Hall-of-Famer (https://internethalloffame.org) From debbugs-submit-bounces@debbugs.gnu.org Mon Sep 05 15:17:00 2022 Received: (at 56495) by debbugs.gnu.org; 5 Sep 2022 19:17:00 +0000 Received: from localhost ([127.0.0.1]:48909 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oVHae-0003rU-2n for submit@debbugs.gnu.org; Mon, 05 Sep 2022 15:17:00 -0400 Received: from quimby.gnus.org ([95.216.78.240]:43212) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oVHac-0003rG-49 for 56495@debbugs.gnu.org; Mon, 05 Sep 2022 15:16:58 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID :Date:References:In-Reply-To:Subject:Cc:To:From:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=mjaRPoOio5xTlRWRcKpNvwuAlHHauz39sGVHHVRmtnc=; b=SAh3YQIMLRsrdaG7Qw7Uo1xFzh foo9h3A9eTyDqQ2JknZcTL2xiZJ2rvH7s75VFn6566QbZgH9Dej99RqhkDiWO2IDUwmce/HmmHbxS dN+Aklcn/9AWCw8cCGYJ+HOL9kxiROxmKmW9Vrt3swLV92OrdsRKjp635O2fYoj2K1QA=; Received: from [84.212.220.105] (helo=joga) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oVHaU-0004Zh-8A; Mon, 05 Sep 2022 21:16:52 +0200 From: Lars Ingebrigtsen To: Robert Pluim Subject: Re: bug#56495: 29.0.50; Support for debugging Emacs with LLDB In-Reply-To: <87h73ng7fk.fsf@gmail.com> (Robert Pluim's message of "Mon, 11 Jul 2022 14:28:15 +0200") References: <877d4kgg80.fsf@gmail.com> <7D5B966F-2080-4508-8CB2-E13C5147FE8F@gmail.com> <87leszgboc.fsf@gmail.com> <87h73ng7fk.fsf@gmail.com> X-Now-Playing: The Rolling Stones's _Black and Blue_: "Crazy Mama" Date: Mon, 05 Sep 2022 21:16:49 +0200 Message-ID: <87v8q1zl5q.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Robert Pluim writes: > Gerd> Could you please try it with your LLDBs? > > Works for me on the Apple and llvm lldbs, thanks This was two months ago, and it looks like this was added at the time: Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 56495 Cc: Gerd =?utf-8?Q?M=C3=B6llmann?= , 56495@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Robert Pluim writes: > Gerd> Could you please try it with your LLDBs? > > Works for me on the Apple and llvm lldbs, thanks This was two months ago, and it looks like this was added at the time: commit 7af425f87bf9866c60ac134cbb6aa9eb0c61f8af Author: Gerd M=C3=B6llmann AuthorDate: Sun Jul 10 13:35:32 2022 +0200 Support for debugging Emacs with LLDB So I'm closing this bug report now. From debbugs-submit-bounces@debbugs.gnu.org Mon Sep 05 15:17:04 2022 Received: (at control) by debbugs.gnu.org; 5 Sep 2022 19:17:04 +0000 Received: from localhost ([127.0.0.1]:48913 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oVHai-0003sB-BT for submit@debbugs.gnu.org; Mon, 05 Sep 2022 15:17:04 -0400 Received: from quimby.gnus.org ([95.216.78.240]:43226) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oVHag-0003rM-Oq for control@debbugs.gnu.org; Mon, 05 Sep 2022 15:17:03 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=5oLyxxfh4AGMlB+yhtMzQLyXvV2Ksi7q+82xy1I08EI=; b=clubnpCOY0IMhJo28g7T4NJt8m 8Ti6L3/inxDowbQPhkJHEDlhHwh6wytG7QID4DCrExIYNxe6A+irZL4iGvzJoZ3je5lZwNxfjQc/i cSDOQazweCuqs01LoP756TlWcdLNtHMhdSerOkiMXZwO2AoE5loHYzcIHu7jCXHU4WcA=; Received: from [84.212.220.105] (helo=joga) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oVHaZ-0004Zq-4b for control@debbugs.gnu.org; Mon, 05 Sep 2022 21:16:57 +0200 Date: Mon, 05 Sep 2022 21:16:54 +0200 Message-Id: <87tu5lzl5l.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #56495 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: close 56495 29.1 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) close 56495 29.1 quit From unknown Mon Aug 18 08:59:37 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Tue, 04 Oct 2022 11:24:10 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator