bug-gdb
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

build bug in 20010124. thread_db_xfer_memory missing arg (mem_attrib*)


From: Yotam Medini
Subject: build bug in 20010124. thread_db_xfer_memory missing arg (mem_attrib*)
Date: Wed, 14 Feb 2001 17:21:49 +0200

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]