<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    I am not sure when this started. It is certainly happening with fpc
    3.0.4 and trunk. <br>
    I do not know if it worked with earlier versions, but afaik user
    complaints only started since Lazarus was released with 3.0.4<br>
    <br>
    - It happens with all versions of GDB. (So it is not something that
    changed in GDB, but may still be an issue in GDB / dont know)<br>
    - It only happens with 64 bit apps (I only tested on Windows).<br>
    <br>
    When stepping through code (Lazarus trunk / different code may be
    needed for other versions, but it happens fairly frequent, so any
    bigger project should do)<br>
    <br>
    procedure TForm1.FormCreate(Sender: TObject);<br>
    var<br>
      a: String;<br>
    begin<br>
      a := 'aa';   // breakpoint on this line<br>
      Caption := a;<br>
      Cascade;<br>
    end;<br>
    <br>
    Pressing F8 (step over) on Cascade, GDB will actually enter the
    function. GDB seems to believe that some part of the Cascade
    function is part of FormCreate.<br>
    <br>
    The following appears to fix it:<code class="bbc_code"><br>
      objcopy.exe -R .debug_frame  project1.exe  project1n.exe<br>
      <br>
      So there is something in debug_frame that upsets gdb.<br>
      <br>
      That is all I know. Any idea?<br>
      <br>
    </code>
  </body>
</html>