This is the mail archive of the
gdb@sourceware.cygnus.com
mailing list for the GDB project.
insight still uses make_cleanup_func
- To: gdb at sourceware dot cygnus dot com
- Subject: insight still uses make_cleanup_func
- From: Chris Faylor <cgf at cygnus dot com>
- Date: Thu, 8 Jun 2000 00:08:28 -0400
- Cc: cagney at cygnus dot com
- Reply-To: gdb at sourceware dot cygnus dot com
Isn't this a problem, Andrew?
% grep make_cleanup_func **/*.[ch]
gdbtk/generic/gdbtk-cmds.c: old_chain = make_cleanup ((make_cleanup_func) free_current_contents, &expr);
gdbtk/generic/gdbtk-cmds.c: old_cleanups = make_cleanup ((make_cleanup_func) bfd_close, loadfile_bfd);
gdbtk/generic/gdbtk-cmds.c: old_chain = make_cleanup ((make_cleanup_func) free_search_symbols, ss);
gdbtk/generic/gdbtk.c: old_chain = make_cleanup ((make_cleanup_func) cleanup_init, 0);
Today's build of gdb is failing for me:
i686-pc-cygwin-gcc -c -O2 -I. -I/cygnus/netrel/src/gdb-20000608/gdb -I/cygnus/netrel/src/gdb-20000608/gdb/config -DHAVE_CONFIG_H -I/cygnus/netrel/src/gdb-20000608/gdb/../include/opcode -I/cygnus/netrel/src/gdb-20000608/gdb/../readline/.. -I../bfd -I/cygnus/netrel/src/gdb-20000608/gdb/../bfd -I/cygnus/netrel/src/gdb-20000608/gdb/../include -I../intl -I/cygnus/netrel/src/gdb-20000608/gdb/../intl -DGDBTK -Wimplicit -Wreturn-type -Wcomment -Wtrigraphs -Wformat -Wparentheses -Wpointer-arith -Wuninitialized -I/cygnus/netrel/src/gdb-20000608/gdb/../libgui/src -I/cygnus/netrel/src/gdb-20000608/itcl/itcl/generic \
-I/cygnus/netrel/src/gdb-20000608/itcl/itk/generic -I/cygnus/netrel/src/gdb-20000608/tix/generic \
-I/cygnus/netrel/src/gdb-20000608/tcl/generic -I/cygnus/netrel/src/gdb-20000608/tk/generic -I/cygnus/netrel/src/gdb-20000608/tk/generic -I/cygnus/netrel/src/gdb-20000608/tk/xlib -I/cygnus/netrel/src/gdb-20000608/tk/xlib \
/cygnus/netrel/src/gdb-20000608/gdb/gdbtk/generic/gdbtk.c -DGDBTK_LIBRARY=\"/usr/share/gdbtcl\"
/cygnus/netrel/src/gdb-20000608/gdb/gdbtk/generic/gdbtk.c: In function `close_bfds':
/cygnus/netrel/src/gdb-20000608/gdb/gdbtk/generic/gdbtk.c:180: warning: implicit declaration of function `bfd_cache_close'
/cygnus/netrel/src/gdb-20000608/gdb/gdbtk/generic/gdbtk.c: In function `gdbtk_init':
/cygnus/netrel/src/gdb-20000608/gdb/gdbtk/generic/gdbtk.c:374: `make_cleanup_func' undeclared (first use in this function)
/cygnus/netrel/src/gdb-20000608/gdb/gdbtk/generic/gdbtk.c:374: (Each undeclared identifier is reported only once
/cygnus/netrel/src/gdb-20000608/gdb/gdbtk/generic/gdbtk.c:374: for each function it appears in.)
/cygnus/netrel/src/gdb-20000608/gdb/gdbtk/generic/gdbtk.c:374: parse error before `cleanup_init'
/cygnus/netrel/src/gdb-20000608/gdb/gdbtk/generic/gdbtk.c:360: warning: `old_chain' might be used uninitialized in this function
/cygnus/netrel/src/gdb-20000608/gdb/gdbtk/generic/gdbtk.c: In function `_initialize_gdbtk':
/cygnus/netrel/src/gdb-20000608/gdb/gdbtk/generic/gdbtk.c:604: warning: implicit declaration of function `cygwin32_attach_handle_to_
--
cgf@cygnus.com Cygnus Solutions, a Red Hat company
http://sourceware.cygnus.com/ http://www.redhat.com/