Fix breakpoints in inline functions after dexing (KT-12896)

#KT-12896 In Progress
This commit is contained in:
Nikolay Krasko
2016-07-21 15:37:17 +03:00
parent 64979ae190
commit 5df7358dab
24 changed files with 289 additions and 27 deletions
@@ -0,0 +1,7 @@
LineBreakpoint created at dexManyFilesWithInlineCalls1.First.kt:5
!JDK_HOME!\bin\java -agentlib:jdwp=transport=dt_socket,address=!HOST_NAME!:!HOST_PORT!,suspend=y,server=n -Dfile.encoding=!FILE_ENCODING! -classpath !OUTPUT_PATH!;!KOTLIN_RUNTIME!;!CUSTOM_LIBRARY!;!RT_JAR! dexManyFilesWithInlineCalls1.DexManyFilesWithInlineCalls1Kt
Connected to the target VM, address: '!HOST_NAME!:PORT_NAME!', transport: 'socket'
dexManyFilesWithInlineCalls1.First.kt:5
Disconnected from the target VM, address: '!HOST_NAME!:PORT_NAME!', transport: 'socket'
Process finished with exit code 0
@@ -0,0 +1,7 @@
LineBreakpoint created at dexManyFilesWithInlineCalls2.Second.kt:5
!JDK_HOME!\bin\java -agentlib:jdwp=transport=dt_socket,address=!HOST_NAME!:!HOST_PORT!,suspend=y,server=n -Dfile.encoding=!FILE_ENCODING! -classpath !OUTPUT_PATH!;!KOTLIN_RUNTIME!;!CUSTOM_LIBRARY!;!RT_JAR! dexManyFilesWithInlineCalls2.DexManyFilesWithInlineCalls2Kt
Connected to the target VM, address: '!HOST_NAME!:PORT_NAME!', transport: 'socket'
dexManyFilesWithInlineCalls2.Second.kt:5
Disconnected from the target VM, address: '!HOST_NAME!:PORT_NAME!', transport: 'socket'
Process finished with exit code 0
@@ -0,0 +1,10 @@
LineBreakpoint created at dexSeveralInlineCallsFromOtherFile.Other.kt:6
LineBreakpoint created at dexSeveralInlineCallsFromOtherFile.kt:5
!JDK_HOME!\bin\java -agentlib:jdwp=transport=dt_socket,address=!HOST_NAME!:!HOST_PORT!,suspend=y,server=n -Dfile.encoding=!FILE_ENCODING! -classpath !OUTPUT_PATH!;!KOTLIN_RUNTIME!;!CUSTOM_LIBRARY!;!RT_JAR! dexSeveralInlineCallsFromOtherFile.DexSeveralInlineCallsFromOtherFileKt
Connected to the target VM, address: '!HOST_NAME!:PORT_NAME!', transport: 'socket'
dexSeveralInlineCallsFromOtherFile.kt:5
dexSeveralInlineCallsFromOtherFile.Other.kt:6
dexSeveralInlineCallsFromOtherFile.Other.kt:6
Disconnected from the target VM, address: '!HOST_NAME!:PORT_NAME!', transport: 'socket'
Process finished with exit code 0
@@ -0,0 +1,8 @@
LineBreakpoint created at dexStopInInlineFun.kt:10
!JDK_HOME!\bin\java -agentlib:jdwp=transport=dt_socket,address=!HOST_NAME!:!HOST_PORT!,suspend=y,server=n -Dfile.encoding=!FILE_ENCODING! -classpath !OUTPUT_PATH!;!KOTLIN_RUNTIME!;!CUSTOM_LIBRARY!;!RT_JAR! dexStopInInlineFun.DexStopInInlineFunKt
Connected to the target VM, address: '!HOST_NAME!:PORT_NAME!', transport: 'socket'
dexStopInInlineFun.kt:10
dexStopInInlineFun.kt:11
Disconnected from the target VM, address: '!HOST_NAME!:PORT_NAME!', transport: 'socket'
Process finished with exit code 0
@@ -0,0 +1,8 @@
LineBreakpoint created at dexStopInInlineInOtherFile.Other.kt:6
!JDK_HOME!\bin\java -agentlib:jdwp=transport=dt_socket,address=!HOST_NAME!:!HOST_PORT!,suspend=y,server=n -Dfile.encoding=!FILE_ENCODING! -classpath !OUTPUT_PATH!;!KOTLIN_RUNTIME!;!CUSTOM_LIBRARY!;!RT_JAR! dexStopInInlineInOtherFile.DexStopInInlineInOtherFileKt
Connected to the target VM, address: '!HOST_NAME!:PORT_NAME!', transport: 'socket'
dexStopInInlineInOtherFile.Other.kt:6
dexStopInInlineInOtherFile.Other.kt:7
Disconnected from the target VM, address: '!HOST_NAME!:PORT_NAME!', transport: 'socket'
Process finished with exit code 0
@@ -0,0 +1,6 @@
package dexManyFilesWithInlineCalls1.first
inline fun firstInline() {
// Breakpoint 1
1 + 1
}
@@ -0,0 +1,5 @@
package dexManyFilesWithInlineCalls1.second
inline fun secondInline() {
1 + 1
}
@@ -0,0 +1,14 @@
package dexManyFilesWithInlineCalls1
import dexManyFilesWithInlineCalls1.first.*
import dexManyFilesWithInlineCalls1.second.*
fun main(args: Array<String>) {
firstInline()
}
fun unused() {
secondInline()
}
// ADDITIONAL_BREAKPOINT: dexManyFilesWithInlineCalls1.First.kt: Breakpoint 1
@@ -0,0 +1,5 @@
package dexManyFilesWithInlineCalls2.first
inline fun firstInline() {
1 + 1
}
@@ -0,0 +1,6 @@
package dexManyFilesWithInlineCalls2.second
inline fun secondInline() {
// Breakpoint 1
1 + 1
}
@@ -0,0 +1,14 @@
package dexManyFilesWithInlineCalls2
import dexManyFilesWithInlineCalls2.first.*
import dexManyFilesWithInlineCalls2.second.*
fun main(args: Array<String>) {
secondInline()
}
fun unused() {
firstInline()
}
// ADDITIONAL_BREAKPOINT: dexManyFilesWithInlineCalls2.Second.kt: Breakpoint 1
@@ -0,0 +1,8 @@
package dexSeveralInlineCallsFromOtherFile
inline fun inlineFun() {
var i = 1
// Breakpoint 1
i++
i++
}
@@ -0,0 +1,18 @@
package dexSeveralInlineCallsFromOtherFile
fun main(args: Array<String>) {
//Breakpoint!
firstCall()
secondCall()
}
fun firstCall() {
inlineFun()
}
fun secondCall() {
inlineFun()
}
// RESUME: 2
// ADDITIONAL_BREAKPOINT: dexSeveralInlineCallsFromOtherFile.Other.kt: Breakpoint 1
@@ -0,0 +1,12 @@
package dexStopInInlineFun
fun main(args: Array<String>) {
inlineFun()
}
inline fun inlineFun() {
var i = 1
//Breakpoint!
i++
i++
}
@@ -0,0 +1,8 @@
package dexStopInInlineInOtherFile
inline fun inlineFun() {
var i = 1
// Breakpoint 1
i++
i++
}
@@ -0,0 +1,7 @@
package dexStopInInlineInOtherFile
fun main(args: Array<String>) {
inlineFun()
}
// ADDITIONAL_BREAKPOINT: dexStopInInlineInOtherFile.Other.kt: Breakpoint 1