This is an archive of the discontinued LLVM Phabricator instance.

Decide on the expression language inside UserExpression
ClosedPublic

Authored by spyffe on Sep 29 2015, 1:22 PM.

Details

Summary

When the target settings are consulted to decide the expression language is decided in CommandObjectExpression, this doesn't help if you're running SBFrame::EvaluateExpression().
Moving the logic into UserExpression fixes this.

Diff Detail

Repository
rL LLVM

Event Timeline

spyffe updated this revision to Diff 36029.Sep 29 2015, 1:22 PM
spyffe retitled this revision from to Decide on the expression language inside UserExpression.
spyffe updated this object.
spyffe added a reviewer: dawn.
spyffe added subscribers: jingham, clayborg.
spyffe added a subscriber: lldb-commits.
dawn accepted this revision.Sep 29 2015, 8:51 PM
dawn edited edge metadata.

Please apply requested changes, then it's good to commit. Thanks for fixing this!

source/Commands/CommandObjectExpression.cpp
306 ↗(On Diff #36029)

These lsat 6 lines can be just:

options.SetLanguage(m_command_options.language);
source/Expression/UserExpression.cpp
526 ↗(On Diff #36029)

nit pick: remove extra line :)

This revision is now accepted and ready to land.Sep 29 2015, 8:51 PM
This revision was automatically updated to reflect the committed changes.