From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18149 invoked by alias); 4 Jul 2004 13:35:56 -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 18140 invoked from network); 4 Jul 2004 13:35:55 -0000 Received: from unknown (HELO smtp.cs.nthu.edu.tw) (140.114.87.30) by sourceware.org with SMTP; 4 Jul 2004 13:35:55 -0000 Received: from webmail.cs.nthu.edu.tw (webmail.cs.nthu.edu.tw [140.114.87.10]) by smtp.cs.nthu.edu.tw (Postfix) with ESMTP id 9205D32D63 for ; Sun, 4 Jul 2004 21:35:54 +0800 (CST) Received: by webmail.cs.nthu.edu.tw (Postfix, from userid 60001) id 6BA471FA13; Sun, 4 Jul 2004 21:35:53 +0800 (CST) Received: from mcs6.cs.nthu.edu.tw (mcs6.cs.nthu.edu.tw [140.114.88.126]) by webmail.cs.nthu.edu.tw (IMP) with HTTP for ; Sun, 4 Jul 2004 21:35:53 +0800 Message-ID: <1088948153.40e807b9434db@webmail.cs.nthu.edu.tw> Date: Sun, 04 Jul 2004 13:35:00 -0000 From: libra To: gdb@sources.redhat.com Subject: About bfd in gdb MIME-Version: 1.0 Content-Type: text/plain; charset=BIG5 Content-Transfer-Encoding: 8bit User-Agent: Internet Messaging Program (IMP) 3.2.1 X-Originating-IP: 140.114.88.126 X-SW-Source: 2004-07/txt/msg00022.txt.bz2 Hello,all: About the gdb source code, I have some questions. I will use "ARM" for my example. In the gdb source code architecture,when you build the gdb(ex: target=arm-efl) ,you can find that first you will build bfd and opcodes that the same as binutils, then build the gdb and sim. My question is that : Why we must build the bfd and opcodes parts that the same as in binutils (like archures.c reloc.c arm-dis.c and arm-opc.h and so on) My idea is that : We just need to build bfd inoder to recognize the input file format,then i can use the gdb to connect to simulator(sim),after that, I can run my own program. So, the aboved mentioned file (ex: arm-dis.c and arm-opc.h), why is those file must be built again. It seem does not be used in gdb. thanks a lot!!