Skip to content
github-actions[bot] edited this page Dec 6, 2026 · 18 revisions

GridLock Documentation Wiki (v0.14.0)

Welcome to the GridLock documentation wiki, organized by reader goal and synchronized automatically from docs/ on master.

GridLock Workspace Overview

Getting Started & Tutorials

  • Installation and Building: Linux dependencies (Arch, Ubuntu/Debian, Fedora), standalone AppImages on Wayland and X11, Meson/Ninja builds, and CLI flags.
  • Quickstart and Workflows: Launching local MPI jobs, attaching to running MPI processes (Ctrl+Alt+P), debugging qemu-user and gdbserver targets, and importing #SBATCH scripts.
  • Tutorials Walkthrough: Step-by-step C++ MPI debugging exercises for all 8 showcase programs and 5 auxiliary demos in tutorial/.
  • Hybrid MPI + OpenMP Fortran Tutorial: Compiling Fortran 90/2008 + OpenMP + MPI with DWARF symbols, navigating ranks and OpenMP threads, scheduler-locking, 1-based slices, and diagnosing barrier stalls.

Debugging Workflows (How-To Guides)

  • User Manual: UI and Debugging: Perspectives (Alt+1..3, Alt+8), native PieceTable + Tree-sitter editor, Search Everywhere, execution controls, symbolic/logpoint breakpoints, signals/catchpoints (Ctrl+Alt+S), and checkpoints (Ctrl+Alt+K).
  • View Modes and Central Workspace Layout: Reference matrix for SOURCE, SPLIT, CFG / ASM, DECOMPILER, and BINARY modes, splitter ratio persistence, and automatic sourceless frame transitions.
  • Build Diagnostics and Find in Files: Unified bottom Build diagnostics splitter (Ctrl+B) and atomic workspace Find in Files (Ctrl+Shift+F / Ctrl+Shift+H).
  • Server Rack View: Triaging stalled multi-rank runs, filtering large rank counts, navigating active rank cards, and per-rank context actions.
  • MPI Diagnostics and HPC Analysis: Diagnosing MPI deadlocks and collective mismatches, isolating stragglers with the STAT-style Merged Parallel Stack Tree, comparing divergent values across ranks, and managing OpenMP threads.
  • OpenMP Logical Region, Task & Barrier Inspector (OMPD): Inspecting logical Parallel Region -> Team -> OMP Thread hierarchies via libompd.so (or GDB/LLDB fallback), tracing omp task creation backtraces, and collapsing runtime frames (Hide OMP).
  • Memory, Reverse Engineering, and Profiling: Memory diffing and export, heap/smaps profiling, Programmer's Calculator (Ctrl+Alt+C), Array & Field Plotter (Ctrl+Alt+G), Pointer Graph, 2D CFG + Decompiler, and Registers.
  • Struct Layout, Cache-Line Inspector & Typed Memory Overlays: Inspecting DWARF byte offsets, padding holes, 64-byte cache-line straddles, greedy struct packing, and (StructType*)0x... overlays in Memory View.
  • Reference Manual and Package Manager Search: Offline Zeal/Dash .docset lookup, built-in MPI/x86-64/GDB cards, live man pages, and multi-backend HPC package search (spack, dnf, pacman, apt, zypper, eb).

Customization & Reference

  • Configuration and Customization: Switching across 19 curated dark and light themes, customizing the main toolbar, rebinding shortcuts, and managing config.toml / .gridlock/settings.toml.
  • Vim Modal Editing: Opt-in editor.vim_mode (gl.editor.vim_mode), counted UTF-8 motions, composable operators, registers, AST-aware text objects (if/af, ic/ac, il/al), . dot-repeat, q/@ macros, Ctrl+V Visual Block, and : Ex commands.
  • Keyboard Shortcuts and Quick Reference: Scannable lookup tables for stepping, Search Everywhere, floating tools, breakpoints, GDB console, and CFG navigation.
  • GDB Reference & Cheat Sheet: Concise GDB command reference mapped to GridLock's UI and console workflows alongside official GNU GDB documentation.
  • Screenshot Gallery: Visual tour of GridLock's Debug/Binary/MPI perspectives, themes, 2D CFG + Decompiler, Array Plotter, Pointer Graph, and Memory Profiler.
  • Engineering Roadmap: Completed v0.14.0 deliverables and planned pre-v1.0.0 target milestones (v0.14.0).

Extending & Contributing (Architecture & Plugins)

  • Using Plugins in GridLock: Installing .so plugins and init.lua scripts, --config-dir sandboxing, plugins.toml sync, and workspace SHA-256 trust.
  • Plugin API v2.0 Hub: Quick-decision matrix (Lua/LuaJIT vs. C99 vs. C++23), lifecycle diagram, --verify-plugin CI gate, and live Plugin Playground.
  • C99 ABI v2.0 Reference: Zero-core-linkage C99 vtable (0x00020000u), 8 modular sub-tables, plugin.map symbol hiding, and thread-safety guarantees.
  • C++23 Plugin Guide: extern "C" / noexcept exception firewalls, std::expected / RAII helpers, domain_mesh_probe walkthrough, and Meson/CMake recipes.
  • Lua / LuaJIT gl.* API: init.lua & offline LuaRocks, watchdog/sandbox model, gl.dbg.eval & gl.dbg.add_breakpoint tracepoints, async GDB/MI inspection, and retained-mode 2D canvases & heatmaps.
  • Plugin Architecture & Lifecycle: PluginHostBridge + IPluginSubsystem ownership, direct BufferEngine + AnchorStore binding, RTLD_GLOBAL, PluginVerifier, and PluginInstaller.
  • Developer Architecture and Testing: System architecture diagrams, native PieceTable + Tree-sitter editor layout, CLI reference, Graphify AST graph, and all 63 Meson test suites.

Clone this wiki locally