<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p>Hi All,</p>
<p>I have been working on some <b>serious</b> <span
class="moz-smiley-s12"><span>:-$</span></span> software
libraries that declare generic subprograms and classes. <br>
</p>
<p>While debugging these I noticed:<br>
</p>
<ol>
<li>When single-stepping, the line being highlighted in the editor
window is almost always (but not exclusively) one line <b>after</b>
the line which is about to be executed.</li>
<li>When the mouse hovers over a variable, the debugger (and
program being debugged) frequently crashes with the error:<br>
"-data-evaluate-expression TCQPiece(ITEM)^" did not return any
result.<br>
This is particularly annoying because it inevitably happens just
as I am getting close to finding a problem and I move the mouse
across the editor window <span class="moz-smiley-s15"><span>:'(</span></span>.<br>
</li>
</ol>
<p>These problems do not occur when debugging non-generic code.</p>
<p>I am currently using Linux Mint 18 on an Intel core-i5 processor
with gdb 7.11.1 (the Ubuntu version). IIRC, I have had similar
problems with Lazarus versions back as far as 1.2 and earlier
versions of Debian, but I never had major generic software to
debug until now.</p>
<p>I found reports of similar problems caused by line endings
(Windows vs. Unix). Is it possible that the code generated by
generic specialization does not observe the OS-specific line
endings and confuses gdb? This is beyond my abilities to fix.<br>
</p>
<p>Any suggestions and/or further speculations will be welcome <span
class="moz-smiley-s1"><span>:-)</span></span>.</p>
<p>Don Ziesig</p>
<p><br>
</p>
</body>
</html>