Fixing an issue where ValueObject::GetPointeeData() would not work correctly for file addresses when fetching items other than the 0-th

llvm-svn: 161384
This commit is contained in:
Enrico Granata 2012-08-07 01:49:34 +00:00
parent cd4ae1ab94
commit 9c2efe39c0
1 changed files with 1 additions and 0 deletions

View File

@ -843,6 +843,7 @@ ValueObject::GetPointeeData (DataExtractor& data,
ModuleSP module_sp (GetModule());
if (module_sp)
{
addr = addr + offset;
Address so_addr;
module_sp->ResolveFileAddress(addr, so_addr);
ExecutionContext exe_ctx (GetExecutionContextRef());