breakpoint.c: bp_location (the array) shadows bp_location (the type)
authorPedro Alves <palves@redhat.com>
Thu, 13 Apr 2017 01:12:53 +0000 (02:12 +0100)
committerPedro Alves <palves@redhat.com>
Thu, 13 Apr 2017 01:12:53 +0000 (02:12 +0100)
commitf5336ca55ca0aca2507ac8c0f1d573d7f6b877ab
tree7a767c42910f7170365b83b4e33dbe22ae79180f
parent4f70a994900c2f7b235add7d4131cc069c181cea
breakpoint.c: bp_location (the array) shadows bp_location (the type)

The bp_location array has the same name as the "struct bp_location",
type preventing refering to the structure without the "struct" inside
breakpoint.c.  I.e., we must write:

 "new struct bp_location;"

instead of:

 "new bp_location"

Rename the array and the associated variables/functions to avoid the
shadowing.

gdb/ChangeLog:
2017-04-13  Pedro Alves  <palves@redhat.com>

* breakpoint.c (bp_location): Rename to ...
(bp_locations): ... this.  All references updated.
(bp_location_count): Rename to ...
(bp_locations_count): ... this.  All references updated.
(bp_location_placed_address_before_address_max): Rename to ...
(bp_locations_placed_address_before_address_max): ... this.  All
references updated.
(bp_location_shadow_len_after_address_max): Rename to ...
(bp_locations_shadow_len_after_address_max): ... this.  All
references updated.
(bp_location_compare_addrs): Rename to ...
(bp_locations_compare_addrs): ... this.  All references updated.
(bp_location_compare):Rename to ...
(bp_locations_compare): ... this.  All references updated.
(bp_location_target_extensions_update): Rename to ...
(bp_locations_target_extensions_update): ... this.  All references
updated.
gdb/ChangeLog
gdb/breakpoint.c
This page took 0.02714 seconds and 4 git commands to generate.