From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Wed, 26 May 2021 11:32:45 +0200 Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by lore.white.stw.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1llpu9-0006Ir-N0 for lore@lore.pengutronix.de; Wed, 26 May 2021 11:32:45 +0200 Received: from localhost ([127.0.0.1] helo=metis.ext.pengutronix.de) by metis.ext.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1llpu9-0003C1-7R; Wed, 26 May 2021 11:32:45 +0200 Received: from ptx.hi.pengutronix.de ([2001:67c:670:100:1d::c0]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1llptN-0003Bt-91 for ptxdist@pengutronix.de; Wed, 26 May 2021 11:31:57 +0200 Received: from mol by ptx.hi.pengutronix.de with local (Exim 4.92) (envelope-from ) id 1llptN-0005vR-04 for ptxdist@pengutronix.de; Wed, 26 May 2021 11:31:57 +0200 Date: Wed, 26 May 2021 11:31:56 +0200 From: Michael Olbrich To: ptxdist@pengutronix.de Message-ID: <20210526093156.GD28754@pengutronix.de> Mail-Followup-To: ptxdist@pengutronix.de References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: X-Sent-From: Pengutronix Hildesheim X-URL: http://www.pengutronix.de/ X-IRC: #ptxdist @freenode X-Accept-Language: de,en X-Accept-Content-Type: text/plain X-Uptime: 09:45:14 up 97 days, 11:09, 112 users, load average: 0.24, 0.13, 0.13 User-Agent: Mutt/1.10.1 (2018-07-13) Subject: Re: [ptxdist] Regenerating debug files for debugging a core dump X-BeenThere: ptxdist@pengutronix.de X-Mailman-Version: 2.1.29 Precedence: list List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "ptxdist" X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: ptxdist-bounces@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false Hi, On Tue, May 25, 2021 at 04:43:54PM +0200, Guillermo Rodriguez Garcia wrote: > I am trying to debug a core dump from a system based on ptxdist-2018.05.0. > > I see that the debug symbols are generated in > platform-xxx/root/usr/lib/debug. > > The thing is that I don't have the original debug files anymore. > If I regenerate the root fs and everything else from the same sources > (ptxdist clean + ptxdist go), will the generated debug files be valid for > debugging the core dump? It may or may not work. PTXdist tries to make builds reproducible. But there are cases where it does not work and the resulting binaries are different. So it's worth a try if you don't have the debug files any more, but it's better to keep them to avoid relying on this. > I guess the general question is: should we be storing debug files for each > release, or can we rely on regenerating these from scratch when needed? I would not rely on it. I would either just package the whole platform-xxx/root and save that. Or you could enable PTXCONF_DEBUG_PACKAGES. In this case PTXdist will create a debug ipkg for each package that contains the debug files. You can den archive all ipgk files (regular and debug) and extract those as needed. Michael -- Pengutronix e.K. | | Steuerwalder Str. 21 | http://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | _______________________________________________ ptxdist mailing list ptxdist@pengutronix.de To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de