simulavr-devel
[Top][All Lists]
Advanced

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

Re: [Simulavr-devel] avrtest and simulavr vs simulavrxx


From: Joerg Wunsch
Subject: Re: [Simulavr-devel] avrtest and simulavr vs simulavrxx
Date: Wed, 11 Mar 2009 13:07:02 +0100
User-agent: Mutt/1.5.11

As Klaus Rudolph wrote:

> >-C option: provide a "coredump" after simulation finished

> Is there a typical format for this?

It's a fairly homegrown (of the old simulavr) text file.  I'm
attaching one for reference.  Also, it's always using a fixed name.

Changing the format might be an option, though the human readable text
file for sure does have some merit.  Right now, avr-libc's testsuite
uses a Python script to extract the desired information (exitcode from
r24/r25, and possibly a message string from "external memory" starting
at address 0x2000).  This allows for a fairly simple interface to pass
a result code and possibly a message from the testsuite C source file
to the user.

> Because it is mostly a memory dump it could be binary from address 0 to 
> end_of_ram/flash or it could be a complete elf-file which also includes 
> the debug symbols from the loaded elf prog.

Host systems typically use ELF as the coredump format, yes, but they
don't duplicate the information that was already present in the actual
executable file.  Thus, when using a debugger to analyze a coredump
file, you always have to pass both, the executable as well as the dump
itself to the debugger.

> >The avr-libc testsuite uses the option -B <addr>, aka. --breakpoint
> ><addr>, in order to stop the simulation.  [...]

> I can add that. Is there a new option format required like 0x... 0000h 
> or something? I have no idea which format simulavrxx already have :-)

Thanks for adding it.  The format is a standard C string so you could
use strtoul(..., 0).

-- 
cheers, J"org               .-.-.   --... ...--   -.. .  DL8DTL

http://www.sax.de/~joerg/                        NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)

Attachment: core_avr_dump.core
Description: Text document


reply via email to

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