This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: Some problem in ARM (armemu.c)
- From: Daniel Jacobowitz <drow at false dot org>
- To: libra <mr924352 at cs dot nthu dot edu dot tw>
- Cc: gdb at sources dot redhat dot com
- Date: Thu, 9 Dec 2004 09:24:17 -0500
- Subject: Re: Some problem in ARM (armemu.c)
- References: <1102591251.41b8351391e24@webmail.cs.nthu.edu.tw>
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