From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29398 invoked by alias); 9 Dec 2004 14:24:32 -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 29284 invoked from network); 9 Dec 2004 14:24:19 -0000 Received: from unknown (HELO nevyn.them.org) (66.93.172.17) by sourceware.org with SMTP; 9 Dec 2004 14:24:19 -0000 Received: from drow by nevyn.them.org with local (Exim 4.34 #1 (Debian)) id 1CcPDN-0005fH-2X; Thu, 09 Dec 2004 09:24:17 -0500 Date: Thu, 09 Dec 2004 14:24:00 -0000 From: Daniel Jacobowitz To: libra Cc: gdb@sources.redhat.com Subject: Re: Some problem in ARM (armemu.c) Message-ID: <20041209142417.GA21724@nevyn.them.org> Mail-Followup-To: libra , gdb@sources.redhat.com References: <1102591251.41b8351391e24@webmail.cs.nthu.edu.tw> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1102591251.41b8351391e24@webmail.cs.nthu.edu.tw> User-Agent: Mutt/1.5.5.1+cvs20040105i X-SW-Source: 2004-12/txt/msg00065.txt.bz2 On Thu, Dec 09, 2004 at 07:20:51PM +0800, libra wrote: > Hello,all > > I am trying to modify the arm file (gdb/sim/arm/armemu.c) to fit my > research purpose. In this file(armemu.c), the > function "ARMul_Emulate32 (ARMul_State * state)" simulate the ARM > instruction set. > > My question is that when i modify the instrction operation (see > below 1), and rebuild the gdb, i also write a test program(see > below 2). Once exexuting the test program(see below 3), the whole > program halt. I do not know what happen, because i think the > modifying is simple. Probably something in the startup code from newlib uses addition, and goes into an infinite loop with your broken addition. The simulator is part of GDB; you can load a.out into GDB and run it to see what happens. -- Daniel Jacobowitz