diff options
author | Elena Zannoni <ezannoni@kwikemart.cygnus.com> | 2002-11-04 22:58:25 +0000 |
---|---|---|
committer | Elena Zannoni <ezannoni@kwikemart.cygnus.com> | 2002-11-04 22:58:25 +0000 |
commit | 2bb26b414def478fbe43a639ae71ee6b6642bf05 (patch) | |
tree | 58a3af493e3e5a0b0a7497f5e9b7ad1c95927969 | |
parent | eb5447add9c6bfabe4d851d50aa6097ccf844aef (diff) | |
download | gdb-2bb26b414def478fbe43a639ae71ee6b6642bf05.tar.gz |
2002-11-04 Elena Zannoni <ezannoni@redhat.com>
* interps.h (gdb_interpreter_is_quiet_p): Rename from
gdb_interpreter_is_quiet.
* cli/cli-interp.c (cli_interpreter_display_prompt_p): Call
gdb_interpreter_is_quiet_p.
* interps.c (gdb_interpreter_is_quiet_p): Rename from
gdb_interpreter_is_quiet.
(gdb_set_interpreter): Call gdb_interpreter_is_quiet_p.
-rw-r--r-- | gdb/ChangeLog | 13 | ||||
-rw-r--r-- | gdb/cli/cli-interp.c | 2 | ||||
-rw-r--r-- | gdb/interps.c | 4 | ||||
-rw-r--r-- | gdb/interps.h | 2 |
4 files changed, 17 insertions, 4 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 084e45f7e77..f79f2d12370 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,15 @@ 2002-11-04 Elena Zannoni <ezannoni@redhat.com> + * interps.h (gdb_interpreter_is_quiet_p): Rename from + gdb_interpreter_is_quiet. + * cli/cli-interp.c (cli_interpreter_display_prompt_p): Call + gdb_interpreter_is_quiet_p. + * interps.c (gdb_interpreter_is_quiet_p): Rename from + gdb_interpreter_is_quiet. + (gdb_set_interpreter): Call gdb_interpreter_is_quiet_p. + +2002-11-04 Elena Zannoni <ezannoni@redhat.com> + * event-top.c (display_gdb_prompt): Use gdb_interpreter_display_prompt_p. * cli/cli-interp.c (cli_interpreter_display_prompt_p): Rename from @@ -9,6 +19,9 @@ * interps.c (gdb_new_interpreter): Initialize prompt_proc_p instead of prompt_proc. (gdb_interpreter_display_prompt_p): Rewrite as a predicate. + (gdb_interpreter_is_quiet_p): Rename from gdb_interpreter_is_quiet. + (gdb_set_interpreter): Call gdb_interpreter_is_quiet_p. + * interps.h (interp_prompt_ftype): Update typedef. (struct gdb_interpreter_procs): Rename prompt_proc to prompt_proc_p. diff --git a/gdb/cli/cli-interp.c b/gdb/cli/cli-interp.c index cb53608d975..640e098629e 100644 --- a/gdb/cli/cli-interp.c +++ b/gdb/cli/cli-interp.c @@ -74,7 +74,7 @@ cli_interpreter_suspend (void *data) static int cli_interpreter_display_prompt_p (void) { - if (gdb_interpreter_is_quiet (NULL)) + if (gdb_interpreter_is_quiet_p (NULL)) return 0; else return 1; diff --git a/gdb/interps.c b/gdb/interps.c index b3327802c78..d74730db1a5 100644 --- a/gdb/interps.c +++ b/gdb/interps.c @@ -217,7 +217,7 @@ gdb_set_interpreter (struct gdb_interpreter *interp) if (!first_time) { - if (!gdb_interpreter_is_quiet (interp)) + if (!gdb_interpreter_is_quiet_p (interp)) { sprintf (buffer, "Switching to interpreter \"%.24s\".\n", interp->name); @@ -290,7 +290,7 @@ gdb_interpreter_display_prompt_p (void) } int -gdb_interpreter_is_quiet (struct gdb_interpreter *interp) +gdb_interpreter_is_quiet_p (struct gdb_interpreter *interp) { if (interp != NULL) return interp->quiet_p; diff --git a/gdb/interps.h b/gdb/interps.h index 40ba7145134..cb9ff6c8597 100644 --- a/gdb/interps.h +++ b/gdb/interps.h @@ -54,7 +54,7 @@ extern int gdb_interpreter_exec (char *command_str); extern int gdb_interpreter_display_prompt_p (void); extern int gdb_interpreter_set_quiet (struct gdb_interpreter *interp, int quiet); -extern int gdb_interpreter_is_quiet (struct gdb_interpreter *interp); +extern int gdb_interpreter_is_quiet_p (struct gdb_interpreter *interp); extern struct gdb_interpreter_procs *gdb_interpreter_get_procs (struct gdb_interpreter *interp); |