From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1RzpBW-0003aa-DJ for mharc-grub-devel@gnu.org; Tue, 21 Feb 2012 07:51:10 -0500 Received: from eggs.gnu.org ([140.186.70.92]:43977) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RzpBO-0003aT-Oz for grub-devel@gnu.org; Tue, 21 Feb 2012 07:51:08 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RzpBH-0007DR-GX for grub-devel@gnu.org; Tue, 21 Feb 2012 07:51:02 -0500 Received: from mail-ey0-f169.google.com ([209.85.215.169]:41463) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RzpBH-0007DG-9Q for grub-devel@gnu.org; Tue, 21 Feb 2012 07:50:55 -0500 Received: by eaag11 with SMTP id g11so2713514eaa.0 for ; Tue, 21 Feb 2012 04:50:54 -0800 (PST) Received-SPF: pass (google.com: domain of phcoder@gmail.com designates 10.14.22.65 as permitted sender) client-ip=10.14.22.65; Authentication-Results: mr.google.com; spf=pass (google.com: domain of phcoder@gmail.com designates 10.14.22.65 as permitted sender) smtp.mail=phcoder@gmail.com; dkim=pass header.i=phcoder@gmail.com Received: from mr.google.com ([10.14.22.65]) by 10.14.22.65 with SMTP id s41mr12786937ees.50.1329828654259 (num_hops = 1); Tue, 21 Feb 2012 04:50:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=AMICr1oo1oMGmFMwgerRFNl8H4pd53koj0IaRxg/dRg=; b=wA7SQuH/E94/1R1Vx0W9oZbjP5PMV7vNYifuy3VGwy6tY5uH8v/r9bBzCTQr3pWi8F s0S0r0/ZpDCyBltmzgwZlqRukSdHdMqO3ItJNZ8Zb+flAb4+enTnCrZur+naEv48WtFx owMMq0svoQIwiiL1LdpzqkQw3C8IeBFH+CMV8= Received: by 10.14.22.65 with SMTP id s41mr10209072ees.50.1329828654153; Tue, 21 Feb 2012 04:50:54 -0800 (PST) Received: from debian.x201.phnet (17-234.197-178.cust.bluewin.ch. [178.197.234.17]) by mx.google.com with ESMTPS id s48sm87365292eem.0.2012.02.21.04.50.51 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 21 Feb 2012 04:50:53 -0800 (PST) Message-ID: <4F439325.4030600@gmail.com> Date: Tue, 21 Feb 2012 13:50:45 +0100 From: =?UTF-8?B?VmxhZGltaXIgJ8+GLWNvZGVyL3BoY29kZXInIFNlcmJpbmVua28=?= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:8.0) Gecko/20120216 Icedove/8.0 MIME-Version: 1.0 To: The development of GNU GRUB Subject: Re: GRUB2: Keeping debug symbols in an image References: In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.85.215.169 X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Feb 2012 12:51:08 -0000 On 21.02.2012 00:16, Adrian Burns wrote: > Hi, i had sent this out to help-grub@gnu.org but perhaps its best sent to devel > > Im looking for GRUB2's grub-mkimage to produce an efi file for target > execution along with a matching elf file that has all the debug > symbols included so that i can use a debugger to step through the > GRUB2 code. So far i see that strip is used in > grub/grub-core/genmod.sh.in to strip debug sections from the *.o files > as the build generates the *.mod file (i used readelf to verify this > after commenting out the strip command below) Then in grub-mkimage.c, > the generate_image() function appears to make no attempt to preserve > symbols. Is there a way to tell the build system to leave modules and > images with full symbol table and debugging information? We don't put any debug symbols to the result image. Use *.image and *.module. They are exact counterpart or *.img and *.mod other than being ELF even if *.img isn't and not having module identication sections. > for the image....has anyone modified grub-mkimage.c to retain debug > symbols in generated image? > > thanks, > Adrian > > -- Regards Vladimir 'φ-coder/phcoder' Serbinenko