mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-05 13:26:55 +00:00
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:
14
test/Debugger/funccall.c
Normal file
14
test/Debugger/funccall.c
Normal 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;
|
||||
}
|
Reference in New Issue
Block a user