[PYTHON] json parse with gdb

Since python can be used with gdb, you can simply load the target string from the python side and parse it.

(gdb) python import json
(gdb) python print json.loads(gdb.selected_frame().read_var("s").string())

You can get an object called gdb.Value with read_var (variable name). Convert this object to a python string and json.loads.

Recommended Posts

json parse with gdb
[Python] Use JSON with Python
Debugging C / C ++ with gdb
Parse and visualize JSON (Web application ⑤ with Python + Flask)
Load nested json with pandas
POST json with Python3 script
Parse broken XML with lxml
Parse JSON file to object
Format json with Vim (with python)
Handle JSON files with Matlab
Read json data with python
[Introduction to Python] How to parse JSON
JSON encoding and decoding with python
Parse pcap data with tshark command
json
json
Merge JSON format data with Ansible
Read CSV file with python (Download & parse CSV file)
Convert Excel data to JSON with python
Reading and writing JSON files with Python
Convert array (struct) to json with golang