On Sat, Feb 4, 2023 at 5:28 PM Ed Catmur wrote: > This patch adds support for DW_TAG_GNU_formal_parameter_pack and > DW_TAG_GNU_template_parameter_pack, added to DWARF in March 2009 for > C++11 variadic templates[1]. > > They are not currently emitted thanks to a typo[2] but the fix is > trivial[3] and has been repeatedly submitted[4] to gcc; I'm not sure > what else I can do to get it accepted; regardless, anyone building their > own compiler can still make use of this. > > This implementation synthesizes type and parameter names as T#n, p#n > e.g. Args#1, args#1. This is a pretty simple approach but it seems to > work OK and is compatible with the old style type and parameter names > emitted by old versions of gcc and when it's writing stabs+ format, > meaning that any debugger scripts will continue to work. > > 1. http://wiki.dwarfstd.org/index.php?title=C%2B%2B0x:_Variadic_templates > 2. https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70536 > 3. https://github.com/ecatmur/gcc/pull/5 > 4. https://gcc.gnu.org/pipermail/gcc-patches/2023-January/609659.html > PR. https://sourceware.org/bugzilla/show_bug.cgi?id=17272 > --- > I think this should be accepted. >