<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
<title></title>
</head>
<body text="#000000" bgcolor="#ffffff">
On 4/29/2011 9:41 AM, Steve Schveighoffer wrote:
<blockquote cite="mid:898043.81420.qm@web161710.mail.bf1.yahoo.com"
type="cite">
<div style="color: rgb(0, 0, 0); background-color: rgb(255, 255,
255); font-family: arial,helvetica,sans-serif; font-size: 12pt;">
<div><span>I'll mention that I just was debugging some stuff in
Linux for dcollections, and the line numbers for the unit
tests given by gdb were off by a couple of lines (I had the
same feelings you are having, how is this possible). That
was just inside the unit tests. In the actual code, the
line numbers were correct. What's more, when I would step
over lines in gdb, the program would jump *back* some lines
when there was no loop in the code.</span></div>
<div><br>
<span></span></div>
<div><span>I wouldn't trust that GDB is giving you accurate
info.<br>
</span></div>
<div><br>
<span></span></div>
<div><span>My recommendation -- try using writeln debugging if
possible.</span></div>
<div><br>
<span></span></div>
<div><span>-Steve<br>
</span></div>
<br>
</div>
</blockquote>
<br>
Actually, it looks like a case of function pointers getting
corrupted and pointing to places they shouldn't. The reason they
point to the code segment at all is because only the low order bits
are getting corrupted, so they land in the same general area as
they're supposed to.<br>
</body>
</html>