From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?utf-8?Q?Gerd_M=C3=B6llmann?= Newsgroups: gmane.emacs.devel Subject: Re: gdb doesn't print Lisp backtrace in some circumstances. Date: Fri, 12 Apr 2024 16:56:58 +0200 Message-ID: References: <86pluusunr.fsf@gnu.org> Mime-Version: 1.0 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="23722"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Alan Mackenzie , emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Apr 12 16:57:56 2024 Return-path: Envelope-to: ged-emacs-devel@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 1rvILk-0005y1-R1 for ged-emacs-devel@m.gmane-mx.org; Fri, 12 Apr 2024 16:57:56 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rvIKw-0008GX-M3; Fri, 12 Apr 2024 10:57:06 -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 1rvIKv-0008GM-8g for emacs-devel@gnu.org; Fri, 12 Apr 2024 10:57:05 -0400 Original-Received: from mail-lj1-x22a.google.com ([2a00:1450:4864:20::22a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rvIKs-0000H3-QR; Fri, 12 Apr 2024 10:57:05 -0400 Original-Received: by mail-lj1-x22a.google.com with SMTP id 38308e7fff4ca-2d485886545so15100781fa.2; Fri, 12 Apr 2024 07:57:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1712933820; x=1713538620; darn=gnu.org; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=u8L7KuQ8NRwdB6yhmPK/XrCmOGjQFLqfB9BAOdXfpzs=; b=myVDmdWlsJoxgdeuwDct3XHkQBljXpW1+Ue3OxKu2Md6jXZkJxZ7kHcSrtKV3hbIxW WAY40R7rTlRZ3g5yQq4TkCWTe3d+n7ByjtRHqHRok9U35qhwIVxAtqVoe5DnhUjecwgj SY0l053irWXuZsP7CM+f+f+aSqh90Favq9/uFlr+kSNk0zq0ORqLuQek/yl8UxQHBuoq /ulaFcY8RFMEOvD9Ry71Ra8GtAOhuZHnO5kTRVtSALr5AGa2+Jlqe/rKR1oKyxs+YztX DOQJF9CNNg4mHFaPWfjzvpelhfiUvVg1Os95CXSn4f8abDDujtyMW5yYw5Hku0FPS1zl mp2Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712933820; x=1713538620; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=u8L7KuQ8NRwdB6yhmPK/XrCmOGjQFLqfB9BAOdXfpzs=; b=WOa6fH+vPNhnVJE6OeUyc01v0lCvSzBdoSn7QH62zc8etjJxintttCMvvEVtRE1tUt i1r2sb2u9v2DuGngHMhNGmKLQ7s/b4TIF/sECNlW3IGZaddYAdmDvRBIXatHQB5vhDyA dZlSfta8IBLtFh0X9pBjTegn1xMBNOIQWetqeaziRCW/UrHLf9EipdhjknnOWRD/sZdt PFairUWibmsoTWELXIfc/rdavWlZEeKwWHX+7qihChd2fTTRUQ4xVs4qXBg2Jjgy5rwl kG0jpO3arVxeD+T74fscdCdpiTz7VI7lrlDhHihXwCFi4mmgVy9y/lj7094D8LSbcp2z 3bpQ== X-Forwarded-Encrypted: i=1; AJvYcCVCAEqtbyAzEb1xpXeXfcG3fdMUb3r1is+6GpAUtkPIJ+B0/oBD4erdEzsG8bD++tLbzaOKJtxmkY4DMGGqdyco508f X-Gm-Message-State: AOJu0YzanMpjwF2XXmX/DE/c7Jn/Tb0D5b3RFY5lRLa6AKvjhhms1aId YDhIWvXwJ7zIWlfwYnnFKJztq4K5cbvikwEAF7xzvM68cd6snsgwMm5ijQ== X-Google-Smtp-Source: AGHT+IE3DmeVnplapSs/QRBe08oQXCEhdCf9ElmSCALhiSkUzVCUmNznCzYllrm/5GgXFU052MxvuA== X-Received: by 2002:a2e:2205:0:b0:2d8:7266:ae74 with SMTP id i5-20020a2e2205000000b002d87266ae74mr2005859lji.26.1712933819948; Fri, 12 Apr 2024 07:56:59 -0700 (PDT) Original-Received: from Pro.fritz.box (pd9e36b11.dip0.t-ipconnect.de. [217.227.107.17]) by smtp.gmail.com with ESMTPSA id hd13-20020a170907968d00b00a5217964308sm1899121ejc.218.2024.04.12.07.56.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Apr 2024 07:56:59 -0700 (PDT) In-Reply-To: ("Gerd =?utf-8?Q?M=C3=B6llmann?= =?utf-8?Q?=22's?= message of "Fri, 12 Apr 2024 16:48:24 +0200") Received-SPF: pass client-ip=2a00:1450:4864:20::22a; envelope-from=gerd.moellmann@gmail.com; helo=mail-lj1-x22a.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 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:317696 Archived-At: Gerd M=C3=B6llmann writes: > I think it's easier to go through the specbinding stack > (current_thread->m_specdl). For LLDB, I did that in the xbacktrace > function in etc/emacs_lldb.py. It just remembered that the very first xbacktrace I added did it in a similar way, so a very old .gdbinit may contain something of a starting point.