gdb/testsuite: Fix typos in infcall-nested-structs.c
authorAndreas Arnez <arnez@linux.ibm.com>
Thu, 10 Oct 2019 10:22:49 +0000 (12:22 +0200)
committerAndreas Arnez <arnez@linux.ibm.com>
Thu, 10 Oct 2019 10:22:49 +0000 (12:22 +0200)
commit6dfc00411292aa3220b33b6ac9553907e3933b0f
treede7c9f519aca7014117ec87e14f13019e1913490
parentabcf2cc85a32a459c2da771c636cc3b6fc985675
gdb/testsuite: Fix typos in infcall-nested-structs.c

Some of the comparison functions in infcall-nested-structs.c contain
redundant comparisons like a.<some_field> == a.<some_field> instead of
a.<some_field> == b.<some_field>.  They were introduced with this commit:

  36eb4c5f9bbe6 - "infcall-nested-structs: Test up to five fields"

Fix the redundant comparisons.

gdb/testsuite/ChangeLog:

* gdb.base/infcall-nested-structs.c (cmp_struct_02_01)
(cmp_struct_02_02, cmp_struct_04_01, cmp_struct_04_02)
(cmp_struct_05_01, cmp_struct_static_02_01)
(cmp_struct_static_04_01, cmp_struct_static_06_01): Fix redundant
comparisons.
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/infcall-nested-structs.c