<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<p>FWIW, when TotalView reads the DWARF, there are no control characters in the strings.</p>
<p>Cheers, John D.<br>
</p>
<div class="moz-cite-prefix">On 3/15/24 13:12, Adrian Prantl wrote:<br>
</div>
<blockquote type="cite" cite="mid:00CCD6E3-A142-446F-B08F-5E4D1C583FC8@apple.com">
<br id="lineBreakAtBeginningOfMessage">
<div><br>
<blockquote type="cite">
<div>On Mar 15, 2024, at 9:22 AM, John DelSignore via Dwarf-discuss <a class="moz-txt-link-rfc2396E" href="mailto:dwarf-discuss@lists.dwarfstd.org">
<dwarf-discuss@lists.dwarfstd.org></a> wrote:</div>
<br class="Apple-interchange-newline">
<div>
<div>
<p>Thanks for looking at this. I sent a separate email with the object file attached directly to you.</p>
</div>
</div>
</blockquote>
</div>
<div>From my quick investigation the problem seems to be that gfortran uses a DW_FORM_string for the compile unit's name (rather than a DW_FORM_strp)</div>
<div><br>
</div>
<div>
<p style="margin: 0px; font-style: normal; font-variant-caps: normal; font-stretch: normal; font-size: 14px; line-height: normal; font-family: Menlo; font-size-adjust: none; font-kerning: auto; font-variant-alternates: normal; font-variant-ligatures: normal; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-position: normal; font-variant-emoji: normal; font-feature-settings: normal; font-optical-sizing: auto; font-variation-settings: normal;">
<span style="font-variant-ligatures: no-common-ligatures">              DW_AT_name [DW_FORM_string]       ("/nfs/homes/jdelsign/hello.c")</span></p>
<div><br>
</div>
<div>and ld might have an off-by-one error when decoding the FORM (that part is speculation on my end based on that dwarfdump can decode the string fine, but it could also be a bug in gfortran and dwarfdump skips the control character when printing).</div>
<div><br>
</div>
<div>-- adrian</div>
</div>
<br>
<br>
<br>
<div align="center">
<table class="MsoTableGrid" style="border-collapse:collapse;border:none" cellspacing="0" cellpadding="0" border="1">
<tbody>
<tr>
<td style="width:399.35pt;border:double #FFC000 1.5pt;background:#FFFBEF;padding:0in 5.4pt 0in 5.4pt" width="532" valign="top">
<p class="MsoNormal"><b><span style="color:#BF8F00">CAUTION:</span></b><span style="color:black"> This email originated from outside of the organization. Do not click on links or open attachments unless you recognize the sender and know the content is safe.</span></p>
</td>
</tr>
</tbody>
</table>
</div>
</blockquote>
<br>
<p><span style="font-size:8.0pt;color:#A6A6A6;font-style:italic">This e-mail may contain information that is privileged or confidential. If you are not the intended recipient, please delete the e-mail and any attachments and notify us immediately.</span></p>
<br>
</body>
</html>