[LLVMdev] Writing unit tests for DWARF?

Devang Patel dpatel at apple.com
Thu Mar 17 11:45:01 PDT 2011


On Mar 17, 2011, at 8:44 AM, Renato Golin wrote:

>> dwarfdump --verify will do this.
> 
> Is this being used in LLVM tests? This is an idea.

It is not used  in llvm/test tests.

> I had a look at your debug tests in clang and they're similar to what I do here.
> 
> The problem with debug tests is that it doesn't depend only on the
> compiler, but on the debugger for each host/target platform
> combinations. Though, dwarfdump could help us grep out the basic stuff
> without the need to resort to a debugger to check for Dwarf structure,
> just correct locations and line information.

Yes, It'd be good to have a setup to build SingleSource and MultiSource tests with debug info and run dwarfdump --verify on them.

-
Devang




More information about the llvm-dev mailing list