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 V2 3/9] New commands `enable probe' and `disable probe'.


    > +/* Helper function that parses a probe linespec of the form [PROVIDER
    > +   [PROBE [OBJNAME]]] from the provided string STR.  */
    > +
    > +static void
    > +parse_probe_linespec (const char *str, char **provider,
    > +		      char **probe_name, char **objname)
    > +{
    > +  *probe_name = *objname = NULL;
    > +  
    > +  *provider = extract_arg_const (&str);
    > +  if (*provider)
    
    Ops, another implicit comparison :-).

I changed these comparisons to be explicit.


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