This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Testcases for .file and .loc?
- To: binutils at sources dot redhat dot com
- Subject: Testcases for .file and .loc?
- From: Hans-Peter Nilsson <hans-peter dot nilsson at axis dot com>
- Date: Tue, 28 Nov 2000 17:03:50 +0100
Hi.
It seems testcases for the dwarf2 directives .file and .loc will
be very target-specific, if you want to use assembly code only.
But if anyone knows or has an idea how to test it only talking
in general terms, that would probably help maintainers who want
to add such tests.
I'm thinking of something along the line: "Make a file with each
insn that can be of a different length, including combinations
of varying-length insns (and pseudo-insn expansions). Add a
.file and .loc directive with different FIXME before each insn.
Assemble and dump using objdump -FIXME. Inspect for
correctness; compare to testcases for the machine FIXME;
alternatively expect different FIXME:s linear to the FIXMEs.
Add the .s and dump files to assembler tests, with a test that
runs run_dump_test or equivalent."
If there was such a testcase for any machine that would go a
long way. I'd write one if I only knew how.
Thanks.
brgds, H-P