This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[review] gdb: recognize new DWARF attributes: defaulted, deleted, calling conv.
- From: "Tom Tromey (Code Review)" <gerrit at gnutoolchain-gerrit dot osci dot io>
- To: Tankut Baris Aktemur <tankut dot baris dot aktemur at intel dot com>, gdb-patches at sourceware dot org
- Cc: Andrew Burgess <andrew dot burgess at embecosm dot com>
- Date: Wed, 23 Oct 2019 10:31:06 -0400
- Subject: [review] gdb: recognize new DWARF attributes: defaulted, deleted, calling conv.
- Auto-submitted: auto-generated
- References: <gerrit.1571406803000.I54192f363115b78ec7435a8563b73fcace420765@gnutoolchain-gerrit.osci.io>
- Reply-to: tromey at sourceware dot org, tankut dot baris dot aktemur at intel dot com, andrew dot burgess at embecosm dot com, gdb-patches at sourceware dot org
Tom Tromey has posted comments on this change.
Change URL: https://gnutoolchain-gerrit.osci.io/r/c/binutils-gdb/+/135
......................................................................
Patch Set 1:
(2 comments)
Thank you for the patch. This looks essentially good to me. I had a couple of nits,
related to structure packing and size.
I assume this is used elsewhere in your series. Now that we're on gerrit and can't
do cover letters, I think it would be helpful if supporting patches like this could
mention facts like that... something for us all to consider as we write commit
messages.
https://gnutoolchain-gerrit.osci.io/r/c/binutils-gdb/+/135/1/gdb/gdbtypes.h
File gdb/gdbtypes.h:
https://gnutoolchain-gerrit.osci.io/r/c/binutils-gdb/+/135/1/gdb/gdbtypes.h@929
PS1, Line 929: unsigned int defaulted;
Should this be a bit-field or a narrower integer type?
I see `DW_DEFAULTED` only has 3 values at present.
I guess we'd have to deal with the situation where the DWARF
gives some random value here?
Offhand I'm not sure whether space is a big consideration here
or not, but my default with symbols and types is to assume that it is.
https://gnutoolchain-gerrit.osci.io/r/c/binutils-gdb/+/135/1/gdb/gdbtypes.h@1101
PS1, Line 1101: unsigned calling_convention : 8;
This might pack better up near the `is_dynamic` field.