Skip to content

Conversation

dkimitsa
Copy link
Contributor

@dkimitsa dkimitsa commented May 5, 2021

Root case: kotlin compiler now generate SMAP data in different format:

In KotlinDebug, they use 1#2,3:4 to mean "map lines 4..6 to line 1 of #2", when in reality (and i
the non-debug stratum) this maps lines 4..6 to lines 1..3. The correct syntax is 1#2:4,3.

In general now three formats are possible:

  • case 1: "$source#$fileId:$dest\n"
  • case 2: "$source#$fileId:$dest,$range"
  • case 3: "$source#$fileId,$range:$dest"

This PR adds support for all three formats

… Debugger

Root case: kotlin compiler now generate SMAP data in different format:
> In KotlinDebug, they use `1#2,3:4` to mean "map lines 4..6 to line 1 of MobiVM#2", when in reality (and i
> the non-debug stratum) this maps lines 4..6 to lines 1..3. The correct syntax is `1#2:4,3`.

In general now three formats are possible:
* case 1: "$source#$fileId:$dest\n"
* case 2: "$source#$fileId:$dest,$range"
* case 3: "$source#$fileId,$range:$dest"

This commit adds support for all three formats
@Tom-Ski Tom-Ski merged commit 1023327 into MobiVM:master May 11, 2021
@dkimitsa dkimitsa deleted the fix/kotlin_1.5_smap_parser branch May 12, 2021 18:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants