Call C++ lambda functions from gdb
Project description
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
gdb_call_lambda-0.0.0.tar.gz
(17.0 kB
view hashes)
Built Distribution
Close
Hashes for gdb_call_lambda-0.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 86d190e4a38d774b79a058e935b134d8de4097c5d953b6364e80858f4bc9467b |
|
MD5 | aed8ec3973849fa44b312ae9f79c3763 |
|
BLAKE2b-256 | 1e99058318697da7a9b9bf5daa6d678f0b8793e677fa90f1453cd7776c236058 |