This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [MI non-stop 04/11] Implement --thread and --frame.
- From: "Ulrich Weigand" <uweigand at de dot ibm dot com>
- To: vladimir at codesourcery dot com (Vladimir Prus)
- Cc: gdb-patches at sources dot redhat dot com
- Date: Sat, 12 Jul 2008 22:14:42 +0200 (CEST)
- Subject: 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