From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Gerd =?UTF-8?Q?M=C3=B6llmann?= Newsgroups: gmane.emacs.bugs Subject: bug#71292: 30.0.50; macOS: .elns have no debug info Date: Fri, 31 May 2024 21:22:21 +0200 Message-ID: References: <86le3qour9.fsf@gnu.org> <86frtxq2ih.fsf@gnu.org> <86a5k5q1c8.fsf@gnu.org> <868qzppzt6.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="21997"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 71292@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri May 31 21:24:13 2024 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 1sD7rG-0005Pi-7h for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 31 May 2024 21:24:10 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sD7r1-0001EV-Uh; Fri, 31 May 2024 15:23:55 -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 1sD7qy-0001Cd-D6 for bug-gnu-emacs@gnu.org; Fri, 31 May 2024 15:23:52 -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 1sD7qw-00078k-QC for bug-gnu-emacs@gnu.org; Fri, 31 May 2024 15:23:52 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sD7r7-0006ZP-Le for bug-gnu-emacs@gnu.org; Fri, 31 May 2024 15:24:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Gerd =?UTF-8?Q?M=C3=B6llmann?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 31 May 2024 19:24:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 71292 X-GNU-PR-Package: emacs Original-Received: via spool by 71292-submit@debbugs.gnu.org id=B71292.171718342625224 (code B ref 71292); Fri, 31 May 2024 19:24:01 +0000 Original-Received: (at 71292) by debbugs.gnu.org; 31 May 2024 19:23:46 +0000 Original-Received: from localhost ([127.0.0.1]:55373 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sD7qr-0006Yl-UG for submit@debbugs.gnu.org; Fri, 31 May 2024 15:23:46 -0400 Original-Received: from mail-ej1-f51.google.com ([209.85.218.51]:61622) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sD7qm-0006YO-HX for 71292@debbugs.gnu.org; Fri, 31 May 2024 15:23:44 -0400 Original-Received: by mail-ej1-f51.google.com with SMTP id a640c23a62f3a-a6858bdc9ddso121614666b.2 for <71292@debbugs.gnu.org>; Fri, 31 May 2024 12:23:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1717183343; x=1717788143; darn=debbugs.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=ni9g7Ue1h7yD5yFoM8fCo9Hw0a32y2fx2TMH0IajoKk=; b=X/nqZMf/sbrSZ/7pZijbrwLJfd2aX8NNU7US51Cm1lbDVUsEV7z3QiFCZIfbAX4GMl nVCUHtRQOiNhvXK30nlA/iwWBBES9lMAn84WbGrEdtevCg6ItHm+tOOQb2ZEzbAuhFL6 dxau21mSmN2KOX9kv9yc7UjhBlsWdurWwntzkQFkUZh6RD4ZehUxZ2WEv1MFBt6hhi4l LLuCNGizirxeDzcWMUtbcwgCSDqJZ6igL+RF9DK2Q7vZJbg8PY8j0YHGxlinW8DImJvu kwHTE34Earpg0vG2dHEa7H+noPNWScMtiB7cr6SFxv6p7odFkTqblv0bzUkWNhAvNG7D UEzA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717183343; x=1717788143; 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=ni9g7Ue1h7yD5yFoM8fCo9Hw0a32y2fx2TMH0IajoKk=; b=Sd5fjHKbVwDbUyqtgYv+QD8c3gRfIQFSI7xfOJeDDlEFtr7SFkubA2v4fh4QHtKasN LSr/QuNzd6iiESslnd13BJTNOAxpAWgB1i+Dv3RSrInmNq+5OeTT3yLUtB+zU/RGyEOP fhneSjSbntzLBaLP1rgrv3gvALC8442j5+FZetCwHuYAu5O5WhQU+YaoyImqarE958BQ OEIR1pKtXV2G/mahbX5KksjIN5RYlZeONCVcb6c69ZWOqZ+g2AGylIL5sD2lLyymsrZT rFTr1an85DVEsSOuvEWsLniWvLz1S2T90/CGyRBcg5a4FW7fVC3Apco6boOYOzgn95ZJ IGAQ== X-Gm-Message-State: AOJu0YwHDzQdW0z3TJXWDuGQ+O+DiurK0mIxH7xKIDWNzhTpjdzoAQs/ SPAQcovfQLi+xup1nb25rAliZumO95Kw+P4KYP0vjgco37R7lazZNPMgTQ== X-Google-Smtp-Source: AGHT+IEGRIwWoF4eoCvb6JQl+jP2+XKqih24mWezWA6+Ub7cexpEb9/YGrIw3rIePs0UcR7+4fI2eA== X-Received: by 2002:a17:906:158c:b0:a66:c400:ff22 with SMTP id a640c23a62f3a-a681f87e614mr193369466b.5.1717183343044; Fri, 31 May 2024 12:22:23 -0700 (PDT) Original-Received: from pro2.fritz.box (p4fe3a1a3.dip0.t-ipconnect.de. [79.227.161.163]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a67ea58695dsm115356966b.127.2024.05.31.12.22.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 31 May 2024 12:22:22 -0700 (PDT) In-Reply-To: <868qzppzt6.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 31 May 2024 22:05:25 +0300") 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:286300 Archived-At: Eli Zaretskii writes: >> From: Gerd M=C3=B6llmann >> Cc: 71292@debbugs.gnu.org >> Date: Fri, 31 May 2024 20:52:16 +0200 >>=20 >> > Doesn't macOS support separate debug info, which can be created with >> > objcopy? If it does, you could copy the debug info from the *.o >> > files, and then deleting them would not hamper debugging. >>=20 >> MacOS has .dSYM bundles, but how would you convince libgccjit/gcc to >> invoke dsymutil to produce them before it deletes the .o files? I don't >> see how that can be done. > > So let me be sure I understand: there's no was on macOS to produce a > shared library with debug info, except by keeping the *.o files > around? IOW, when the linker produces a shared library, it doesn't > copy the debug info from the *.o files to the shared library, not even > given some optional command-line switch? That's correct. An executables on macOS cannot contain debug info as part of its own file. It contains only a "debug map" referencing the .o files from which it was built, and these contain the debug info. Alternatively, if the .o files are not present, or have changed, tools like debuggers can use .dSYM bundles which are produced by dsymutil from the .o files in an executable's debug map when it was built. It's acting like a sort of debug info linker in that case.