From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21885 invoked by alias); 8 Mar 2002 19:01:50 -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 21722 invoked from network); 8 Mar 2002 19:01:32 -0000 Received: from unknown (HELO localhost.redhat.com) (216.138.202.10) by sources.redhat.com with SMTP; 8 Mar 2002 19:01:32 -0000 Received: from cygnus.com (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id 78A023E75; Fri, 8 Mar 2002 10:28:50 -0500 (EST) Message-ID: <3C88D8B2.5080108@cygnus.com> Date: Fri, 08 Mar 2002 11:01:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-US; rv:0.9.8) Gecko/20020210 X-Accept-Language: en-us MIME-Version: 1.0 To: Michal Ludvig Cc: gdb Subject: Re: Dual-target configuration References: <3C8874E5.2010905@suse.cz> Content-Type: text/plain; charset=ISO-8859-2; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2002-03/txt/msg00073.txt.bz2 > Is it somehow possible to configure gdb to understand two target architectures at one time, so that I could debug both i386 and x86-64 programs with the same gdb binary? > > Thanks in advance > > Michal Ludvig That is one of the ideas behind all this multi-arch stuff. For it to have a fighting chance of working all aspects of both architectures need to be multi-arch. A while ago I posted a patch that lets you link in two architectures (d10v and mn10300) (I'd give a url but my isp is being wiered). Andrew