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: [MI non-stop 04/11] Implement --thread and --frame.


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 ...)

Bye,
Ulrich

-- 
  Dr. Ulrich Weigand
  GNU Toolchain for Linux on System z and Cell BE
  Ulrich.Weigand@de.ibm.com


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