Assembler window is empty and "Cannot access memory at address <x>".
Original Reporter info from Mantis: Cyrax
-
Reporter name:
Original Reporter info from Mantis: Cyrax
- Reporter name:
Description:
When debugging a simple console program, Assembler Window can't display disassembly at the start of main program.
Debug output window will display these error lines :
&LtPos;-data-disassemble -s 134516676 -e 134516677 -- 0> ^error,msg="Cannot access memory at address 0x8048fc4" (gdb) &LtPos;-data-disassemble -s 134516560 -e 134517088 -- 0> ^error,msg="Cannot access memory at address 0x8048f50" (gdb) &LtPos;-data-disassemble -s 134516380 -e 134516381 -- 0> ^error,msg="Cannot access memory at address 0x8048e9c" (gdb) &LtPos;-data-disassemble -s 134516264 -e 134516560 -- 0> ^error,msg="Cannot access memory at address 0x8048e28" (gdb) &LtPos;-data-disassemble -s 134516676 -e 134516677 -- 0> ^error,msg="Cannot access memory at address 0x8048fc4" (gdb) &LtPos;-data-disassemble -s 134516560 -e 134517088 -- 0> ^error,msg="Cannot access memory at address 0x8048f50" (gdb) &LtPos;-data-disassemble -s 134516380 -e 134516381 -- 0> ^error,msg="Cannot access memory at address 0x8048e9c" (gdb)
Only when stepping into subroutine at the different unit, Assembler Window will display correct disassembly. And when going back to main program, Assembler Window will show nothing.
This bad behaviour will disappear when adding additional clauses to the main program.
Steps to reproduce:
Attached test project (project1.zip) will demonstrate this problem. It will disappear, when you enable the define DEBUG_PADDING at the main source.
Additional information:
This was tested by building the attached test project as an 32-bit program on top 64-bit Arch Linux and debugging it via 32-bit Lazarus.
Attached extra files which are debug log from Lazarus and output from Debug output window (debug info.zip) and main program and unit1 assembler files.
----
I have FPC 3.3.1-r39935 and Lazarus 2.1.0 r59300.
Mantis conversion info:
- Mantis ID: 34430
- OS: Arch
- OS Build: 3.17.4-1
- Build: 59300
- Platform: Linux x86_64
- Version: 2.1 (SVN)