[MI non-stop 04/11] Implement --thread and --frame.

Vladimir Prus vladimir@codesourcery.com
Sun Jul 13 03:54:00 GMT 2008


On Sunday 13 July 2008 00:14:42 Ulrich Weigand wrote:
> Vladimir Prus wrote:
> 
> >  mi_cmd_execute (struct mi_parse *parse)
> >  {
> >    struct cleanup *cleanup = make_cleanup (null_cleanup, NULL);
> > +  char *thread_str;
> > +  char *frame_str;
> > +  int thread;
> > +  int i;
> 
> [snip]
> 
> > +	error (_("Invalid frame id: %s"), frame_str);
> 
> This variable is used uninitialized, which breaks the -Werror
> build for me.
> 
> (Also, it seems the other local variables introduced by this
> patch are never used ...)

Apologies. I've checked in the attached to fix this.

- Volodya

-------------- next part --------------
A non-text attachment was scrubbed...
Name: commit.diff
Type: text/x-diff
Size: 1340 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/gdb-patches/attachments/20080713/73f4205a/attachment.bin>


More information about the Gdb-patches mailing list