aboutsummaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@efficios.com>2023-01-06 11:15:32 -0500
committerSimon Marchi <simon.marchi@efficios.com>2023-01-26 14:31:33 -0500
commitfaee137249c8494e36d0170c0a57319113f54185 (patch)
tree593bac415360678ddb27fa77d085af060524ee44 /etc
parent4dde3b33e461e40e069c2026861b3e5ba2476604 (diff)
downloadgdb-faee137249c8494e36d0170c0a57319113f54185.zip
gdb-faee137249c8494e36d0170c0a57319113f54185.tar.gz
gdb-faee137249c8494e36d0170c0a57319113f54185.tar.bz2
gdb/testsuite/dap: pass around dicts instead of TON objects
The DAP helper functions generally return TON objects. However, callers almost all immediately use ton::2dict to convert them to dicts, to access their contents. This commits makes things a bit simpler for them by having function return dicts directly instead. The downside is that the TON objects contain type information. For instance, a "2" in a TCL dict could have been the integer 2 or the string "2" in JSON. By converting to TCL dicts, we lose that information. If some tests specifically want to check the types of some fields, I think we can add intermediary functions that return TON objects, without having to complicate other callers who don't care. Change-Id: I2ca47bea355bf459090bae8680c6a917350b5c3f
Diffstat (limited to 'etc')
0 files changed, 0 insertions, 0 deletions