This is an archive of the discontinued LLVM Phabricator instance.

[NativeProcessLinux] Refactor PtraceWrapper
ClosedPublic

Authored by labath on Jun 29 2015, 9:46 AM.

Details

Summary

This changes PtraceWrapper to return an Error, while the actual result is in an pointer parameter
(instead of the other way around). This arrangement makes a lot of the code much simpler.

Diff Detail

Repository
rL LLVM

Event Timeline

labath updated this revision to Diff 28681.Jun 29 2015, 9:46 AM
labath retitled this revision from to [NativeProcessLinux] Refactor PtraceWrapper.
labath updated this object.
labath edited the test plan for this revision. (Show Details)
labath added reviewers: chaoren, mohit.bhakkad.
labath added a subscriber: Unknown Object (MLST).
chaoren added inline comments.Jun 29 2015, 9:59 AM
source/Plugins/Process/Linux/NativeProcessLinux.h
145 ↗(On Diff #28681)

It seems like every argument besides req could use a default. (0 or nullptr).

labath updated this revision to Diff 28768.Jun 30 2015, 4:11 AM

Add default values.

chaoren accepted this revision.Jun 30 2015, 9:51 AM
chaoren edited edge metadata.

LGTM.

This revision is now accepted and ready to land.Jun 30 2015, 9:51 AM
This revision was automatically updated to reflect the committed changes.