From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29468 invoked by alias); 7 Dec 2009 17:54:01 -0000 Received: (qmail 29455 invoked by uid 22791); 7 Dec 2009 17:54:00 -0000 X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from smtp-outbound-2.vmware.com (HELO smtp-outbound-2.vmware.com) (65.115.85.73) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 07 Dec 2009 17:53:57 +0000 Received: from mailhost3.vmware.com (mailhost3.vmware.com [10.16.27.45]) by smtp-outbound-2.vmware.com (Postfix) with ESMTP id C722156075; Mon, 7 Dec 2009 09:53:55 -0800 (PST) Received: from [10.20.94.141] (msnyder-server.eng.vmware.com [10.20.94.141]) by mailhost3.vmware.com (Postfix) with ESMTP id A322DCD911; Mon, 7 Dec 2009 09:53:55 -0800 (PST) Message-ID: <4B1D411A.8020308@vmware.com> Date: Mon, 07 Dec 2009 17:54:00 -0000 From: Michael Snyder User-Agent: Thunderbird 1.5.0.12 (X11/20090624) MIME-Version: 1.0 To: paawan oza CC: "gdb@sourceware.org" Subject: Re: 32 bit applcaition debugging with 64bit gdb on 64bit machine References: <33317.35316.qm@web112515.mail.gq1.yahoo.com> In-Reply-To: <33317.35316.qm@web112515.mail.gq1.yahoo.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2009-12/txt/msg00040.txt.bz2 paawan oza wrote: > Hi, > > I have following questions, please try to clarify. > > I compile gdb on 64 bit machine, > > 1) 32 bit application compiled on 32 bit system and directly using them on 64 bit machine, and then we debug the 32 bit application using 64 bit gdb on 64 bit machine. > > 2) 32 bit applications compiled on 64 bit machine using -m32 flag, and then I try to compile 32 bit application using 64 bit gdb in 64 bit machine. > > 3) of course 64bit applications must be able to be debugged easily by 64 bit gdb on 64 bit machine. > > In 1 and 2, is there any case where gdb may not work or may have some issue ? > I suppose 3 must not have any issue. "not have any issues" is of course a pretty strong statement. In general, all three cases should work. I assume you talk about Intel arch. Michael