Skip to content

Commit 7f6d84b

Browse files
committedJan 10, 2014
Add the offset for cfa+offset log messages in the unwind channel, to aid in debugging.
llvm-svn: 198977
1 parent 1460e4b commit 7f6d84b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎lldb/source/Plugins/Process/Utility/RegisterContextLLDB.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -1201,7 +1201,7 @@ RegisterContextLLDB::SavedLocationForRegister (uint32_t lldb_regnum, lldb_privat
12011201
regloc.type = UnwindLLDB::RegisterLocation::eRegisterValueInferred;
12021202
regloc.location.inferred_value = m_cfa + offset;
12031203
m_registers[lldb_regnum] = regloc;
1204-
UnwindLogMsg ("supplying caller's register %d, value is CFA plus offset", lldb_regnum);
1204+
UnwindLogMsg ("supplying caller's register %d, value is CFA plus offset %d", lldb_regnum, offset);
12051205
return UnwindLLDB::RegisterSearchResult::eRegisterFound;
12061206
}
12071207

@@ -1211,7 +1211,7 @@ RegisterContextLLDB::SavedLocationForRegister (uint32_t lldb_regnum, lldb_privat
12111211
regloc.type = UnwindLLDB::RegisterLocation::eRegisterSavedAtMemoryLocation;
12121212
regloc.location.target_memory_location = m_cfa + offset;
12131213
m_registers[lldb_regnum] = regloc;
1214-
UnwindLogMsg ("supplying caller's register %d from the stack, saved at CFA plus offset", lldb_regnum);
1214+
UnwindLogMsg ("supplying caller's register %d from the stack, saved at CFA plus offset %d", lldb_regnum, offset);
12151215
return UnwindLLDB::RegisterSearchResult::eRegisterFound;
12161216
}
12171217

0 commit comments

Comments
 (0)
Please sign in to comment.