diff options
author | Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> | 2019-12-20 18:23:32 +0100 |
---|---|---|
committer | Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> | 2019-12-20 19:27:29 +0100 |
commit | d0922fcf02c6f60ca17cbddccd8b9c8f789eef8c (patch) | |
tree | b2686ddf77366db1c6a3646d22b687b2d27b3c88 /gdb/testsuite/gdb.cp/watch-cp.cc | |
parent | c855a9125ade61c046091373bafdae0c719118e0 (diff) | |
download | gdb-d0922fcf02c6f60ca17cbddccd8b9c8f789eef8c.zip gdb-d0922fcf02c6f60ca17cbddccd8b9c8f789eef8c.tar.gz gdb-d0922fcf02c6f60ca17cbddccd8b9c8f789eef8c.tar.bz2 |
Use enum bitfield for the calling_convention attribute of a subroutine
This is a refactoring. Instead of a plain unsigned value, use an enum
bitfield.
gdb/ChangeLog:
2019-12-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
* dwarf2read.c (is_valid_DW_AT_calling_convention_for_subroutine):
New function.
(read_subroutine_type): Validate the parsed
DW_AT_calling_convention value before assigning it to a
subroutine's calling_convention attribute.
* gdbtypes.h (struct func_type) <calling_convention>: Use
an enum bitfield as its type, instead of plain unsigned.
Change-Id: Ibc6b2f71e885cbc5c3c9d49734f7125acbfd1bcd
Diffstat (limited to 'gdb/testsuite/gdb.cp/watch-cp.cc')
0 files changed, 0 insertions, 0 deletions