mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 03:33:20 +01:00
43da5c5beb
stepping, next'ing, finish'ing, stacktraces, source listings, etc. You can't print program variables yet though. Oh, and I lost my nice commented version of funccall.ll :( Test with: llvm-as funccall.ll llvm-db funccall.bc <arguments> This is not automatically testable yet, and the C front-end doesn't support debug information yet. That said, it's a start. llvm-svn: 10689
15 lines
110 B
C
15 lines
110 B
C
|
|
static int q;
|
|
|
|
void foo() {
|
|
int t = q;
|
|
q = t + 1;
|
|
}
|
|
int main() {
|
|
q = 0;
|
|
foo();
|
|
q = q - 1;
|
|
|
|
return q;
|
|
}
|