From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17662 invoked by alias); 7 Jan 2004 17:15:29 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 17655 invoked from network); 7 Jan 2004 17:15:28 -0000 Received: from unknown (HELO shell4.bayarea.net) (209.128.82.1) by sources.redhat.com with SMTP; 7 Jan 2004 17:15:28 -0000 Received: from eagercon.com (209-128-106-254.bayarea.net [209.128.106.254]) by shell4.bayarea.net (8.11.6/8.11.6) with ESMTP id i07HFO820955; Wed, 7 Jan 2004 09:15:24 -0800 Message-ID: <3FFC3EAC.8000506@eagercon.com> Date: Wed, 07 Jan 2004 17:15:00 -0000 From: Michael Eager User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4a) Gecko/20030401 MIME-Version: 1.0 To: anocean@aromasoft.com CC: gdb@sources.redhat.com Subject: Re: gdb supports dwarf2 which is generated by ADS compiler? References: <000701c3d4ec$f8c1d9d0$0e01a8c0@bathory> In-Reply-To: <000701c3d4ec$f8c1d9d0$0e01a8c0@bathory> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2004-01/txt/msg00072.txt.bz2 Jang, Jaewoo wrote: > I try to debug elf dwarf2 format whcih is generated by ADS 1.0.1 compiler. > It seems that gdb support dwarf2 spec. > But ARM dwarf2 spec is somehow modified from drawf2 spec. > This is the reference of ARM dwar2 spec. > http://www.linuxbase.org/spec/refspecs/dwarf/ARMDwarf2.pdf The ARM document specifies how their compiler generates DWARF. They describe the choices which they make, as well as the very minor areas in which they diverge from the DWARF 2 standard. > I want to know whether gdb will support ARM dwarf2 format, > or it is possible to patch gdb that support ARM dwarf format. There is no ARM DWARF 2 format, as such. DWARF is permissive -- it allows compilers to generate more or less information. The ARM document does what few other compilers do: explain what choices they made and their rationale. On the other hand, if a compiler generates DWARF which diverges from the standard, one has to expect that a debugger will have trouble interpreting it. I don't think that ADS does this. If you have a specific question (i.e., "does gdb support this particular output from ADS?" or "is this particular DWARF generated by ADS correct?"), then you will more likely get a more specific response. > Now I try to understand source codes that is part of reading elf format. > It is hard to understand. :( > > please help me. > > Sorry for my bad writing. > =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= > Let's get rock. > +82 (2) 3284-2463 anocean@aromasoft.com > -- Michael Eager Eager Consulting eager@eagercon.com 1960 Park Blvd., Palo Alto, CA 94306 650-325-8077