]> granicus.if.org Git - strace/commit
mpers.awk: add support for multidimensional arrays
authorEugene Syromyatnikov <evgsyr@gmail.com>
Tue, 4 Apr 2017 03:08:20 +0000 (05:08 +0200)
committerDmitry V. Levin <ldv@altlinux.org>
Tue, 4 Apr 2017 03:10:07 +0000 (03:10 +0000)
commit490b1caa52d066bec51b3c10e7ed81750f44966a
tree492efda8b6a560d6923e75f383ff8626c9e2d8dd
parenta12c6a014b43040b684f65d5879fa003b2131736
mpers.awk: add support for multidimensional arrays

* mpers.awk (update_upper_bound): New function, which maintains new "count"
property for storing total element count and updates "upper_bound"
property which now contains string with array dimensions.
(/^DW_AT_upper_bound/, /^DW_AT_count/): Use it.
(what_is) <case "array_type">: Use "count" property in order to calculate
returned_size, do not embody returned string in square brackets.
* mpers_test.sh: Add checks for multidimensional arrays.
mpers.awk
mpers_test.sh