pushed: [RFA/DWARF] Add array DW_AT_bit_stride and DW_AT_byte_stride support
Joel Brobecker
brobecker@adacore.com
Wed Feb 26 14:35:00 GMT 2014
Attached is the patch I ended up pushing. Many thanks to MarkW for
his insightful comments.
gdb/ChangeLog:
* gdbtypes.h (create_array_type_with_stride): Add declaration.
* gdbtypes.c (create_array_type_with_stride): New function,
renaming create_array_type, but with an added parameter
called "bit_stride".
(create_array_type): Re-implement using
create_array_type_with_stride.
* dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
and DW_AT_bit_stride attributes.
gdb/testsuite/ChangeLog:
* gdb.dwarf2/arr-stride.c: New file.
* gdb.dwarf2/arr-stride.exp: New file.
--
Joel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-DWARF-Add-array-DW_AT_bit_stride-and-DW_AT_byte_stri.patch
Type: text/x-diff
Size: 13655 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/gdb-patches/attachments/20140226/87a17170/attachment.bin>
More information about the Gdb-patches
mailing list