From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29415 invoked by alias); 7 Jul 2009 02:39:04 -0000 Received: (qmail 29407 invoked by uid 22791); 7 Jul 2009 02:39:04 -0000 X-SWARE-Spam-Status: No, hits=1.2 required=5.0 tests=AWL,BAYES_00,J_CHICKENPOX_63,J_CHICKENPOX_72,MEDICAL_SUBJECT,SARE_MSGID_LONG40,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mail-pz0-f203.google.com (HELO mail-pz0-f203.google.com) (209.85.222.203) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 07 Jul 2009 02:38:56 +0000 Received: by pzk41 with SMTP id 41so3953433pzk.12 for ; Mon, 06 Jul 2009 19:38:54 -0700 (PDT) MIME-Version: 1.0 Received: by 10.142.171.3 with SMTP id t3mr1901901wfe.334.1246934334857; Mon, 06 Jul 2009 19:38:54 -0700 (PDT) In-Reply-To: <4A52AE7D.4030300@redhat.com> References: <121fadb80906291848y61466ae6yd167e6a03321d9fa@mail.gmail.com> <4A5274DB.3020705@redhat.com> <121fadb80907061904t1647fa75u7dd0710f4c8310d5@mail.gmail.com> <4A52AE7D.4030300@redhat.com> Date: Tue, 07 Jul 2009 02:39:00 -0000 Message-ID: <121fadb80907061938v25fe8ad7od0ee292c19b06f4a@mail.gmail.com> Subject: Re: About machine.md in Insight Gdb in GCC porting From: daniel tian To: Keith Seitz Cc: insight@sourceware.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Mailing-List: contact insight-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: insight-owner@sourceware.org X-SW-Source: 2009-q3/txt/msg00006.txt.bz2 2009/7/7 Keith Seitz : > daniel tian wrote: >> >> But I have already asked in GCC maillist about the same question. They >> suggested I should send the question in Insight/GCC maillist. >> I should the same compile flags with MIPS and ARM. But md file will >> appear when I debug ARM/MIPS cc1 file with insight. My port doesn't. >> So I wonder there is something I missed. > > Does it work with "normal" gdb at all? If not, it must be either a gdb > problem (gdb cannot locate the file) or a compile time problem (no debug > info or something). > > Can you show me a gdb (command line: insight --i=console) session > demonstrating the problem? I might be able to help figure out what's gone > wrong. > > Keith > I didn't used the normal gdb command mode. I just type the Insight command, and run it, then open my cc1 file. Here is my compiling command: export CFLAGS='-gdwarf-2 -g3' export LIBCFLAGS='-gdwarf-2 -g3' export BOOT_CFLAGS='-gdwarf-2 -g3' mkdir build-rice-gcc cd build-rice-gcc ../repos-gcc-4.0.2/configure --target=rice --enable-languages=c --with-dwarf2 --no-libgcc When target replaced with MIPS/ARM, machine description (*.md) file will appear. PS, my target is named "rice". Maybe there is something missed in configure file like config.sub, config.gcc or makefile. I just don't know how. So maybe your guys met the same problem before. I have to say the md file is not a pure C file. Thanks. daniel tian