This is an archive of the discontinued LLVM Phabricator instance.

Fix swig interface for SBTarget.Launch
Needs ReviewPublic

Authored by zephyr on Oct 20 2014, 11:11 PM.
This revision needs review, but there are no reviewers specified.

Details

Reviewers
None
Summary
Launch has two overloaded versions. One version has list type, which
cannot be handled properly by swig.

This patch renames Launch(SBLaunchInfo&, SBError&) to Launch2.

Diff Detail

Event Timeline

zephyr updated this revision to Diff 15166.Oct 20 2014, 11:11 PM
zephyr retitled this revision from to Fix swig interface for SBTarget.Launch.
zephyr updated this object.
zephyr edited the test plan for this revision. (Show Details)
zephyr added a subscriber: Unknown Object (MLST).
mg11 added a subscriber: mg11.Oct 21 2014, 12:51 AM

Two initial comments:

  1. applying the diff failed for me:

$ patch -p0 <D5878.diff
patching file scripts/Python/interface/SBTarget.i
Hunk #1 succeeded at 279 with fuzz 2 (offset -146 lines).
patching file test/api/multiple-debuggers/multi-process-driver.cpp
patching file test/python_api/event/TestEvents.py
Hunk #1 FAILED at 161.
Hunk #2 FAILED at 229.
2 out of 2 hunks FAILED -- saving rejects to file test/python_api/event/TestEvents.py.rej
patching file test/python_api/process/io/TestProcessIO.py
patching file test/python_api/target/TestTargetAPI.py

Could you re generate this diff please?

  1. Could you use a more descriptive name than Launch2 please?

I didn't see Enrico's comment show up in this reviews.llvm.org record - but is this change still needed after his fix in r220306?

I didn't see Enrico's comment show up in this reviews.llvm.org record - but is this change still needed after his fix in r220306?

Hopefully not. The original repro case worked for me after landing r220306

Hi Enrico,

You patch is the right fix. I works for me.

Thanks!