GDB 6.5.90 available for testing (GDB 6.6 pre-release)
Markus Deuling
deuling@de.ibm.com
Tue Dec 5 07:02:00 GMT 2006
Hello Joel,
Joel Brobecker schrieb:
>> 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.
>
1) Environment is x86, Fedora Core 5, gcc (GCC) 4.1.1 20060525 (Red Hat
4.1.1-1)
2) I rebuild it with --disable-werror and it works fine. Testsuite looks
good:
http://sources.redhat.com/ml/gdb-testers/2006-q4/msg00023.html
3) I switched the environment so you get the error msg in english. Sorry
for the german :-) So this is for x86 without --disable-werror
/home/user/gdb/6.5.90/gdb-6.5.90/gdb/p-valprint.c: In function
'pascal_object_print_value_fields':
/home/user/gdb/6.5.90/gdb-6.5.90/gdb/p-valprint.c:756: warning:
'tmp_obstack.alloc_failed' may be used uninitialized in this function
/home/user/gdb/6.5.90/gdb-6.5.90/gdb/p-valprint.c:756: warning:
'tmp_obstack.maybe_empty_object' may be used uninitialized in this function
/home/user/gdb/6.5.90/gdb-6.5.90/gdb/p-valprint.c:756: warning:
'tmp_obstack.use_extra_arg' may be used uninitialized in this function
/home/user/gdb/6.5.90/gdb-6.5.90/gdb/p-valprint.c:756: warning:
'tmp_obstack.extra_arg' may be used uninitialized in this function
/home/user/gdb/6.5.90/gdb-6.5.90/gdb/p-valprint.c:756: warning:
'tmp_obstack.freefun' may be used uninitialized in this function
/home/user/gdb/6.5.90/gdb-6.5.90/gdb/p-valprint.c:756: warning:
'tmp_obstack.chunkfun' may be used uninitialized in this function
/home/user/gdb/6.5.90/gdb-6.5.90/gdb/p-valprint.c:756: warning:
'tmp_obstack.alignment_mask' may be used uninitialized in this function
/home/user/gdb/6.5.90/gdb-6.5.90/gdb/p-valprint.c:756: warning:
'tmp_obstack.temp' may be used uninitialized in this function
/home/user/gdb/6.5.90/gdb-6.5.90/gdb/p-valprint.c:756: warning:
'tmp_obstack.chunk_limit' may be used uninitialized in this function
/home/user/gdb/6.5.90/gdb-6.5.90/gdb/p-valprint.c:756: warning:
'tmp_obstack.next_free' may be used uninitialized in this function
/home/user/gdb/6.5.90/gdb-6.5.90/gdb/p-valprint.c:756: warning:
'tmp_obstack.object_base' may be used uninitialized in this function
/home/user/gdb/6.5.90/gdb-6.5.90/gdb/p-valprint.c:756: warning:
'tmp_obstack.chunk' may be used uninitialized in this function
/home/user/gdb/6.5.90/gdb-6.5.90/gdb/p-valprint.c:756: warning:
'tmp_obstack.chunk_size' may be used uninitialized in this function
make[2]: *** [p-valprint.o] Error 1
make[2]: Leaving directory `/home/user/gdb/6.5.90/gdb-6.5.90/build_werr/gdb'
make[1]: *** [all-gdb] Error 2
make[1]: Leaving directory `/home/user/gdb/6.5.90/gdb-6.5.90/build_werr'
make: *** [all] Error 2
Regards,
Markus
--
Markus Deuling
GNU Toolchain for Linux on Cell BE
deuling@de.ibm.com
More information about the Gdb
mailing list