Add DW_TAG_GNU_call_site* for better tail-call debug descriptions.
authorSeth LaForge <seth@ridemission.com>
Thu, 3 Dec 2015 04:40:56 +0000 (20:40 -0800)
committerSeth LaForge <sethml@google.com>
Thu, 10 Dec 2015 18:42:57 +0000 (10:42 -0800)
commit66ddce49d92ddaab94dba269ca5661367dc9f925
tree0bcc1565da6459129ec4a6f76116c4b0be621d53
parented2a80d23248c1330862290f84942d5a69773adb
Add DW_TAG_GNU_call_site* for better tail-call debug descriptions.

This comes up for functions which have tail-calls optimized.
Describe location list for DW_AT_GNU_call_site_* to match readelf.
Add test elf file to demonstrate that we match readelf for DW_AT_GNU_call_site_*. C source is:
  extern int f2(int a, char b);
  extern char var;
  int f1(void) { return f2(666, var); }
elftools/dwarf/descriptions.py
elftools/dwarf/enums.py
test/testfiles_for_readelf/gcc_tailcall.o.elf [new file with mode: 0644]