It appears with 3.2.2  the address of a global var in dwarf already contains the relocation. Since fpdebug, does not retrieve any relocation info from lldb, it does not adjust any addresses.

But with 3.3.1 it seems different.

https://forum.lazarus.freepascal.org/index.php?topic=58822.new#new

The test app has 2 global vars.
They can be inspected if compiled with 3.2.2.

But compile with 3.3.1 and fpdebug send the following to  lldb:
  memory read --force --size 1 --format x --count 4 1008
  memory read --force --size 1 --format x --count 4 1012
Looks like the offset within the exe, without relocation.

Was there an intentional change to introduce this?
_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel

Reply via email to