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.
Alternatively, use the convenience function: print $calll(f, x)
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.
Metadata
Release files for gdb-call-lambda 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| gdb_call_lambda-0.0.2.tar.gz | 17.8 kB | Without provenance | Details for gdb_call_lambda-0.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| gdb_call_lambda-0.0.2-py3-none-any.whl | Python 3 | none | any | Details for gdb_call_lambda-0.0.2-py3-none-any.whl |
Total release size: 34.3 kB
Release files / gdb_call_lambda-0.0.2.tar.gz
| Download URL | gdb_call_lambda-0.0.2.tar.gz |
|---|---|
| Size | 17.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5ea5644cf7e8984b97b916d147764c00172e31607664622fb2fa83b8547aaff7
|
|
BLAKE2b-256 checksum How to use checksums |
7903348c283150a369ae5610e4f2c7dd5eaf8bfb9b41162418db87156f1e98b6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.6.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.5
|
Release files / gdb_call_lambda-0.0.2-py3-none-any.whl
| Download URL | gdb_call_lambda-0.0.2-py3-none-any.whl |
|---|---|
| Size | 16.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
cec00b9347971c3eeeb8382837b0519adade45433f29751b120a8cdc0d9eaea8
|
|
BLAKE2b-256 checksum How to use checksums |
ca787af11da539b97867a09028ea46098560449dd3ad4fa1b3dc76a357c8ad1e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.6.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.5
|
Security for gdb-call-lambda 0.0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.