gcc -c -O2    -I. -I. -I./config -DHAVE_CONFIG_H -I./../include/opcode 
-I./../readline/.. -I../bfd -I./../bfd  -I./../include -I../intl -I./../intl  
-DUI_OUT=1 -Wimplicit -Wreturn-type -Wcomment -Wtrigraphs -Wformat -Wparentheses 
-Wpointer-arith  thread-db.c
....
/usr/include/bits/string2.h: In function `__strcpy_small':
....
thread-db.c: In function `thread_db_xfer_memory':
thread-db.c:771: warning: passing arg 5 of pointer to function from incompatible 
pointer type
thread-db.c:771: too few arguments to function
thread-db.c: In function `init_thread_db_ops':
thread-db.c:1000: warning: assignment from incompatible pointer type
make[2]: *** [thread-db.o] Error 1

Indeed, 

iwsl010:388> sed -n 366,369p target.h
    int (*to_xfer_memory) (CORE_ADDR memaddr, char *myaddr,
                           int len, int write, 
                           struct mem_attrib *attrib,
                           struct target_ops *target);
iwsl010:389> sed -n 771p thread-db.c 
  xfer = target_beneath->to_xfer_memory (memaddr, myaddr, len, write, target);

-- yotam

_______________________________________________
Bug-gdb mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-gdb

Reply via email to