Skip to content

PDR v0.5.0

Latest

Choose a tag to compare

@graemeg graemeg released this 04 Dec 09:51

PDR (Pascal Debug Reference) 0.5.0: the OPDF debugger pdr and its Debug Adapter Protocol server pdr-dap.

Platforms

Archive Platform Notes
pdr-v0.5.0-macos-arm64.tar.gz macOS arm64 Mach adapter
pdr-v0.5.0-linux-x86_64.tar.gz Linux x86_64 ptrace; needs glibc 2.34 or later
pdr-v0.5.0-freebsd-x86_64.tar.gz FreeBSD 14 x86_64 ptrace

Windows is not supported yet.

Highlights since 0.3.1

  • Blaise programs. pdr debugs programs built by the Blaise compiler (--debug-opdf) as well as by an OPDF-capable FPC.
  • New platforms. macOS arm64 and FreeBSD x86_64 are supported, alongside Linux x86_64.
  • pdr-dap. A Debug Adapter Protocol server over stdio, for IDEs. It supports pause, a raised-exceptions filter, disconnect while paused, and an Arguments scope for a routine's parameters.
  • Threads. A breakpoint stops every thread of the program on all three platforms. On macOS, two threads trapping at once no longer hang the debugger or lose a hit.
  • Exceptions and runtime errors. pdr stops where a Blaise program raises, and where it ends with a runtime error (Runtime error <code>: <message> with its source location). This needs a program built by Blaise v0.16.2 or later.
  • Attach. Attaching to a running process applies the ASLR slide and sets the runtime hooks.
  • Stepping. Step into moves by source line through runtime helpers. Stepping over a routine's last line returns to the caller.
  • OPDF format version 2. Readers check the version.

Tests

The 40-program Blaise integration suite and the DAP integration suite pass on all three platforms, tested against Blaise master (the compiler that becomes v0.16.2). The macOS adapter suite passes 56/56.

pdr is built with FPC 3.2.2 or later and is licensed under BSD-3-Clause.