Details
-
Wish
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
Description
One common issue when using gdb with Arrow is that it's non-trivial to explore and display Arrow data and metadata using built-in gdb functionality. One usually needs lots of hand typing of expressions.
One way to alleviate this would be to write a gdb plugin giving a higher-level view of Arrow C++ objects. This should be possible using the gdb Python API (though not trivial):
https://sourceware.org/gdb/current/onlinedocs/gdb/Python.html#Python
A simple example:
https://github.com/nlohmann/json/tree/develop/third_party/gdb_pretty_printer
A sophisticated example of this is the gdb plugin for Python itself:
https://github.com/python/cpython/blob/main/Tools/gdb/libpython.py
Related:
https://interrupt.memfault.com/blog/gdbundle-plugin-manager
https://github.com/memfault/gdbundle
Attachments
Issue Links
- is depended upon by
-
ARROW-15389 [C++][Dev] Improve Array preview in GDB plugin
- Resolved
-
ARROW-15390 [Doc][C++] Write documentation about the GDB plugin
- Resolved
- is related to
-
ARROW-11348 [C++] Add pretty printing support for gdb
- Closed
- supercedes
-
ARROW-11348 [C++] Add pretty printing support for gdb
- Closed
- links to