[PATCH] D64544: [DWARF] Add more error handling to debug line parser.
    Paul Robinson via Phabricator via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Wed Jul 17 11:39:28 PDT 2019
    
    
  
probinson added a comment.
In D64544#1589926 <https://reviews.llvm.org/D64544#1589926>, @JDevlieghere wrote:
> How would you be able to emit a wrong form value for the MD5 hash from assembly? The directive (which I think you came up with?) is just `md5 [data]`? Deciding which form to emit is hard-coded in `MCDwarf`.
Only if you use the .file directive to emit it.  As David said, you can put whatever you want into a hand-coded .debug_line section.
See for example llvm/test/tools/llvm-dwarfdump/X86/Inputs/debug_line_malformed.s
CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D64544/new/
https://reviews.llvm.org/D64544
    
    
More information about the llvm-commits
mailing list