From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mr3.vodafonemail.de (mr3.vodafonemail.de [145.253.228.163]) by sourceware.org (Postfix) with ESMTPS id A70133858D35 for ; Thu, 17 Aug 2023 18:39:12 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org A70133858D35 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=nexgo.de Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=nexgo.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nexgo.de; s=vfde-smtpout-mb-15sep; t=1692297550; bh=AqZ+lifwEa7ajEEHalbqgzTBZlF7udcLKyWZTx9iMzI=; h=From:To:Subject:In-Reply-To:References:Date:Message-ID:User-Agent: Content-Type:From; b=G0V1hcn1SOZa+FhKMWjW1rv2bgzb8xQYGHzZ4KtrEGxrwAbCd5nZRIv1sbRCMWp9s c67yvw9hjhnDqmgj+1AtHOJJGlUgdZej4OJh+8ZxQJh57sZWD67KzB0C+Au9Bu+IOt as26ljGaZguapzyNKi93Rx+2sHKIb2IBEEtpOaQE= Received: from smtp.vodafone.de (unknown [10.0.0.2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by mr3.vodafonemail.de (Postfix) with ESMTPS id 4RRYgf6XxTz207Y for ; Thu, 17 Aug 2023 18:39:10 +0000 (UTC) Received: from Gerda (p57b9d560.dip0.t-ipconnect.de [87.185.213.96]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (prime256v1) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp.vodafone.de (Postfix) with ESMTPSA id 4RRYgZ1YLhzHnHf for ; Thu, 17 Aug 2023 18:39:03 +0000 (UTC) From: ASSI To: binutils@sourceware.org Subject: Re: Replacement for "objdump -d -l"? In-Reply-To: (Nick Clifton via Binutils's message of "Tue, 15 Aug 2023 15:15:01 +0100") References: <87a5v24s61.fsf@Rainer.invalid> Date: Thu, 17 Aug 2023 20:38:59 +0200 Message-ID: <87wmxtbjjw.fsf@Rainer.invalid> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-purgate-type: clean X-purgate: clean X-purgate-size: 1392 X-purgate-ID: 155817::1692297546-D67FD487-81186290/0/0 X-Spam-Status: No, score=-3028.9 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_BARRACUDACENTRAL,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: Nick Clifton via Binutils writes: > But to be fair, the output format does not change that much, and > it could be documented if there really was a need. I've implemented a Perl script that just extracts the file and directory tables from the -WNl dump and checks which of these actually get referenced by line number statements. The latter part is necessary since there are more files in the tables than are actually used in line number statements. I still extract more files than what I am getting from "objdump -dl", these extras seem to be instances where the same address in the disassembly has multiple views associated (not analysed, but from the files involved these might be resulting from macro expansions). I have not yet figured out which of these views is the one that ends up in the disassembly with line numbers dump, but for the prupose of debugging it seems I should actually keep debug sources for all views the debugger might encounter. The other snag I've hit is relative directories in the directory table, but with the examples I've seen so far these resolve relative to directory entry #0 (which is otherwise unreferenced by file table entries). Regards, Achim. -- +<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+ SD adaptation for Waldorf Blofeld V1.15B11: http://Synth.Stromeko.net/Downloads.html#WaldorfSDada