OSDN Git Service

The following changes avoid polluting global namespace with the
authoreliz <eliz>
Thu, 2 Aug 2001 11:58:28 +0000 (11:58 +0000)
committereliz <eliz>
Thu, 2 Aug 2001 11:58:28 +0000 (11:58 +0000)
commitd15c0b0b2049e71143c07c98af78b14a264759b2
tree5202036f191994d3fba59a9b4c611092b10a5e40
parent41c80534f79c1c782b7b568002bc5c78893d86e3
The following changes avoid polluting global namespace with the
`enable' and `disable' identifiers, because some platforms define
in their system headers symbols with global scope that go by those
names.

* breakpoint.h (enum enable_state): Rename from `enum enable'.
Also rename all the enum members to have the "bp_" prefix.
(struct breakpoint): Rename the `enable' member to `enable_state'.
(enum bpdisp): Rename all members to have the "disp_" prefix.

* breakpoint.c: All users of `enum enable' and `enum bpdisp'
changed.
(args_for_catchpoint_enable): Rename the `enable' member to
`enable_p'.  All users changed.

* tracepoint.h (enum enable): Remove.
(struct tracepoint): The member `enabled' is now `int enabled_p'.

* tracepoint.c: All users of the `enabled' member changed.

* printcmd.c (struct display): The `status' member is now an int.

* memattr.h (struct mem_region): Rename the `status' member to
`enabled_p'.
(enum enable): Remove.

* memattr.c: Change all users of the `status' member of struct
mem_region to use `enabled_p' instead.

* infcmd.c (run_stack_dummy): Use disp_del instead of del.

* go32-nat.c: Remove the kludgey work-around for conflicts between
<dos.h> and "breakpoint.h".
* tui/tuiSourceWin.c: Use disp_del instead of del.

* tui/tuiSource.c: Use disp_del instead of del.

* tui/tuiDisassem.c: Use disp_del instead of del.
14 files changed:
gdb/ChangeLog
gdb/breakpoint.c
gdb/breakpoint.h
gdb/go32-nat.c
gdb/infcmd.c
gdb/memattr.c
gdb/memattr.h
gdb/printcmd.c
gdb/tracepoint.c
gdb/tracepoint.h
gdb/tui/ChangeLog
gdb/tui/tuiDisassem.c
gdb/tui/tuiSource.c
gdb/tui/tuiSourceWin.c