wrong dwarf2 offset when setting breakpoint outside the main source
Original Reporter info from Mantis: Chaotikmind
-
Reporter name: Leteur Alix
Original Reporter info from Mantis: Chaotikmind
- Reporter name: Leteur Alix
Description:
by relocating the imagebase i was able to debug win64 executable (option -WB400000)
(with gdb 7.1.50.20100411)
if i try to put a breakpoint in code inside a unit i get wrong dwarf offset
otherwise it works
Inside main project :
<-break-insert -f project1.lpr:16>
^done,bkpt={number="27",type="breakpoint",disp="keep",enabled="y",addr="0x00000000004028e4",func="main",file="project1.lpr",fullname="C:/LazProj/TestProj/project1.lpr",line="16",times="0",original-location="project1.lpr:16"}
Inside unit :
<-break-insert -f unit1.pas:37>
^error,msg="invalid dwarf2 offset 6469097"
i guess i don't need to say it's awful to debug in those conditions ;)
Steps to reproduce:
use any project and set breakpoint inside(works), and inside any unit(doesn't).
Additional information:
target was "x86_64-win64"
Mantis conversion info:
- Mantis ID: 16297
- OS: win64
- OS Build: sp2
- Build: svn 15153
- Platform: windows
- Monitored by: » develyoy (Stijn Sanders)