From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8893 invoked by alias); 22 May 2011 22:40:35 -0000 Received: (qmail 8885 invoked by uid 22791); 22 May 2011 22:40:34 -0000 X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=AWL,BAYES_00,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from sibelius.xs4all.nl (HELO glazunov.sibelius.xs4all.nl) (83.163.83.176) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sun, 22 May 2011 22:40:18 +0000 Received: from glazunov.sibelius.xs4all.nl (kettenis@localhost [127.0.0.1]) by glazunov.sibelius.xs4all.nl (8.14.3/8.14.3) with ESMTP id p4MMeC7v023720; Mon, 23 May 2011 00:40:12 +0200 (CEST) Received: (from kettenis@localhost) by glazunov.sibelius.xs4all.nl (8.14.3/8.14.3/Submit) id p4MMeAfF013279; Mon, 23 May 2011 00:40:10 +0200 (CEST) Date: Sun, 22 May 2011 22:40:00 -0000 Message-Id: <201105222240.p4MMeAfF013279@glazunov.sibelius.xs4all.nl> From: Mark Kettenis To: psmith@gnu.org CC: gdb@sourceware.org In-reply-to: <1306103110.2776.93.camel@homebase> (message from Paul Smith on Sun, 22 May 2011 18:25:10 -0400) Subject: Re: Debugging 32bit apps with 64bit target gdb References: <1305836264.2776.76.camel@homebase> <1306103110.2776.93.camel@homebase> 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: 2011-05/txt/msg00121.txt.bz2 > From: Paul Smith > Date: Sun, 22 May 2011 18:25:10 -0400 > > Anyone have any help for me? > > A short summary, I'm trying to see if I can build one GDB executable > with all these properties: > > * Is a 32bit application so it can run on both 32bit and 64bit > systems > * Can debug 32bit applications > * Can debug 64bit applications (when run on a 64bit system > obviously) > * If I can get it to debug a 64bit core file when running on a > 32bit system (with --sysroot pointing to a 64bit sysroot of > course) that would be awesome. > > I'm only concerned with x86 architectures (for now?) > > Is such a thing possible? I believe this is possible on Solaris. It is possible on powerpc Linux. It is *not* possible on Linux. Not GDB's fault. The x86 Linux kernel simply doesn't provide the necessary support.