Metadata-Version: 2.1
Name: gdb-call-lambda
Version: 0.0.1
Summary: Call C++ lambda functions from gdb
Home-page: UNKNOWN
Author: user202729
License: GNU General Public License v3 or later (GPLv3+)
Platform: UNKNOWN
Description-Content-Type: text/markdown

# gdb-call-lambda
Call C++ lambda functions from gdb.

## Install

* Install the Python package in somewhere Python can see.
* In .gdbinit add:

```
python import gdb_call_lambda
```

## Usage

Call a lambda like `printl f(x)`, where the `f` is the lambda.

I.e., call as usual, just replace `print` with `printl`.

The lambda expression (`f` in this case) must not have any `(` characters.

## How it works internally/what to do if it doesn't work

See post https://stackoverflow.com/a/70254108/5267751.

There's a known bug where gdb/tools can't demangle a symbol that gcc generates, see `B` in test.



