~/talk

Improving Debuggability with GDB's Python API

Talkat C++Now 2018 · 2018-05-06..05-11· [python]
slides:none on file

Uses GDB Python API plus libclang to map the stopped file/line into AST cursors, enumerate calls and lambdas, and set temporary breakpoints so single-stepping skips library template internals and lands in user code. Adds frame filters to omit library frames and frame decorators to rewrite ugly template names in backtraces. Implements commands that create/delete breakpoints automatically, produces much shorter, readable stacks, and demonstrates the approach on std::sort with nested vectors of strings.

AI-written summary · about

  1. 0:00Introduction
  2. 0:16The problem with templated libraries
  3. 0:53Example
  4. 1:14Setting a breakpoint
  5. 1:54Using the Python API
  6. 3:43Frame decorators and frame filters
  7. 4:53Demo
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.