This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Some problem in ARM (armemu.c)


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]