This is an archive of the discontinued LLVM Phabricator instance.

[LLDB][MIPS] Make register read/write to set/get the size of register according to abi.
ClosedPublic

Authored by slthakur on Jan 4 2016, 11:03 PM.

Details

Summary

For O32 abi register size should be 4 bytes.
For N32 and N64 abi register size should be 8 bytes.
This patch will make register read/write to set/get the size of register according to abi.

Diff Detail

Repository
rL LLVM

Event Timeline

slthakur updated this revision to Diff 43963.Jan 4 2016, 11:03 PM
slthakur retitled this revision from to [LLDB][MIPS] Make register read/write to set/get the size of register according to abi..
slthakur updated this object.
slthakur added reviewers: clayborg, tberghammer.
slthakur set the repository for this revision to rL LLVM.
slthakur added subscribers: jaydeep, bhushan, mohit.bhakkad and 2 others.
tberghammer accepted this revision.Jan 5 2016, 2:42 AM
tberghammer edited edge metadata.

Looks good

source/Plugins/Process/Linux/NativeRegisterContextLinux_mips64.cpp
1391

(nit): I would prefer to use the following syntax, but don't feel strongly about it:

(arch.GetFlags() & lldb_private::ArchSpec::eMIPSABI_O32) ? 4 : 8
This revision is now accepted and ready to land.Jan 5 2016, 2:42 AM
slthakur closed this revision.Jan 5 2016, 6:09 AM
slthakur marked an inline comment as done.

Committed in revision 256834