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