Re: GDB 6.5.90 available for testing (GDB 6.6 pre-release)

Joel Brobecker
2006-12-04T18:22:34Z

> I tried to build it on x86, FC5 with following error:

Thanks for trying it out...

> c1: warnings being treated as errors
> /home/user/gdb/6.5.90/gdb-6.5.90/gdb/p-valprint.c: In Funktion
> Â»pascal_object_print_value_fieldsÂ«:
> /home/user/gdb/6.5.90/gdb-6.5.90/gdb/p-valprint.c:756: Warnung:
> Â»tmp_obstack.alloc_failedÂ« kÃ¶nnte in dieser Funktion uninitialisiert
> verwendet werden
>
> <schnipp ... >
>
> /home/user/gdb/6.5.90/gdb-6.5.90/gdb/p-valprint.c:756: Warnung:
> Â»tmp_obstack.chunk_sizeÂ« kÃ¶nnte in dieser Funktion uninitialisiert
> verwendet werden
> make[2]: *** [p-valprint.o] Fehler 1
> make[2]: Leaving directory `/home/user/gdb/6.5.90/gdb-6.5.90/build/gdb'
> make[1]: *** [all-gdb] Fehler 2
> make[1]: Leaving directory `/home/user/gdb/6.5.90/gdb-6.5.90/build'
> make: *** [all] Fehler 2
> [user@host build]$

I don't speak German, so if you could set your environment to C,
that would help me understand the source of the problem.

A workaround for you is to build with --disable-werror.

> I checked out 6.6 branch and head some days ago, they build fine.

So we just need to isolate the patch from head that avoids the warning.

--
Joel