From: Tom Tromey Date: Fri, 16 May 2025 14:16:48 +0000 (-0600) Subject: Update comment for find_field_create_baton X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e1ec485cfa29f9c45370b9d0c12480ebb0a0be06;p=thirdparty%2Fbinutils-gdb.git Update comment for find_field_create_baton Andrew pointed out that a recent commit neglected to update the comment for find_field_create_baton. This patch fixes the oversight. --- diff --git a/gdb/dwarf2/read.c b/gdb/dwarf2/read.c index 7de32bc7766..fe06840ec3b 100644 --- a/gdb/dwarf2/read.c +++ b/gdb/dwarf2/read.c @@ -11236,13 +11236,9 @@ handle_struct_member_die (struct die_info *child_die, struct type *type, handle_variant (child_die, type, fi, template_args, cu); } -/* Create a property baton for a field of the struct type currently - being processed. OFFSET is the DIE offset of the field in the - structure. If OFFSET is found among the fields that have already - been seen, then a new property baton is allocated on the objfile - obstack and returned. The baton isn't fully filled in -- it will - be post-processed once the fields are finally created; see - update_field_batons. If OFFSET is not found, NULL is returned. */ +/* Create a property baton for a field. DIE is the field's DIE. The + baton's "field" member is filled in, but the other members of the + baton are not. The new property baton is returned. */ static dwarf2_property_baton * find_field_create_baton (dwarf2_cu *cu, die_info *die)