mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-25 21:41:47 +08:00
Remove second (nested) copy of local var child_die.
gdb/ChangeLog: * dwarf2read.c (process_structure_scope): Remove second (nested) copy of local var child_die.
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
2014-10-25 Doug Evans <xdje42@gmail.com>
|
||||||
|
|
||||||
|
* dwarf2read.c (process_structure_scope): Remove second (nested) copy
|
||||||
|
of local var child_die.
|
||||||
|
|
||||||
2014-10-24 Don Breazeal <donb@codesourcery.com>
|
2014-10-24 Don Breazeal <donb@codesourcery.com>
|
||||||
|
|
||||||
* infrun.c (follow_fork_inferior): Update fork message printing
|
* infrun.c (follow_fork_inferior): Update fork message printing
|
||||||
|
@ -13016,7 +13016,7 @@ static void
|
|||||||
process_structure_scope (struct die_info *die, struct dwarf2_cu *cu)
|
process_structure_scope (struct die_info *die, struct dwarf2_cu *cu)
|
||||||
{
|
{
|
||||||
struct objfile *objfile = cu->objfile;
|
struct objfile *objfile = cu->objfile;
|
||||||
struct die_info *child_die = die->child;
|
struct die_info *child_die;
|
||||||
struct type *type;
|
struct type *type;
|
||||||
|
|
||||||
type = get_die_type (die, cu);
|
type = get_die_type (die, cu);
|
||||||
@ -13026,7 +13026,6 @@ process_structure_scope (struct die_info *die, struct dwarf2_cu *cu)
|
|||||||
if (die->child != NULL && ! die_is_declaration (die, cu))
|
if (die->child != NULL && ! die_is_declaration (die, cu))
|
||||||
{
|
{
|
||||||
struct field_info fi;
|
struct field_info fi;
|
||||||
struct die_info *child_die;
|
|
||||||
VEC (symbolp) *template_args = NULL;
|
VEC (symbolp) *template_args = NULL;
|
||||||
struct cleanup *back_to = make_cleanup (null_cleanup, 0);
|
struct cleanup *back_to = make_cleanup (null_cleanup, 0);
|
||||||
|
|
||||||
@ -13197,6 +13196,8 @@ process_structure_scope (struct die_info *die, struct dwarf2_cu *cu)
|
|||||||
current die is a declaration. Normally, of course, a declaration
|
current die is a declaration. Normally, of course, a declaration
|
||||||
won't have any children at all. */
|
won't have any children at all. */
|
||||||
|
|
||||||
|
child_die = die->child;
|
||||||
|
|
||||||
while (child_die != NULL && child_die->tag)
|
while (child_die != NULL && child_die->tag)
|
||||||
{
|
{
|
||||||
if (child_die->tag == DW_TAG_member
|
if (child_die->tag == DW_TAG_member
|
||||||
|
Reference in New Issue
Block a user