This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Avoid breakpoint query in MI


On Friday 18 April 2008 02:32:13 Nick Roberts wrote:
>  > Please name this top_level_interpreter. Also, the return type
>  > should be "struct interp*". In fact, I have a not-yet-submitted
>  > patches which does just that :-)
> 
> Actually I can't cal it top_level_interpreter because you've already used
> that name:
> 
> static struct interp *top_level_interpreter = NULL;

This is 'static', nobody cares how it's called. My patch has this bit:


@@ -78,13 +78,13 @@ static char **interpreter_completer (char *text, char *word);
 void _initialize_interpreter (void);
 
 /* Variables local to this file: */
 
 static struct interp *interp_list = NULL;
 static struct interp *current_interpreter = NULL;
-static struct interp *top_level_interpreter = NULL;
+static struct interp *top_level_interpreter_ptr = NULL;
 
 static int interpreter_initialized = 0;
 
 /* interp_new - This allocates space for a new interpreter,
    fills the fields from the inputs, and returns a pointer to the
    interpreter. */

- Volodya


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]