Re: [PATCH] Fix 22546: dwarf_aggregate_size() works with multi-dimensional arrays

2017-12-12 Thread Mark Wielaard
On Mon, 2017-12-11 at 21:57 -0800, Dima Kogan wrote: > If we have a multidimensional array of dimensions (a,b,c) the number of > elements > should be a*b*c, but prior to this patch dwarf_aggregate_size() would report > a+b+c instead. > > This patch fixes the bug and adds a test that demonstrates

[PATCH] Fix 22546: dwarf_aggregate_size() works with multi-dimensional arrays

2017-12-11 Thread Dima Kogan
This fixes https://sourceware.org/bugzilla/show_bug.cgi?id=22546 >From 5f65148409fa08613f21280c5aea026d8b78366f Mon Sep 17 00:00:00 2001 From: Dima Kogan Date: Fri, 8 Dec 2017 01:45:10 -0800 Subject: [PATCH] libdw: dwarf_aggregate_size() works with multi-dimensional arrays If we have a multidi