From 95298e7219e23ca184786a3192df7ab3767ce25a Mon Sep 17 00:00:00 2001 From: Phil Muldoon Date: Fri, 22 Jul 2011 09:22:50 +0000 Subject: 2011-07-22 Phil Muldoon * event-top.c (cli_command_loop): Use get_prompt, get_suffix, get_prefix. (display_gdb_prompt): Likewise. (change_annotation_level): Likewise. (push_prompt): Likewise. (pop_prompt): Likewise. (handle_stop_sig): Use get_prompt with a level. * top.c (command_loop): Use get_prompt with a level. (set_async_annotation_level): Use set_prompt with a level. (get_prefix): New function. (set_prefix): Ditto. (set_suffix): Ditto. (get_suffix): Ditto. (get_prompt): Accept a level argument. (set_prompt): Accept a level argument. Free old prompts. Set new_async_prompt if level is 0. (init_main): Use set_prompt with a level. Do not set new_async_prompt. * event-top.h (PROMPT, SUFFIX, PREFIX): Move to top.c * top.h: Declare set_suffix, get_suffix, set_prefix, get_prefix. Modify set_prompt, get_prompt to account for levels. * tui/tui-interp.c (tui_command_loop): Use get_prompt with a level * python/python.c (before_prompt_hook): Use set_prompt. --- gdb/event-top.h | 3 --- 1 file changed, 3 deletions(-) (limited to 'gdb/event-top.h') diff --git a/gdb/event-top.h b/gdb/event-top.h index 85501644235..952abdb39bd 100644 --- a/gdb/event-top.h +++ b/gdb/event-top.h @@ -69,9 +69,6 @@ struct prompts int top; }; -#define PROMPT(X) the_prompts.prompt_stack[the_prompts.top + X].prompt -#define PREFIX(X) the_prompts.prompt_stack[the_prompts.top + X].prefix -#define SUFFIX(X) the_prompts.prompt_stack[the_prompts.top + X].suffix /* Exported functions from event-top.c. FIXME: these should really go into top.h. */ -- cgit v1.2.1