From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22220 invoked by alias); 14 Nov 2005 22:31:23 -0000 Received: (qmail 22196 invoked by uid 22791); 14 Nov 2005 22:31:20 -0000 Received: from nevyn.them.org (HELO nevyn.them.org) (66.93.172.17) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Mon, 14 Nov 2005 22:31:20 +0000 Received: from drow by nevyn.them.org with local (Exim 4.54) id 1Ebmr6-0001Iz-BV; Mon, 14 Nov 2005 17:31:16 -0500 Date: Mon, 14 Nov 2005 22:31:00 -0000 From: Daniel Jacobowitz To: Shaun Jackman Cc: gdb@sources.redhat.com Subject: Re: Simulating arm-linux binaries Message-ID: <20051114223116.GA4991@nevyn.them.org> Mail-Followup-To: Shaun Jackman , gdb@sources.redhat.com References: <7f45d9390511141428q190485f5l@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <7f45d9390511141428q190485f5l@mail.gmail.com> User-Agent: Mutt/1.5.8i Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2005-11/txt/msg00274.txt.bz2 On Mon, Nov 14, 2005 at 03:28:47PM -0700, Shaun Jackman wrote: > Hello, > > I'm adding support to sim/arm (arm-elf-run) to run statically linked > Linux binaries. The work is going well so far; I'm already able to run > a "Hello, world!" application linked against uClibc. Running a "Hello, > world!" application linked against glibc is proving to be a little > more difficult. If anyone else is interested in this work, and perhaps > in helping with this work, I'll send my current patch your way. I'll > be sending a patch upstream that works with uClibc shortly. Have you considered just using qemu instead? It supports ARM usermode emulation, and has a gdb server as a bonus. > These two invocations of the same binary seem to be going down very > different code paths within glibc. Any idea why that is? Is gdb > calling the ARMulator differently somehow than sim? No idea - it shouldn't be. -- Daniel Jacobowitz CodeSourcery, LLC