Some problem in ARM (armemu.c)

Daniel Jacobowitz
Thu Dec 9 14:24:00 GMT 2004

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

More information about the Gdb mailing list