Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[mc] Fix bug when trying to handle DW_OP_regN in MC_dwarf_resolve_location
authorGabriel Corona <gabriel.corona@loria.fr>
Thu, 6 Mar 2014 12:25:38 +0000 (13:25 +0100)
committerGabriel Corona <gabriel.corona@loria.fr>
Thu, 6 Mar 2014 12:25:38 +0000 (13:25 +0100)
commitd317aaf1effb4c9cea4701cf83e0946fd0828b89
treeea3e38b3f47768a0c118a506e41d928b1bd80263
parent7ef55d47978f2f2ef20bd27c85881faa99147034
[mc] Fix bug when trying to handle DW_OP_regN in MC_dwarf_resolve_location

MC_dwarf_resolve_location is supposed to return the *address* of a
given variable. However, the DW_OP_regN returned the value of the
register and not an address address of a variable with its content.

It should be possible to get such an addresse (the registers are saved
on the stack) but the feature does not seem to be implemented in
libunwind.
src/mc/mc_dwarf.c