diff options
author | Eli Zaretskii <eliz@gnu.org> | 2001-08-02 11:58:29 +0000 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2001-08-02 11:58:29 +0000 |
commit | 9966346f8228dc589a4090b17382eb07fca38914 (patch) | |
tree | a9060b3e360c21c023dcb4b49ef1fe3b7f02fdf7 /gdb/memattr.h | |
parent | 17d19b9e18eac8167ff836a1bee4130526312400 (diff) | |
download | gdb-9966346f8228dc589a4090b17382eb07fca38914.tar.gz |
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.
Diffstat (limited to 'gdb/memattr.h')
-rw-r--r-- | gdb/memattr.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/memattr.h b/gdb/memattr.h index 6796b713427..8643a23cec8 100644 --- a/gdb/memattr.h +++ b/gdb/memattr.h @@ -79,8 +79,8 @@ struct mem_region /* Item number of this memory region. */ int number; - /* Status of this memory region (enabled or disabled) */ - int status; + /* Status of this memory region (enabled if non-zero, otherwise disabled) */ + int enabled_p; /* Attributes for this region */ struct mem_attrib attrib; |