From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12447 invoked by alias); 8 Dec 2009 13:24:12 -0000 Received: (qmail 12210 invoked by uid 22791); 8 Dec 2009 13:24:10 -0000 X-SWARE-Spam-Status: No, hits=-2.3 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from web112512.mail.gq1.yahoo.com (HELO web112512.mail.gq1.yahoo.com) (98.137.26.166) by sourceware.org (qpsmtpd/0.43rc1) with SMTP; Tue, 08 Dec 2009 13:24:06 +0000 Received: (qmail 65610 invoked by uid 60001); 8 Dec 2009 13:24:05 -0000 Message-ID: <38078.63404.qm@web112512.mail.gq1.yahoo.com> Received: from [123.237.137.157] by web112512.mail.gq1.yahoo.com via HTTP; Tue, 08 Dec 2009 05:24:04 PST References: <33317.35316.qm@web112515.mail.gq1.yahoo.com> <4B1D411A.8020308@vmware.com> Date: Tue, 08 Dec 2009 13:24:00 -0000 From: paawan oza Subject: Re: 32 bit applcaition debugging with 64bit gdb on 64bit machine To: Michael Snyder Cc: "gdb@sourceware.org" In-Reply-To: <4B1D411A.8020308@vmware.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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/msg00045.txt.bz2 Yes. I was talking about intel arch. Today I was trying to run following things. 1) 64 bit gdb with 32 bit inferior (compiled with -m32 option) on x86_64 arch. I ran gdb testesuite. some gcore related test cases were failing on gdb 6.8. I think gcore related things are not fixed in gdb 7.0 , may be. 2) 32 bit gdb (compiled using -m32) with 32 bit inferior also showed some varied results on x86_64 compare to native 32 bit gdb with 32 bit inferior on x86_64 I am not very sure about the reasons about the above point. 3) Is there any patch for 6.8 for gcore fix for point-1 ? Regards, Oza. ----- Original Message ---- From: Michael Snyder To: paawan oza Cc: "gdb@sourceware.org" Sent: Mon, December 7, 2009 11:23:30 PM Subject: Re: 32 bit applcaition debugging with 64bit gdb on 64bit machine 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