-
Notifications
You must be signed in to change notification settings - Fork 6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enable ethdebug debug info and output selection via standard-json.
- Loading branch information
Showing
22 changed files
with
103 additions
and
45 deletions.
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
32 changes: 0 additions & 32 deletions
32
test/cmdlineTests/standard_debug_info_ethdebug_no_ir/output.json
This file was deleted.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions
4
...dard_debug_info_ethdebug_no_ir/input.json → ...n_yul_ethdebug_output_ethdebug/input.json
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 |
---|---|---|
@@ -1,12 +1,12 @@ | ||
{ | ||
"language": "Solidity", | ||
"sources": { | ||
"C": {"urls": ["standard_debug_info_ethdebug_no_ir/in.sol"]} | ||
"C": {"urls": ["standard_debug_info_in_yul_ethdebug_output_ethdebug/in.sol"]} | ||
}, | ||
"settings": { | ||
"debug": {"debugInfo": ["ethdebug"]}, | ||
"outputSelection": { | ||
"*": {"*": ["evm.bytecode"]} | ||
"*": {"*": ["ethdebug", "metadata"]} | ||
} | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
test/cmdlineTests/standard_debug_info_in_yul_ethdebug_output_ethdebug/output.json
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,14 @@ | ||
{ | ||
"contracts": { | ||
"C": { | ||
"C": { | ||
"metadata": "{\"compiler\":{\"version\":\"<VERSION REMOVED>\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[],\"name\":\"f\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"C\":\"C\"},\"evmVersion\":\"cancun\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":false,\"runs\":200},\"remappings\":[],\"viaIR\":true},\"sources\":{\"C\":{\"keccak256\":\"0xd664727da2d62b6156845f13be0ecb2d8d8223c0f736d39575a3bdfbb062c320\",\"license\":\"GPL-2.0\",\"urls\":[\"bzz-raw://470d51a492c4368fac9c29ebb491b0eaa1bc8a660445a014276dc686531742b8\",\"dweb:/ipfs/QmVVnjC3Z35AXGo3GUNPMuKBD2MdFcZxhVg1qHi4fmHzKo\"]}},\"version\":1}" | ||
} | ||
} | ||
}, | ||
"sources": { | ||
"C": { | ||
"id": 0 | ||
} | ||
} | ||
} |
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...ard_debug_info_in_yul_ethdebug/input.json → ...info_in_yul_ethdebug_output_ir/input.json
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...info_in_yul_ethdebug_optimized/input.json → ...l_ethdebug_output_ir_optimized/input.json
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
File renamed without changes.
1 change: 1 addition & 0 deletions
1
test/cmdlineTests/standard_debug_info_in_yul_ethdebug_output_no_ir/args
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 @@ | ||
--allow-paths . |
6 changes: 6 additions & 0 deletions
6
test/cmdlineTests/standard_debug_info_in_yul_ethdebug_output_no_ir/in.sol
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,6 @@ | ||
// SPDX-License-Identifier: GPL-2.0 | ||
pragma solidity >=0.0; | ||
|
||
contract C { | ||
function f() public {} | ||
} |
9 changes: 9 additions & 0 deletions
9
test/cmdlineTests/standard_debug_info_in_yul_ethdebug_output_no_ir/input.json
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,9 @@ | ||
{ | ||
"language": "Solidity", | ||
"sources": { | ||
"C": {"urls": ["standard_debug_info_in_yul_ethdebug_output_no_ir/in.sol"]} | ||
}, | ||
"settings": { | ||
"debug": {"debugInfo": ["ethdebug"]} | ||
} | ||
} |
16 changes: 16 additions & 0 deletions
16
test/cmdlineTests/standard_debug_info_in_yul_ethdebug_output_no_ir/output.json
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 @@ | ||
{ | ||
"errors": [ | ||
{ | ||
"component": "general", | ||
"formattedMessage": "'ethdebug' can only be selected in 'settings.debug.debugInfo' when either an IR output or 'ethdebug' was selected as output.", | ||
"message": "'ethdebug' can only be selected in 'settings.debug.debugInfo' when either an IR output or 'ethdebug' was selected as output.", | ||
"severity": "error", | ||
"type": "FatalError" | ||
} | ||
], | ||
"sources": { | ||
"C": { | ||
"id": 0 | ||
} | ||
} | ||
} |
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 @@ | ||
--allow-paths . |
6 changes: 6 additions & 0 deletions
6
test/cmdlineTests/standard_ethdebug_output_enables_via_ir/in.sol
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,6 @@ | ||
// SPDX-License-Identifier: GPL-2.0 | ||
pragma solidity >=0.0; | ||
|
||
contract C { | ||
function f() public {} | ||
} |
11 changes: 11 additions & 0 deletions
11
test/cmdlineTests/standard_ethdebug_output_enables_via_ir/input.json
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,11 @@ | ||
{ | ||
"language": "Solidity", | ||
"sources": { | ||
"C": {"urls": ["standard_ethdebug_output_enables_via_ir/in.sol"]} | ||
}, | ||
"settings": { | ||
"outputSelection": { | ||
"*": {"*": ["ethdebug", "metadata"]} | ||
} | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
test/cmdlineTests/standard_ethdebug_output_enables_via_ir/output.json
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,14 @@ | ||
{ | ||
"contracts": { | ||
"C": { | ||
"C": { | ||
"metadata": "{\"compiler\":{\"version\":\"<VERSION REMOVED>\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[],\"name\":\"f\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"C\":\"C\"},\"evmVersion\":\"cancun\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":false,\"runs\":200},\"remappings\":[],\"viaIR\":true},\"sources\":{\"C\":{\"keccak256\":\"0xd664727da2d62b6156845f13be0ecb2d8d8223c0f736d39575a3bdfbb062c320\",\"license\":\"GPL-2.0\",\"urls\":[\"bzz-raw://470d51a492c4368fac9c29ebb491b0eaa1bc8a660445a014276dc686531742b8\",\"dweb:/ipfs/QmVVnjC3Z35AXGo3GUNPMuKBD2MdFcZxhVg1qHi4fmHzKo\"]}},\"version\":1}" | ||
} | ||
} | ||
}, | ||
"sources": { | ||
"C": { | ||
"id": 0 | ||
} | ||
} | ||
} |