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 | b5de0fa7413a260aa570079b5d168ea8781dac4e (patch) | |
tree | da73221e5caa8c41d608a30460fa7f7eb8ebc60d /gdb/printcmd.c | |
parent | a2bea4c366ef8a353e60d60cdcd754d17ca89e9c (diff) | |
download | gdb-b5de0fa7413a260aa570079b5d168ea8781dac4e.zip gdb-b5de0fa7413a260aa570079b5d168ea8781dac4e.tar.gz gdb-b5de0fa7413a260aa570079b5d168ea8781dac4e.tar.bz2 |
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/printcmd.c')
-rw-r--r-- | gdb/printcmd.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/gdb/printcmd.c b/gdb/printcmd.c index ec77715..ca2979b 100644 --- a/gdb/printcmd.c +++ b/gdb/printcmd.c @@ -112,7 +112,7 @@ struct display /* Innermost block required by this expression when evaluated */ struct block *block; /* Status of this display (enabled or disabled) */ - enum enable status; + int enabled_p; }; /* Chain of expressions whose values should be displayed @@ -1433,7 +1433,7 @@ display_command (char *exp, int from_tty) new->next = display_chain; new->number = ++display_number; new->format = fmt; - new->status = enabled; + new->enabled_p = 1; display_chain = new; if (from_tty && target_has_execution) @@ -1544,7 +1544,7 @@ do_one_display (struct display *d) { int within_current_scope; - if (d->status == disabled) + if (d->enabled_p == 0) return; if (d->block) @@ -1644,7 +1644,7 @@ disable_display (int num) for (d = display_chain; d; d = d->next) if (d->number == num) { - d->status = disabled; + d->enabled_p = 0; return; } printf_unfiltered ("No display number %d.\n", num); @@ -1675,7 +1675,7 @@ Num Enb Expression\n"); for (d = display_chain; d; d = d->next) { - printf_filtered ("%d: %c ", d->number, "ny"[(int) d->status]); + printf_filtered ("%d: %c ", d->number, "ny"[(int) d->enabled_p]); if (d->format.size) printf_filtered ("/%d%c%c ", d->format.count, d->format.size, d->format.format); @@ -1700,7 +1700,7 @@ enable_display (char *args, int from_tty) if (p == 0) { for (d = display_chain; d; d = d->next) - d->status = enabled; + d->enabled_p = 1; } else while (*p) @@ -1716,7 +1716,7 @@ enable_display (char *args, int from_tty) for (d = display_chain; d; d = d->next) if (d->number == num) { - d->status = enabled; + d->enabled_p = 1; goto win; } printf_unfiltered ("No display number %d.\n", num); @@ -1738,7 +1738,7 @@ disable_display_command (char *args, int from_tty) if (p == 0) { for (d = display_chain; d; d = d->next) - d->status = disabled; + d->enabled_p = 0; } else while (*p) |