lightgui-debug: GdbSession over gdb -q -i=mi2 pipes with hand-written MI parser (mi.rs), settings/breakpoint/variable types, and the 44-check C++ harness ported as Rust tests (37 console + 7 GTK, gdb 17.1). lightgui-support: CodeTheme + C tokenizer/highlighter, FontSettings, CodeView fold/gutter/inspection widget, CMake project builder. Tests: debug 59/59, support 23/23 (incl. theme/font/cmake suites). cargo test clean, zero rustc warnings, clippy clean, cargo fmt clean.
13 lines
278 B
C++
13 lines
278 B
C++
// Debugger test target: never exits on its own (kill/restart tests).
|
|
// Compile with: g++ -g -O0 -o spin spin.cpp
|
|
#include <cstdio>
|
|
int main() {
|
|
volatile long n = 0;
|
|
std::printf("SPINNING\n");
|
|
std::fflush(stdout);
|
|
while (1) {
|
|
n++;
|
|
}
|
|
return 0;
|
|
}
|