Index: gdb/win32-nat.c =================================================================== RCS file: /cvs/src/src/gdb/win32-nat.c,v retrieving revision 1.112 diff -p -u -r1.112 win32-nat.c --- gdb/win32-nat.c 6 Jul 2005 14:54:34 -0000 1.112 +++ gdb/win32-nat.c 17 Aug 2005 15:21:12 -0000 @@ -724,7 +724,7 @@ handle_unload_dll (void *dummy) } char * -solib_address (CORE_ADDR address) +win32_nat_solib_address (CORE_ADDR address) { struct so_stuff *so; for (so = &solib_start; so->next != NULL; so = so->next) @@ -735,14 +735,14 @@ solib_address (CORE_ADDR address) /* Return name of last loaded DLL. */ char * -child_solib_loaded_library_pathname (int pid) +win32_nat_child_solib_loaded_library_pathname (int pid) { return !solib_end || !solib_end->name[0] ? NULL : solib_end->name; } /* Clear list of loaded DLLs. */ void -child_clear_solibs (void) +win32_nat_child_clear_solibs (void) { struct so_stuff *so, *so1 = solib_start.next; @@ -868,7 +868,7 @@ solib_symbols_add (char *name, int from_ /* Load DLL symbol info. */ void -dll_symbol_command (char *args, int from_tty) +win32_nat_dll_symbol_command (char *args, int from_tty) { int n; dont_repeat (); @@ -1453,7 +1453,7 @@ do_initial_child_stuff (DWORD pid) memset (¤t_event, 0, sizeof (current_event)); push_target (&deprecated_child_ops); disable_breakpoints_in_shlibs (1); - child_clear_solibs (); + win32_nat_child_clear_solibs (); clear_proceed_status (); init_wait_for_inferior (); @@ -2129,7 +2129,7 @@ _initialize_win32_nat (void) init_child_ops (); - c = add_com ("dll-symbols", class_files, dll_symbol_command, + c = add_com ("dll-symbols", class_files, win32_nat_dll_symbol_command, _("Load dll library symbols from FILE.")); set_cmd_completer (c, filename_completer); @@ -2429,14 +2429,14 @@ out: } void -child_solib_add (char *filename, int from_tty, struct target_ops *target, +win32_nat_child_solib_add (char *filename, int from_tty, struct target_ops *target, int readsyms) { if (!readsyms) return; if (core_bfd) { - child_clear_solibs (); + win32_nat_child_clear_solibs (); bfd_map_over_sections (core_bfd, &core_section_load_dll_symbols, target); } else Index: gdb/config/i386/tm-cygwin.h =================================================================== RCS file: /cvs/src/src/gdb/config/i386/tm-cygwin.h,v retrieving revision 1.18 diff -p -u -r1.18 tm-cygwin.h --- gdb/config/i386/tm-cygwin.h 6 Apr 2004 01:53:51 -0000 1.18 +++ gdb/config/i386/tm-cygwin.h 17 Aug 2005 15:21:12 -0000 @@ -21,16 +21,16 @@ Boston, MA 02111-1307, USA. */ #define ATTACH_NO_WAIT -#define SOLIB_ADD(filename, from_tty, targ, readsyms) child_solib_add(filename, from_tty, targ, readsyms) -#define PC_SOLIB(addr) solib_address (addr) -#define SOLIB_LOADED_LIBRARY_PATHNAME(pid) child_solib_loaded_library_pathname(pid) -#define CLEAR_SOLIB child_clear_solibs -#define ADD_SHARED_SYMBOL_FILES dll_symbol_command +#define SOLIB_ADD(filename, from_tty, targ, readsyms) win32_nat_child_solib_add(filename, from_tty, targ, readsyms) +#define PC_SOLIB(addr) win32_nat_solib_address (addr) +#define SOLIB_LOADED_LIBRARY_PATHNAME(pid) win32_nat_child_solib_loaded_library_pathname(pid) +#define CLEAR_SOLIB win32_nat_child_clear_solibs +#define ADD_SHARED_SYMBOL_FILES win32_nat_dll_symbol_command struct target_ops; char *cygwin_pid_to_str (ptid_t ptid); -void child_solib_add (char *, int, struct target_ops *, int); -char *solib_address (CORE_ADDR); -char *child_solib_loaded_library_pathname(int); -void child_clear_solibs (void); -void dll_symbol_command (char *, int); +void win32_nat_child_solib_add (char *, int, struct target_ops *, int); +char *win32_nat_solib_address (CORE_ADDR); +char *win32_nat_child_solib_loaded_library_pathname(int); +void win32_nat_child_clear_solibs (void); +void win32_nat_dll_symbol_command (char *, int); Index: tcl/win/tclWin32Dll.c =================================================================== RCS file: /cvs/src/src/tcl/win/tclWin32Dll.c,v retrieving revision 1.9 diff -p -u -r1.9 tclWin32Dll.c --- tcl/win/tclWin32Dll.c 21 Jan 2003 19:40:22 -0000 1.9 +++ tcl/win/tclWin32Dll.c 17 Aug 2005 15:21:16 -0000 @@ -38,8 +38,8 @@ static HINSTANCE hInstance; /* HINSTANCE static int platformId; /* Running under NT, or 95/98? */ #ifdef HAVE_NO_SEH -static void *ESP; -static void *EBP; +static void *ESP __attribute__ ((used)); +static void *EBP __attribute__ ((used)); #endif /* HAVE_NO_SEH */ /* @@ -393,7 +393,7 @@ TclpCheckStackSpace() } #ifdef HAVE_NO_SEH static -__attribute__ ((cdecl)) +__attribute__ ((cdecl)) __attribute__ ((used)) EXCEPTION_DISPOSITION _except_checkstackspace_handler( struct _EXCEPTION_RECORD *ExceptionRecord, Index: tcl/win/tclWinChan.c =================================================================== RCS file: /cvs/src/src/tcl/win/tclWinChan.c,v retrieving revision 1.5 diff -p -u -r1.5 tclWinChan.c --- tcl/win/tclWinChan.c 21 Jan 2003 19:40:22 -0000 1.5 +++ tcl/win/tclWinChan.c 17 Aug 2005 15:21:18 -0000 @@ -122,8 +122,8 @@ static Tcl_ChannelType fileChannelType = }; #ifdef HAVE_NO_SEH -static void *ESP; -static void *EBP; +static void *ESP __attribute__ ((used)); +static void *EBP __attribute__ ((used)); #endif /* HAVE_NO_SEH */ @@ -1106,7 +1106,7 @@ Tcl_MakeFileChannel(rawHandle, mode) } #ifdef HAVE_NO_SEH static -__attribute__ ((cdecl)) +__attribute__ ((cdecl)) __attribute__ ((used)) EXCEPTION_DISPOSITION _except_makefilechannel_handler( struct _EXCEPTION_RECORD *ExceptionRecord, Index: tcl/win/tclWinFCmd.c =================================================================== RCS file: /cvs/src/src/tcl/win/tclWinFCmd.c,v retrieving revision 1.6 diff -p -u -r1.6 tclWinFCmd.c --- tcl/win/tclWinFCmd.c 7 Feb 2003 19:52:00 -0000 1.6 +++ tcl/win/tclWinFCmd.c 17 Aug 2005 15:21:19 -0000 @@ -469,7 +469,7 @@ DoRenameFile( } #ifdef HAVE_NO_SEH static -__attribute__ ((cdecl)) +__attribute__ ((cdecl)) __attribute__ ((used)) EXCEPTION_DISPOSITION _except_dorenamefile_handler( struct _EXCEPTION_RECORD *ExceptionRecord, @@ -651,7 +651,7 @@ DoCopyFile( } #ifdef HAVE_NO_SEH static -__attribute__ ((cdecl)) +__attribute__ ((cdecl)) __attribute__ ((used)) EXCEPTION_DISPOSITION _except_docopyfile_handler( struct _EXCEPTION_RECORD *ExceptionRecord,