cvs tracepoint.c build error

Stan Shebs stan@codesourcery.com
Sat Jan 16 18:53:00 GMT 2010


Hui Zhu wrote:
> What I got:
> gcc -g   -I. -I../../src/gdb -I../../src/gdb/common
> -I../../src/gdb/config -DLOCALEDIR="\"/usr/local/share/locale\""
> -DHAVE_CONFIG_H -I../../src/gdb/../include/opcode
> -I../../src/gdb/../readline/.. -I../bfd -I../../src/gdb/../bfd
> -I../../src/gdb/../include -I../libdecnumber
> -I../../src/gdb/../libdecnumber  -I../../src/gdb/gnulib -Ignulib
> -DMI_OUT=1 -DTUI=1  -DGDBTK  -Wall -Wdeclaration-after-statement
> -Wpointer-arith -Wformat-nonliteral -Wno-pointer-sign -Wno-unused
> -Wunused-value -Wno-switch -Wno-char-subscripts -Werror -c -o
> tracepoint.o -MT tracepoint.o -MMD -MP -MF .deps/tracepoint.Tpo
> ../../src/gdb/tracepoint.c
> cc1: warnings being treated as errors
> ../../src/gdb/tracepoint.c: In function 'trace_status_command':
> ../../src/gdb/tracepoint.c:1651: error: format '%d' expects type
> 'int', but argument 2 has type 'size_t'
> make[2]: *** [tracepoint.o] Error 1
> make[2]: Leaving directory `/home/teawater/gdb/bgdbno/gdb'
>   
Oops, sorry!  In retrospect, size_t was a bad idea, this is our own code 
and we should use unsigned long long (large buffers with 32x64).  Fix 
forthcoming.

Stan



More information about the Gdb mailing list