Re: [commit] Re: [patch 1/2] physname reg.: linespec minsym fallback

Ulrich Weigand
2011-07-04T13:14:28Z

Jan Kratochvil wrote:

> 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
>
> + Fall back linespec to minimal symbols.
> + * linespec.c (decode_line_1): New variable ex, saved_argptr. Protect
> + decode_compound by TRY_CATCH, fall back on minsyms if it failed.
> + (find_method, symbol_found): Change error to cplusplus_error.

On some machines (RHEL 5.6 with GCC 4.1.2 system compiler) I'm now seeing:

cc1: warnings being treated as errors
/home/kwerner/dailybuild/spu-tc-2011-07-04/gdb-head/src/gdb/linespec.c: In function 'decode_line_1':
/home/kwerner/dailybuild/spu-tc-2011-07-04/gdb-head/src/gdb/linespec.c:928: warning: 'values.nelts' may be used uninitialized in this function
/home/kwerner/dailybuild/spu-tc-2011-07-04/gdb-head/src/gdb/linespec.c:928: warning: 'values.sals' may be used uninitialized in this function

Should there be an initializer somewhere?

Bye,
Ulrich

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