An example testcase for use in the debugger. Currently you can do stuff like

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.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10689 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner
2004-01-05 05:32:40 +00:00
parent 6d47bae50b
commit 94276b6f93
2 changed files with 82 additions and 0 deletions

14
test/Debugger/funccall.c Normal file
View File

@@ -0,0 +1,14 @@
static int q;
void foo() {
int t = q;
q = t + 1;
}
int main() {
q = 0;
foo();
q = q - 1;
return q;
}