Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds an option to Dexter that passes command line arguments to the debugged process, following (and in addition to) any arguments given by the DexCommandLine command. Differential Revision: https://reviews.llvm.org/D144979
- Loading branch information
Showing
6 changed files
with
45 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
cross-project-tests/debuginfo-tests/dexter/feature_tests/subtools/test/target_run_args.c
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
// The dbgeng driver doesn't support --target-run-args yet. | ||
// UNSUPPORTED: system-windows | ||
// | ||
// RUN: %dexter_regression_test --target-run-args "a b 'c d'" -- %s | FileCheck %s | ||
// CHECK: target_run_args.c: | ||
|
||
int main(int argc, const char **argv) { | ||
if (argc == 4) | ||
return 0; // DexLabel('retline') | ||
|
||
return 1; // DexUnreachable() | ||
} | ||
|
||
// DexExpectWatchValue('argc', '4', on_line=ref('retline')) | ||
// DexExpectWatchValue('argv[1][0]', "'a'", on_line=ref('retline')) |
16 changes: 16 additions & 0 deletions
16
...t-tests/debuginfo-tests/dexter/feature_tests/subtools/test/target_run_args_with_command.c
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
// The dbgeng driver doesn't support --target-run-args yet. | ||
// UNSUPPORTED: system-windows | ||
// | ||
// RUN: %dexter_regression_test --target-run-args "a b 'c d'" -- %s | FileCheck %s | ||
// CHECK: target_run_args_with_command.c: | ||
|
||
int main(int argc, const char **argv) { | ||
if (argc == 6) | ||
return 0; // DexLabel('retline') | ||
|
||
return 1; // DexUnreachable() | ||
} | ||
|
||
// DexCommandLine(['e', 'f']) | ||
// DexExpectWatchValue('argc', '6', on_line=ref('retline')) | ||
// DexExpectWatchValue('argv[1][0]', "'e'", on_line=ref('retline')) |