simulavr-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Simulavr-devel] Re: interrupt flag/enable bits update


From: John Regehr
Subject: Re: [Simulavr-devel] Re: interrupt flag/enable bits update
Date: Sat, 29 Nov 2003 20:17:05 -0700 (MST)

> hits a breakpoint. The test program should have multiple loops labeled like
> PASS_DONE, FAILn_DONE, etc. The sim will need to spit out which address it
> terminated on and the harness can parse that to see if the test passed or
> not. The hard part is taking the rom image and figuring out where the break
> points should be set at. I'm not quite ready to start implementing this yet
> though, still hashing it out in my head.

Ok, I've attached a small program that should do what you want.  It was
very quick to implement since I borrowed most code from an existing
project.

Compile and run something like this:

  gcc -O -Wall readelf.c -o readelf -l elf
  ./readelf ./test6.elf

When run it prints the addresses of three functions: __success, __failure,
and main.  main() is just a sanity check I left in, you'll probably want
to delete this.  Output is trivially parsed by a perl or python or
whatever script invokes simulavr.

John

Attachment: readelf.c
Description: Text document


reply via email to

[Prev in Thread] Current Thread [Next in Thread]