You can subscribe to this list here.
2006 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
(16) |
Aug
(203) |
Sep
(142) |
Oct
(113) |
Nov
(73) |
Dec
(27) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2007 |
Jan
(7) |
Feb
(38) |
Mar
(6) |
Apr
(1) |
May
(9) |
Jun
(104) |
Jul
(6) |
Aug
(11) |
Sep
(13) |
Oct
(6) |
Nov
(15) |
Dec
(37) |
2008 |
Jan
(17) |
Feb
(4) |
Mar
(6) |
Apr
(4) |
May
(2) |
Jun
(5) |
Jul
(1) |
Aug
(3) |
Sep
(21) |
Oct
(7) |
Nov
|
Dec
(3) |
2009 |
Jan
(4) |
Feb
(15) |
Mar
|
Apr
(34) |
May
(44) |
Jun
(12) |
Jul
(6) |
Aug
(15) |
Sep
(20) |
Oct
(10) |
Nov
(1) |
Dec
(20) |
2010 |
Jan
(19) |
Feb
(5) |
Mar
(4) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: <dan...@us...> - 2010-03-20 16:51:24
|
Revision: 1449 http://cegcc.svn.sourceforge.net/cegcc/?rev=1449&view=rev Author: dannybackx Date: 2010-03-20 16:51:18 +0000 (Sat, 20 Mar 2010) Log Message: ----------- Add a file selector. Modified Paths: -------------- trunk/cegcc/tools/gdbserver/gdbserver/wgdbs.c Modified: trunk/cegcc/tools/gdbserver/gdbserver/wgdbs.c =================================================================== --- trunk/cegcc/tools/gdbserver/gdbserver/wgdbs.c 2010-03-20 15:17:54 UTC (rev 1448) +++ trunk/cegcc/tools/gdbserver/gdbserver/wgdbs.c 2010-03-20 16:51:18 UTC (rev 1449) @@ -30,7 +30,7 @@ HINSTANCE MainInstance = NULL; HWND MainWindow = 0, CmdBar = NULL, list = NULL, Status = NULL; -HWND button1 = NULL, button2 = NULL, button3 = NULL; +HWND button1 = NULL, button2 = NULL, button3 = NULL, button4 = NULL; HWND tf1 = NULL, tf2 = NULL, tf3 = NULL; RECT rect, cbrect; DWORD font; @@ -223,6 +223,14 @@ NULL); SendMessage(button3, WM_SETFONT, font, TRUE); + button4 = CreateWindow(L"BUTTON", L"Browse", + WS_CHILD | WS_VISIBLE | WS_TABSTOP | BS_PUSHBUTTON | BS_DEFPUSHBUTTON, + ww - 80, wy + 126, 70, 20, + MainWindow, NULL, + MainInstance, + NULL); + SendMessage(button4, WM_SETFONT, font, TRUE); + Status = CreateWindow(L"EDIT", L"", WS_CHILD | WS_VISIBLE | WS_TABSTOP, wx + 10, wy + 74, ww - 50, 20, @@ -339,6 +347,29 @@ exit(0); } +static void ButtonHandlerStartBrowse(void) +{ + OPENFILENAME ofn; + wchar_t *fn; + + memset((void *)&ofn, 0, sizeof(ofn)); + fn = malloc(MAX_PATH); + ofn.lStructSize = sizeof(ofn); + ofn.lpstrFilter = L"File to debug\0*.exe\0Dlls\0*.dll\0"; + ofn.lpstrFile = fn; + ofn.nMaxFile = MAX_PATH; + ofn.Flags = OFN_EXPLORER | OFN_FILEMUSTEXIST; + ofn.lpstrDefExt = L"exe"; + + ofn.lpstrInitialDir = L"\\Temp"; + + if (GetOpenFileName(&ofn) == 0) { + /* The user cancelled */ + return; + } + SetWindowText(tf1, ofn.lpstrFile); +} + static void Paint(HWND h, UINT msg, WPARAM w, LPARAM l) { PAINTSTRUCT ps; @@ -379,6 +410,10 @@ ButtonHandlerStartMulti(); return 0; } + if ((HWND)lParam == button4) { + ButtonHandlerStartBrowse(); + return 0; + } MenuHandler(hWnd, LOWORD(wParam)); break; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dan...@us...> - 2010-03-20 15:18:02
|
Revision: 1448 http://cegcc.svn.sourceforge.net/cegcc/?rev=1448&view=rev Author: dannybackx Date: 2010-03-20 15:17:54 +0000 (Sat, 20 Mar 2010) Log Message: ----------- Add current version of wgdbs, a very thin GUI on top of gdbserver. This requires cleanup and more work. Added Paths: ----------- trunk/cegcc/tools/gdbserver/ trunk/cegcc/tools/gdbserver/gdbserver/ trunk/cegcc/tools/gdbserver/gdbserver/ChangeLog trunk/cegcc/tools/gdbserver/gdbserver/Makefile trunk/cegcc/tools/gdbserver/gdbserver/Makefile.in trunk/cegcc/tools/gdbserver/gdbserver/README trunk/cegcc/tools/gdbserver/gdbserver/acinclude.m4 trunk/cegcc/tools/gdbserver/gdbserver/aclocal.m4 trunk/cegcc/tools/gdbserver/gdbserver/archer-fish.ico trunk/cegcc/tools/gdbserver/gdbserver/archer.ico trunk/cegcc/tools/gdbserver/gdbserver/config.guess trunk/cegcc/tools/gdbserver/gdbserver/config.h trunk/cegcc/tools/gdbserver/gdbserver/config.in trunk/cegcc/tools/gdbserver/gdbserver/config.log trunk/cegcc/tools/gdbserver/gdbserver/config.status trunk/cegcc/tools/gdbserver/gdbserver/config.sub trunk/cegcc/tools/gdbserver/gdbserver/configure trunk/cegcc/tools/gdbserver/gdbserver/configure.ac trunk/cegcc/tools/gdbserver/gdbserver/configure.srv trunk/cegcc/tools/gdbserver/gdbserver/gdb_proc_service.h trunk/cegcc/tools/gdbserver/gdbserver/gdbreplay.c trunk/cegcc/tools/gdbserver/gdbserver/gdbserver.1 trunk/cegcc/tools/gdbserver/gdbserver/hostio-errno.c trunk/cegcc/tools/gdbserver/gdbserver/hostio.c trunk/cegcc/tools/gdbserver/gdbserver/i387-fp.c trunk/cegcc/tools/gdbserver/gdbserver/i387-fp.h trunk/cegcc/tools/gdbserver/gdbserver/inferiors.c trunk/cegcc/tools/gdbserver/gdbserver/install-sh trunk/cegcc/tools/gdbserver/gdbserver/linux-arm-low.c trunk/cegcc/tools/gdbserver/gdbserver/linux-cris-low.c trunk/cegcc/tools/gdbserver/gdbserver/linux-crisv32-low.c trunk/cegcc/tools/gdbserver/gdbserver/linux-i386-low.c trunk/cegcc/tools/gdbserver/gdbserver/linux-ia64-low.c trunk/cegcc/tools/gdbserver/gdbserver/linux-low.c trunk/cegcc/tools/gdbserver/gdbserver/linux-low.h trunk/cegcc/tools/gdbserver/gdbserver/linux-m32r-low.c trunk/cegcc/tools/gdbserver/gdbserver/linux-m68k-low.c trunk/cegcc/tools/gdbserver/gdbserver/linux-mips-low.c trunk/cegcc/tools/gdbserver/gdbserver/linux-ppc-low.c trunk/cegcc/tools/gdbserver/gdbserver/linux-ppc64-low.c trunk/cegcc/tools/gdbserver/gdbserver/linux-s390-low.c trunk/cegcc/tools/gdbserver/gdbserver/linux-sh-low.c trunk/cegcc/tools/gdbserver/gdbserver/linux-x86-64-low.c trunk/cegcc/tools/gdbserver/gdbserver/linux-xtensa-low.c trunk/cegcc/tools/gdbserver/gdbserver/mem-break.c trunk/cegcc/tools/gdbserver/gdbserver/mem-break.h trunk/cegcc/tools/gdbserver/gdbserver/proc-service.c trunk/cegcc/tools/gdbserver/gdbserver/regcache.c trunk/cegcc/tools/gdbserver/gdbserver/regcache.h trunk/cegcc/tools/gdbserver/gdbserver/remote-utils.c trunk/cegcc/tools/gdbserver/gdbserver/server.c trunk/cegcc/tools/gdbserver/gdbserver/server.h trunk/cegcc/tools/gdbserver/gdbserver/spu-low.c trunk/cegcc/tools/gdbserver/gdbserver/stamp-h trunk/cegcc/tools/gdbserver/gdbserver/target.c trunk/cegcc/tools/gdbserver/gdbserver/target.h trunk/cegcc/tools/gdbserver/gdbserver/terminal.h trunk/cegcc/tools/gdbserver/gdbserver/thread-db.c trunk/cegcc/tools/gdbserver/gdbserver/utils.c trunk/cegcc/tools/gdbserver/gdbserver/wgdbs.c trunk/cegcc/tools/gdbserver/gdbserver/wgdbs.h trunk/cegcc/tools/gdbserver/gdbserver/wgdbs.rc trunk/cegcc/tools/gdbserver/gdbserver/win32-arm-low.c trunk/cegcc/tools/gdbserver/gdbserver/win32-i386-low.c trunk/cegcc/tools/gdbserver/gdbserver/win32-low.c trunk/cegcc/tools/gdbserver/gdbserver/win32-low.h trunk/cegcc/tools/gdbserver/gdbserver/wincecompat.c trunk/cegcc/tools/gdbserver/gdbserver/wincecompat.h trunk/cegcc/tools/gdbserver/gdbserver/xtensa-xtregs.c trunk/cegcc/tools/gdbserver/include/ trunk/cegcc/tools/gdbserver/include/gdb/ trunk/cegcc/tools/gdbserver/include/gdb/fileio.h trunk/cegcc/tools/gdbserver/include/gdb/signals.h trunk/cegcc/tools/gdbserver/regformats/ trunk/cegcc/tools/gdbserver/regformats/reg-arm.dat trunk/cegcc/tools/gdbserver/regformats/regdat.sh trunk/cegcc/tools/gdbserver/regformats/regdef.h trunk/cegcc/tools/gdbserver/signals/ trunk/cegcc/tools/gdbserver/signals/signals.c trunk/cegcc/tools/gdbserver/version.in Added: trunk/cegcc/tools/gdbserver/gdbserver/ChangeLog =================================================================== --- trunk/cegcc/tools/gdbserver/gdbserver/ChangeLog (rev 0) +++ trunk/cegcc/tools/gdbserver/gdbserver/ChangeLog 2010-03-20 15:17:54 UTC (rev 1448) @@ -0,0 +1,2068 @@ +2008-02-19 Pedro Alves <pe...@co...> + + * server.c (handle_v_requests): When handling the vRun and vAttach + packets, if already debugging a process, don't kill it. Return an + error instead. + +2008-02-17 Daniel Jacobowitz <da...@co...> + + * server.c (handle_query): Correct length check. + +2008-02-14 Pedro Alves <ped...@po...> + + * win32-low.c (do_initial_child_stuff): Add process handle + parameter. Set current_process_handle and current_process_id from the + parameters. Clear globals. + (win32_create_inferior): Don't set current_process_handle and + current_process_id here. Instead pass them on the call to + do_initial_child_stuff. + (win32_attach): Likewise. + (win32_clear_inferiors): New. + (win32_kill): Don't close the current process handle or the + current thread handle here. Instead call win32_clear_inferiors. + (win32_detach): Don't open a new handle to the process. Call + win32_clear_inferiors. + (win32_join): Don't rely on current_process_handle; open a new + handle using the process id. + (win32_wait): Call win32_clear_inferiors when the inferior process + has exited. + +2008-02-14 Daniel Jacobowitz <da...@co...> + + * server.c (monitor_show_help): Add "exit". + +2008-02-11 Maxim Grigoriev <max...@gm...> + + * Makefile.in (SFILES): Add linux-xtensa-low.c. + (clean): Add reg-xtensa.c. + (linux-xtensa-low.o, reg-xtensa.o, reg-xtensa.c): New dependencies. + * configure.srv (xtensa*-*-linux*) New target. + * linux-xtensa-low.c: New. + * xtensa-xtregs.c: New. + +2008-02-01 Pedro Alves <ped...@po...> + + * hostio.c: Don't include errno.h. + (errno_to_fileio_errno): Move to hostio-errno. + * hostio.c: (hostio_error): Remove the error parameter. Defer the + error number outputting to the target->hostio_last_error callback. + (hostio_packet_error): Use FILEIO_EINVAL directly. + (handle_open, handle_pread, hostio_error, handle_unlink): Update + calls to hostio_error. + * hostio-errno.c: New. + * server.h (hostio_last_error_from_errno): Declare. + * target.h (target_ops): Add hostio_last_error member. + * linux-low.c (linux_target_op): Register hostio_last_error_from_errno + as hostio_last_error handler. + * spu-low.c (spu_target_ops): Likewise. + * win32-low.c [_WIN32_WCE] (win32_error_to_fileio_error) + (wince_hostio_last_error): New functions. + (win32_target_ops) [_WIN32_WCE]: Register wince_hostio_last_error + as hostio_last_error handler. + (win32_target_ops) [!_WIN32_WCE]: Register + hostio_last_error_from_errno as hostio_last_error handler. + * Makefile.in (SFILES): Add hostio.c and hostio-errno.c. + (hostio-errno.o): New rule. + * configure.ac (GDBSERVER_DEPFILES): Add $srv_hostio_err_objs. + * configure.srv (srv_hostio_err_objs): New variable. Default to + hostio-errno.o. + (arm*-*-mingw32ce*): Set srv_hostio_err_objs to "". + * configure: Regenerate. + +2008-01-29 Daniel Jacobowitz <da...@co...> + + * linux-low.c (linux_attach_lwp): Do not _exit after errors. + (linux_kill, linux_detach): Clean up the process list. + * remote-utils.c (remote_open): Improve port number parsing. + (putpkt_binary, input_interrupt): Only send interrupts if the target + is running. + * server.c (extended_protocol): Make static. + (attached): Define earlier. + (exit_requested, response_needed, program_argv): New variables. + (target_running): New. + (start_inferior): Clear attached here. + (attach_inferior): Set attached here. + (require_running): Define. + (handle_query): Use require_running and target_running. Implement + "monitor exit". + (handle_v_attach, handle_v_run): New. + (handle_v_requests): Use require_running. Handle vAttach and vRun. + (gdbserver_usage): Update. + (main): Redo argument parsing. Handle --debug and --multi. Handle + --attach along with other options or after the port. Save + program_argv. Support no initial program. Resynchronize + communication with GDB after an error. Handle "monitor exit". + Use require_running and target_running. Always allow the extended + protocol. Do not error out for Hc0 or Hc-1. Do not automatically + restart in extended mode. + * README: Refer to the GDB manual. Update --attach usage. + +2007-12-20 Andreas Schwab <sc...@su...> + + * linux-low.c (STACK_SIZE): Define. + (linux_tracefork_child): Use it. Use __clone2 on ia64. + (linux_test_for_tracefork): Likewise. + +2007-12-18 Daniel Jacobowitz <da...@co...> + + * linux-low.c (linux_wait_for_event): Update messages. Do not + reinsert auto-delete breakpoints. + * mem-break.c (struct breakpoint): Change return type of handler to + int. + (set_breakpoint_at): Update handler type. + (reinsert_breakpoint_handler): Return 1 instead of calling + delete_breakpoint. + (reinsert_breakpoint_by_bp): Check for the original breakpoint before + setting a new one. + (check_breakpoints): Delete auto-delete breakpoints and return 2. + * mem-break.h (set_breakpoint_at): Update handler type. + * thread-db.c (thread_db_create_event, thread_db_create_event): Update. + * win32-low.c (auto_delete_breakpoint): New. + (get_child_debug_event): Use it. + +2007-12-16 Daniel Jacobowitz <da...@co...> + + * configure.ac: Check for pread and pwrite. + * hostio.c (handle_pread): Fall back to lseek and read. + (handle_pwrite): Fall back to lseek and write. + * config.in, configure: Regenerated. + +2007-12-07 Daniel Jacobowitz <da...@co...> + + * server.c (myresume): Add own_buf argument. + (main): Update calls. + +2007-12-06 Daniel Jacobowitz <da...@co...> + + * linux-low.c (linux_wait, linux_resume): Do not handle async I/O. + * remote-utils.c (remote_open): Do not call disable_async_io. + (block_async_io): Delete. + (unblock_async_io): Make static. + (initialize_async_io): New. + * server.c (handle_v_cont): Handle async I/O here. + (myresume): Likewise. Move other common resume tasks here... + (main): ... from here. Call initialize_async_io. Disable async + I/O before the main loop. + * server.h (initialize_async_io): Declare. + (block_async_io, unblock_async_io): Delete prototypes. + * spu-low.c (spu_resume, spu_wait): Do not handle async I/O here. + +2007-12-06 Mick Davis <mi...@go...> + + * remote-utils.c (readchar): Allow binary data in received messages. + +2007-12-03 Pedro Alves <ped...@po...> + + * win32-low.c (attaching): New global. + (win32_create_inferior): Clear the `attaching' global. + (win32_attach): Set the `attaching' global. + (get_child_debug_event) [_WIN32_WCE]: Stop the inferior when + attaching. Only set a breakpoint at the entry point if not + attaching. + +2007-12-03 Pedro Alves <ped...@po...> + + * server.c (main): Don't report dll events on the initial + connection on attaches. + +2007-12-03 Pedro Alves <ped...@po...> + + * server.c (main): Relax numerical bases supported for the pid of + the --attach command line argument. + +2007-12-03 Pedro Alves <ped...@po...> + + * win32-low.c (win32_attach): Call OpenProcess before + DebugActiveProcess, not after. Add last error output to error + call. + +2007-12-03 Pedro Alves <ped...@po...> + + * win32-low.c (win32_get_thread_context) + (win32_set_thread_context): New functions. + (thread_rec): Use win32_get_thread_context. + (continue_one_thread, win32_resume): Use win32_set_thread_context. + * win32-low.h (win32_thread_info) [_WIN32_WCE]: Add `base_context' + field. + +2007-12-03 Leo Zayas + Pedro Alves <ped...@po...> + + * win32-low.c (soft_interrupt_requested, faked_breakpoint): New + global variables. + (child_add_thread): Minor cleanup. + (child_continue): Resume artificially suspended threads before + calling ContinueDebugEvent. + (suspend_one_thread): New. + (fake_breakpoint_event): New. + (get_child_debug_event): Change return type to int. Check here if + gdb sent an interrupt request. If a soft interrupt was requested, + fake a breakpoint event. Return 0 if there is no event to handle, + and 1 otherwise. + (win32_wait): Don't check here if gdb sent an interrupt request. + Ensure there is a valid event to handle. + (win32_request_interrupt): Add soft interruption method as last + resort. + +2007-12-03 Leo Zayas + Pedro Alves <ped...@po...> + + * win32-low.h (win32_thread_info): Add descriptions to the + structure members. Replace `suspend_count' counter by a + `suspended' flag. + * win32-low.c (thread_rec): Update condition of when to get the + context from the inferior. Rely on ContextFlags being set if it + has already been retrieved. Only suspend the inferior thread if + we haven't already. Warn if that fails. + (continue_one_thread): s/suspend_count/suspended/. Only call + ResumeThread once. Warn if that fails. + +2007-12-02 Pedro Alves <ped...@po...> + + * win32-low.c (win32_wait): Don't read from the inferior when it + has already exited. + +2007-12-02 Pedro Alves <ped...@po...> + + * Makefile.in (win32_low_h): New variable. + (win32-low.o): Add dependency on $(win32_low_h). + (win32-arm-low.o, win32-i386-low.o): New rules. + +2007-11-30 Daniel Jacobowitz <da...@co...> + + * hostio.c: Correct copyright year. + +2007-11-30 Daniel Jacobowitz <da...@co...> + + * Makefile.in (OBS): Add hostio.o. + (hostio.o): New rule. + * server.h (handle_vFile): Declare. + * hostio.c: New file. + * server.c (handle_v_requests): Take packet_len and new_packet_len + for binary packets. Call handle_vFile. + (main): Update call to handle_v_requests. + +2007-11-05 Daniel Jacobowitz <da...@co...> + + * linux-low.c: Include <sched.h>. + +2007-11-01 Daniel Jacobowitz <da...@co...> + + * linux-low.c (linux_tracefork_grandchild): New. + (linux_tracefork_child): Use clone. + (linux_test_for_tracefork): Use clone; allocate and free a stack. + +2007-10-31 Joel Brobecker <bro...@ad...> + + * Makefile.in: Use $(SHELL) instead of "sh" to call regdat.sh. + +2007-10-24 Daniel Jacobowitz <da...@co...> + + * linux-low.c (handle_extended_wait): Handle unexpected signals. + +2007-10-23 Daniel Jacobowitz <da...@co...> + + * inferiors.c (change_inferior_id): Delete. + (add_pid_to_list, pull_pid_from_list): New. + * linux-low.c (PTRACE_SETOPTIONS, PTRACE_GETEVENTMSG) + (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK, PTRACE_O_TRACEVFORK) + (PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC, PTRACE_O_TRACEVFORKDONE) + (PTRACE_O_TRACEEXIT, PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK) + (PTRACE_EVENT_CLONE, PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE) + (PTRACE_EVENT_EXIT, __WALL): Provide default definitions. + (stopped_pids, thread_db_active, must_set_ptrace_flags): New variables. + (using_threads): Always set to 1. + (handle_extended_wait): New. + (add_process): Do not set TID. + (linux_create_inferior): Set must_set_ptrace_flags. + (linux_attach_lwp): Remove TID argument. Do not check using_threads. + Use PTRACE_SETOPTIONS. Call new_thread_notify. Update all callers. + (linux_thread_alive): Rename TID argument to LWPID. + (linux_wait_for_process): Handle unknown processes. Do not use TID. + (linux_wait_for_event): Do not use TID or check using_threads. Update + call to dead_thread_notify. Call handle_extended_wait. + (linux_create_inferior): Use PTRACE_SETOPTIONS. + (send_sigstop): Delete sigstop_sent. + (wait_for_sigstop): Avoid TID. + (linux_supports_tracefork_flag, linux_tracefork_child, my_waitpid) + (linux_test_for_tracefork): New. + (linux_lookup_signals): Use thread_db_active and + linux_supports_tracefork_flag. + (initialize_low): Use thread_db_active and linux_test_for_tracefork. + * linux-low.h (get_process_thread): Avoid TID. + (struct process_ifo): Move thread_known and tid to the end. Remove + sigstop_sent. + (linux_attach_lwp, thread_db_init): Update prototypes. + * server.h (change_inferior_id): Delete prototype. + (add_pid_to_list, pull_pid_from_list): New prototypes. + * thread-db.c (thread_db_use_events): New. + (find_first_thread): Rename to... + (find_one_thread): ...this. Update callers and messages. Do not + call fatal. Check thread_db_use_events. Do not call + change_inferior_id or new_thread_notify. + (maybe_attach_thread): Update. Do not call new_thread_notify. + (thread_db_init): Set thread_db_use_events. Check use_events. + * utils.c (fatal, warning): Correct message prefix. + +2007-10-15 Daniel Jacobowitz <da...@co...> + + * Makefile.in (clean): Remove new files. + (powerpc-32.o, powerpc-32.c, powerpc-e500.o, powerpc-e500.c) + (powerpc-64.o, powerpc-64.c): New rules. + * configure.srv: Use alternate register sets for powerpc64-*-linux* + with AltiVec, powerpc-*-linux* with AltiVec, and powerpc-*-linux* + with SPE. + * linux-ppc-low.c (ppc_regmap): Do not fetch the FP registers for + SPE targets. + (ppc_cannot_store_register): Do not check for FPSCR for SPE targets. + (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS, ppc_fill_vrregset) + (ppc_store_vrregset, PTRACE_GETEVRREGS, PTRACE_SETEVRREGS) + (struct gdb_evrregset_t, ppc_fill_evrregset, ppc_store_evrregset): New. + (target_regsets): Add AltiVec and SPE register sets. + * configure.ac: Check for AltiVec and SPE. + * linux-ppc64-low.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS) + (ppc_fill_vrregset, ppc_store_vrregset): New. + (target_regsets): Add AltiVec register set. + * configure: Regenerated. + +2007-09-19 Daniel Jacobowitz <da...@co...> + + * linux-low.c (O_LARGEFILE): Define. + (linux_read_memory): Use /proc/PID/mem. + * configure.ac: Use AC_GNU_SOURCE. Check for pread64. + * configure, config.in: Regenerated. + +2007-09-04 Daniel Jacobowitz <da...@co...> + + * linux-low.c (linux_wait_for_event): Do not pass signals while + single-stepping. + +2007-09-03 Pedro Alves <ped...@po...> + + * win32-low.c (create_process): New. + (win32_create_inferior): Use create_process instead of + CreateProcess. If create_process failed retry appending an ".exe" + suffix. Store the GetLastError result immediatelly after + create_process calls and use it on the call to error. + +2007-09-03 Pedro Alves <ped...@po...> + + * win32-low.c (handle_load_dll): Don't use toolhelp when waiting. + +2007-08-23 Joel Brobecker <bro...@ad...> + + * configure.ac: Switch license to GPLv3. + +2007-08-01 Michael Snyder <ms...@ac...> + + * remote-utils.c (putpkt_binary): Memory leak, free buf2. + +2007-07-31 Pedro Alves <ped...@po...> + + * win32-low.c (winapi_CloseToolhelp32Snapshot) [_WIN32_WCE]: New + typedef. + (win32_CloseToolhelp32Snapshot) [_WIN32_WCE]: New global var. + (load_toolhelp) [_WIN32_WCE]: Load TOOLHELP.DLL. Get + CloseToolhelp32Snapshot. + (toolhelp_get_dll_name) [_WIN32_WCE]: Close the snapshot with + CloseToolhelp32Snapshot. + +2007-07-27 Michael Snyder <mic...@ac...> + + * server.c (main): Check for inferior exit before main loop. + +2007-07-18 Pedro Alves <ped...@po...> + + * remote-utils.c (remote_open): Set SO_KEEPALIVE on remote_desc + instead of on tmp_desc. + +2007-07-17 Pedro Alves <ped...@po...> + Daniel Jacobowitz <da...@co...> + + * inferiors.c (all_dlls, dlls_changed, get_dll): New. + (add_thread): Minor cleanups. + (clear_inferiors): Move lower in the file. Clear the DLL + list. + (free_one_dll, match_dll, loaded_dll, unloaded_dll, clear_list): New. + * remote-utils.c (prepare_resume_reply): Check dlls_changed. + (xml_escape_text): New. + * server.c (handle_query): Handle qXfer:libraries:read. Report it + for qSupported. + (handle_v_cont): Report errors. + (gdbserver_version): Update. + (main): Correct size of own_buf. Do not report initial DLL events. + * server.h (struct dll_info, all_dlls, dlls_changed, loaded_dll) + (unloaded_dll, xml_escape_text): New. + * win32-low.c (enum target_waitkind): Update comments. + (win32_add_one_solib, get_image_name, winapi_EnumProcessModules) + (winapi_GetModuleInformation, winapi_GetModuleFileNameExA) + (win32_EnumProcessModules, win32_GetModuleInformation) + (win32_GetModuleFileNameExA, load_psapi, psapi_get_dll_name) + (winapi_CreateToolhelp32Snapshot, winapi_Module32First) + (winapi_Module32Next, win32_CreateToolhelp32Snapshot) + (win32_Module32First, win32_Module32Next, load_toolhelp) + (toolhelp_get_dll_name, handle_load_dll, handle_unload_dll): New. + (get_child_debug_event): Handle DLL events. + (win32_wait): Likewise. + +2007-07-12 Daniel Jacobowitz <da...@co...> + + * configure.srv: Set srv_linux_regsets for sh*-*-linux*. + * linux-sh-low.c (sh_fill_gregset, target_regsets): New. + +2007-07-08 Pedro Alves <ped...@po...> + + * win32-low.c (handle_output_debug_string): Ignore event if not + waiting. + +2007-07-08 Pedro Alves <ped...@po...> + + * win32-arm-low.c (arm_wince_breakpoint): Fix typo. + +2007-07-03 Daniel Jacobowitz <da...@co...> + + * remote-utils.c (look_up_one_symbol): Handle 'm' packets. + +2007-07-02 Daniel Jacobowitz <da...@co...> + + * inferiors.c (change_inferior_id): Add comment. + * linux-low.c (check_removed_breakpoint): Add an early + prototype. Improve debug output. + (linux_attach): Doc update. + (linux_detach_one_process, linux_detach): Clean up before releasing + each process. + (send_sigstop, wait_for_sigstop): Improve comments and debug output. + * linux-low.h (struct process_info): Doc improvement. + * mem-break.c (delete_all_breakpoints): New. + * mem-break.h (delete_all_breakpoints): New prototype. + * thread-db.c (find_first_thread): New. + (thread_db_create_event): Call it instead of + thread_db_find_new_threads. Clean up unused variables. + (maybe_attach_thread): Remove first thread handling. + (thread_db_find_new_threads): Use find_first_thread. + (thread_db_get_tls_address): Likewise. + +2007-06-27 Daniel Jacobowitz <da...@co...> + + * thread-db.c (thread_db_find_new_threads): Add prototype. + (thread_db_create_event): Check for the main thread before adding + a new thread. + (maybe_attach_thread): Only enable event reporting if TID == 0. + (thread_db_get_tls_address): Check for new threads. + +2007-06-20 Daniel Jacobowitz <da...@co...> + + * linux-low.c (linux_create_inferior): Try execv before execvp. + * spu-low.c (spu_create_inferior): Likewise. + +2007-06-13 Mike Frysinger <va...@ge...> + + * linux-low.c (linux_create_inferior): Change execv to execvp. + * spu-low.c (spu_create_inferior): Likewies. + +2007-06-13 Daniel Jacobowitz <da...@co...> + + * Makefile.in (clean): Clean new files instead of deleted ones. + (reg-mips.o, reg-mips.c, reg-mips64.o, reg-mips64.c): Delete. + (mips-linux.o, mips-linux.c, mips64-linux.o, mips64-linux.c): New + rules. + * configure.srv: Specify XML files and new regformats for MIPS and + MIPS64 GNU/Linux. + * linux-mips-low.c (mips_num_regs): Set to only used registers. + (mips_regmap): Do not fetch $0. Remove unused registers. Add + an entry for the restart register. + (mips_cannot_fetch_register, mips_cannot_store_register) + (mips_reinsert_addr, mips_fill_fpregset, mips_store_fpregset): Update + register names to match the XML descriptions. + (mips_fill_gregset, mips_store_gregset): Likewise. Handle the + restart register instead of $0. + +2007-06-12 Ulrich Weigand <uwe...@de...> + Markus Deuling <de...@de...> + + * remote-utils.c (decode_xfer_write): New function. + * server.h (decode_xfer_write): Add prototype. + * server.c (handle_query): Add PACKET_LEN argument. Support + qXfer:spu:read and qXfer:spu:write packets. + (main): Pass packet_len to handle_query. + * spu-low.c (spu_target_ops): Add spu_proc_xfer_spu. + * target.h (target_ops): Add qxfer_spu. + +2007-06-12 Ulrich Weigand <uwe...@de...> + + * spu-low.c (spu_proc_xfer_spu): Do not return failure when + accessing non-seekable spufs files. + +2007-05-16 Markus Deuling <de...@de...> + + * server.c (handle_query): Add reply for qC packet. + +2007-05-10 Pedro Alves <ped...@po...> + Leo Zayas <lerele@champenstudios@com> + + * server.h (check_remote_input_interrupt_request): New function. + * remote_utils.c (INVALID_DESCRIPTOR): New define. + (remote_desc): Initialize with INVALID_DESCRIPTOR. + (input_interrupt): Expose on USE_WIN32API too. Fix whitespace. + (check_remote_input_interrupt_request): New function. + * server.h (check_remote_input_interrupt_request): Declare. + * win32-low.c (winapi_DebugBreakProcess, + winapi_GenerateConsoleCtrlEvent): New typedefs. + (get_child_debug_event): Lower Win32 debug event polling from 1 sec + to 250 ms. + (win32_wait): Check for remote interrupt request + with check_remote_input_interrupt_request. + (win32_request_interrupt): New function. + (win32_target_op): Set request_interrupt to win32_request_interrupt. + +2007-05-10 Pedro Alves <ped...@po...> + + * win32-low.c (debug_registers_changed, + debug_registers_used, CONTEXT_EXTENDED_REGISTERS, + CONTEXT_FLOATING_POINT, CONTEXT_DEBUG_REGISTERS, + CONTEXT_DEBUGGER, CONTEXT_DEBUGGER_DR): Delete. + (thread_rec): Get context using the low target. + (child_add_thread): Call thread_added on the low target, + which does the same thing. + (regptr): Delete. + (do_initial_child_stuff): Remove debug registers references. + Set context using the low target. Resume threads after + setting the contexts. + (child_continue): Remove dead variable. Remove debug + registers references. + (child_fetch_inferior_registers): Go through the low target. + (do_child_store_inferior_registers): Remove. + (child_store_inferior_registers): Go through the low target. + (win32_resume): Remove debug registers references. + Set context using the low target. + (handle_exception): Change return type to void. Don't record + context here. Set status to TARGET_WAITKIND_SPURIOUS on a + first chance exception. + (get_child_debug_event): Change return type to void. Remove + goto loop. Always return after waiting for debug event. + (win32_wait): Convert to switch statement. Handle spurious + events. + + * win32-i386-low.c (debug_registers_changed, + debug_registers_used): New. + (initial_stuff): Rename to ... + (i386_initial_stuff): ... this. Clear debug registers + state variables. + (store_debug_registers): Delete. + (i386_get_thread_context): New. + (load_debug_registers): Delete. + (i386_set_thread_context): New. + (i386_thread_added): New. + (single_step): Rename to ... + (i386_single_step): ... this. + (do_fetch_inferior_registers): Rename to ... + (i386_fetch_inferior_register): ... this. + (i386_store_inferior_register): New. + (the_low_target): Adapt to new interface. + + * win32-arm-low.c (CONTEXT_FLOATING_POINT): Define. + (arm_get_thread_context): New. + (arm_set_thread_context): New. + (regptr): New. + (do_fetch_inferior_registers): Rename to ... + (arm_fetch_inferior_register): ... this. + (arm_store_inferior_register): New. + (arm_wince_breakpoint): Reimplement as unsigned long. + (arm_wince_breakpoint_len): Define. + (the_low_target): Adapt to new interface. + + * win32-low.h (target_ops): Remove regmap, store_debug_registers and + load_debug_registers. Add get_thread_context, set_thread_context, + thread_added and store_inferior_register. Rename + fetch_inferior_registers to fetch_inferior_register. + (regptr): Remove declaration. + +2007-05-10 Pedro Alves <ped...@po...> + + * linux-low.c (linux_detach): Change return type to int. Return 0. + * spu-low.c (spu_detach): Likewise. + +2007-05-10 Pedro Alves <ped...@po...> + + * target.h (target_ops): Change return type of detach to int. + Add join. + (join_inferior): New. + * server.c (main): Don't skip detach support on mingw32. + If the inferior doesn't support detaching return error. + Call join_inferior instead of using waitpid. + * linux-low.c (linux_join): New. + (linux_target_op): Add linux_join. + * spu-low.c (spu_join): New. + (spu_target_ops): Add spu_join. + * win32-low.c (win32_detach): Adapt to new interface. + Reopen current_process_handle before detaching. Issue a child + resume before detaching. + (win32_join): New. + (win32_target_op): Add win32_join. + +2007-05-10 Pedro Alves <ped...@po...> + + * win32-low.c (win32-attach): Fix return value. + * target.h (target_ops): Describe ATTACH return values. + +2007-05-10 Pedro Alves <ped...@po...> + + * win32-low.c (GETPROCADDRESS): Define. + (winapi_DebugActiveProcessStop): Add WINAPI. typedef as pointer. + (winapi_DebugSetProcessKillOnExit): Likewise. + (win32_create_inferior): Force usage of ansi CreateProcessA. + (win32_attach): Use GETPROCADDRESS. + (win32_detach): Likewise. + +2007-05-10 Pedro Alves <ped...@po...> + + * win32-low.c (win32_wait): Don't use WSTOPSIG. + +2007-03-30 Pedro Alves <ped...@po...> + + * win32-low.c: Commit leftover changes from 2007-03-29. + +2007-03-30 Daniel Jacobowitz <da...@co...> + + * i387-fp.c (struct i387_fsave, struct i387_fxsave): Make 16-bit + fields short instead of int. Add explicit padding. + (i387_cache_to_fsave): Remove unnecessary casts. + (i387_fsave_to_cache): Doc fix. + (i387_cache_to_fxsave): Remove unnecessary casts and masking. + +2007-03-30 Daniel Jacobowitz <da...@co...> + + * i387-fp.c (i387_cache_to_fxsave): Reinitialize val2 before use. + (i387_fxsave_to_cache): Check fp->ftag while building ftag value. + +2007-03-29 Pedro Alves <ped...@po...> + + * configure.srv (arm*-*-mingw32ce*): Move near the other + arm targets. + +2007-03-29 Pedro Alves <ped...@po...> + + * configure.ac: Add errno checking. + (AC_CHECK_HEADERS): Add errno.h, fcntl.h, signal.h, + sys/file.h and malloc.h. + (AC_CHECK_DECLS): Add perror. + (srv_mingwce): Handle. + * configure.srv (i[34567]86-*-cygwin*): Add + win32-i386-low.o to srv_tgtobj. + (i[34567]86-*-mingw*): Likewise. + (arm*-*-mingw32ce*): Add case. + * gdbreplay.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H, + HAVE_FCNTL_H, HAVE_ERRNO_H, HAVE_MALLOC_H]: Check. + [__MINGW32CE__] (strerror): New function. + [__MINGW32CE__] (errno): Define to GetLastError. + [__MINGW32CE__] (COUNTOF): New macro. + (remote_open): Remove extra close call. + * mem-break.c (delete_breakpoint_at): New function. + * mem-break.h (delete_breakpoint_at): Declare. + * remote-utils.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H, + HAVE_FCNTL_H, HAVE_UNISTD_H, HAVE_ERRNO_H]: Check. + [USE_WIN32API] (read, write): Add char* casts. + * server.c [HAVE_UNISTD_H, HAVE_SIGNAL_H]: Check. + * server.h: Include wincecompat.h on Windows CE. + [HAVE_ERRNO_H]: Check. + (perror): Declare if not declared. + * utils.c: Add stdlib.h, errno.h and malloc.h includes. + (perror_with_name): Remove errno declaration. + * wincecompat.h: New. + * wincecompat.c: New. + * win32-low.h: New. + * win32-arm-low.c: New. + * win32-i386-low.c: New. + (win32-low.c): Include mem-break.h and win32-low.h, and winnt.h. + (OUTMSG2): Make it safe. + (_T): New macro. + (COUNTOF): New macro. + (NUM_REGS): Get it from the low target. + (CONTEXT_EXTENDED_REGISTERS, CONTEXT_FLOATING_POINT, + CONTEXT_DEBUG_REGISTERS): Add fallbacks to 0. + (thread_rec): Let low target handle debug registers. + (child_add_thread): Likewise. + (child_init_thread_list): Likewise. + (continue_one_thread): Likewise. + (regptr): New. + (do_child_fetch_inferior_registers): Move to ... + * win32-i386-low.c: ... here, and rename to ... + (do_fetch_inferior_registers): ... this. + * win32-low.c (child_fetch_inferior_registers): + Go through the low target. + (do_child_store_inferior_registers): Use regptr. + (strwinerror): New function. + (win32_create_inferior): Handle Windows CE. + Use strwinerror instead of strerror on Windows error + codes. Add program to the error output. + Don't close the main thread handle on Windows CE. + (win32_attach): Use coredll.dll on Windows CE. + (win32_kill): Close current process and current + thread handles. + (win32_detach): Use coredll.dll on Windows CE. + (win32_resume): Let low target handle debug registers, and + step request. + (handle_exception): Add/Remove initial breakpoint. Avoid + non-existant WSTOPSIG on Windows CE. + (win32_read_inferior_memory): Cast to remove warning. + (win32_arch_string): Go through the low target. + (initialize_low): Call set_breakpoint_data with the low + target's breakpoint. + * win32-low.c (dr, FLAG_TRACE_BIT, FCS_REGNUM, + FOP_REGNUM, mappings): Move to ... + * win32-i386-low.c: ... here. + * win32-low.c (win32_thread_info): Move to ... + * win32-low.h: ... here. + * Makefile.in (SFILES): Add win32-low.c, win32-i386-low.c, + win32-arm-low.c and wincecompat.c. + (all:): Add $EXEEXT. + (install-only:): Likewise. + (gdbserver:): Likewise. + (gdbreplay:): Likewise. + * config.in: Regenerate. + * configure: Regenerate. + +2007-03-28 Pedro Alves <ped...@po...> + + * win32-low.c: Rename typedef thread_info to + win32_thread_info throughout. + +2007-03-28 Pedro Alves <ped...@po...> + + * win32-i386-low.c: Rename to ... + * win32-low.c: ... this. + * configure.srv: Replace win32-i386-low.o with win32-low.o. + * Makefile.in: Likewise. + +2007-03-27 Pedro Alves <ped...@po...> + + * remote-utils.c (monitor_output): Constify msg parameter. + * server.h (monitor_output): Likewise. + * win32-i386-low.c (handle_output_debug_string): New. + (win32_kill): Handle OUTPUT_DEBUG_STRING_EVENT events using + handle_output_debug_string. + (get_child_debug_event): Likewise. + +2007-03-27 Mat Hostetter <ma...@lc...> + + * server.c (main): Correct strtoul check. + +2007-03-27 Jon Ringle <jo...@ri...> + + * linux-low.c: Check __ARCH_HAS_MMU__ also. + +2007-03-27 Brooks Moses <bro...@co...> + + * Makefile.in: Add dummy "pdf" and "install-pdf" targets. + +2007-02-27 Daniel Jacobowitz <da...@co...> + + * terminal.h: Check HAVE_SGTTY_H. + +2007-02-27 Mat Hostetter <ma...@lc...> + + * remote-utils.c (remote_open): Print out the assigned port number. + +2007-02-26 Daniel Jacobowitz <da...@co...> + + * remote-utils.c (monitor_output): New function. + * server.c (debug_threads): Define here. + (monitor_show_help): New function. + (handle_query): Handle qRcmd. + (main): Do not handle 'd' packet. + * server.h (debug_threads, remote_debug, monitor_output): Declare. + * linux-low.c, spu-low.c, win32-i386-low.c: Remove definitions + of debug_threads. + +2007-02-25 Pedro Alves <ped...@po...> + + * Makefile.in (EXEEXT): New. + (clean): Use $(EXEEXT). + +2007-02-25 Pedro Alves <ped...@po...> + + * target.h (target_ops): Rename send_signal to request_interrupt, + and remove enum target_signal parameter. + * linux-low.c (linux_request_interrupt): Rename from + linux_send_signal, and always send SIGINT. + * spu-low.c (spu_request_interrupt): Rename from spu_send_signal, + and always send SIGINT. + * remote-utils.c (putpkt_binary): Call request_interrupt, instead + of send_signal. + (input_interrupt): Likewise. + +2007-02-25 Pedro Alves <ped...@po...> + + * server.c (get_features_xml): Check if target implemented + arch_string. + * win32-i386-low.c (win32_arch_string): New. + (win32_target_ops): Add win32_arch_string as arch_string member. + +2007-02-22 Markus Deuling <de...@de...> + + * spu-low.c (spu_arch_string): New. + (spu_target_ops): Add spu_arch_string. + +2007-02-16 Daniel Jacobowitz <da...@co...> + + * remote-utils.c: Remove HAVE_TERMINAL_H check. + * configure.ac: Do not check for terminal.h. + * configure, config.in: Regenerated. + +2007-02-08 Daniel Jacobowitz <da...@co...> + + * Makefile.in (OBS): Add $(XML_BUILTIN). + (XML_DIR, XML_TARGET, XML_FILES, XML_BUILTIN): New. + (clean): Update. + (target.xml, xml-builtin.c, stamp-xml, arm-with-iwmmxt.o) + (arm-with-iwmmxt.c): New. + * config.in, configure: Regenerate. + * configure.ac: Check for iWMMXt. Handle srv_xmltarget, + srv_xmlbuiltin, and srv_xmlfiles. Define USE_XML. + * configure.srv: Mention srv_xmltarget and srv_xmlfiles. + (arm*-*-linux*): Add iWMMXt and regset support. + * linux-arm-low.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define. + (arm_fill_gregset, arm_store_gregset, arm_fill_wmmxregset) + (arm_store_wmmxregset, target_regsets): New. + * server.c (get_features_xml): Take annex argument. Check builtin + XML documents. + (handle_query): Handle multiple annexes. + +2007-01-29 Daniel Jacobowitz <da...@co...> + + * remote-utils.c [USE_WIN32API] (read, write): Define. + (putpkt_binary, input_interrupt, readchar, getpkt): Use read and + write. + +2007-01-09 Daniel Jacobowitz <da...@co...> + + * linux-i386-low.c (the_low_target): Set arch_string. + * linux-x86-64-low.c (the_low_target): Likewise. + * linux-low.c (linux_arch_string): New. + (linux_target_ops): Add it. + * linux-low.h (struct linux_target_ops): Add arch_string. + * server.c (write_qxfer_response): Use const void * for DATA. + (get_features_xml): New. + (handle_query): Handle qXfer:features:read. Report it for qSupported. + * target.h (struct target_ops): Add arch_string method. + +2007-01-03 Denis Pilat <den...@st...> + Daniel Jacobowitz <da...@co...> + + * linux-low.c (linux_kill): Handle being called with no threads. + * win32-i386-low.c (win32_kill): Likewise. + (get_child_debug_event): Clear current_process_handle. + +2006-12-30 Denis PILAT <den...@st...> + Daniel Jacobowitz <da...@co...> + + * remote-utils.c (remote_open): Check the type of specified + serial port devices before opening them. + * server.c (main): Kill the inferior if an error occurs during + the first remote_open. + +2006-12-05 Markus Deuling <de...@de...> + + * README: Update supported targets. + +2006-11-28 Daniel Jacobowitz <da...@co...> + + * Makefile.in (clean): Remove reg-mips64.c. + (reg-mips64.c, reg-mips64.o): New rules. + * configure.srv: Handle mips64. Include regset support for mips. + * linux-mips-low.c (union mips_register): New. + (mips_get_pc, mips_set_pc, mips_reinsert_addr): Use it. + (mips_breakpoint, mips_breakpoint_at): Use int. + (mips_collect_register, mips_supply_register) + (mips_collect_register_32bit, mips_supply_register_32bit) + (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset) + (mips_store_fpregset, target_regsets): New. + * thread-db.c (thread_db_get_tls_address): Use uintptr_t. + +2006-11-22 Ulrich Weigand <uwe...@de...> + + * configure.srv: Add target "spu*-*-*". + * Makefile.in (clean): Remove reg-spu.c. + (reg-spu.c, reg-spu.o, spu-low.o): Add dependencies. + * spu-low.c: New file. + +2006-11-16 Daniel Jacobowitz <da...@co...> + + * configure.ac: Correct td_thr_tls_get_addr test. + * configure: Regenerated. + +2006-11-16 Daniel Jacobowitz <da...@co...> + + * linux-low.c (linux_wait_for_event): Reformat. Use the + pass_signals array. + * remote-utils.c (decode_address_to_semicolon): New. + * server.c (pass_signals, handle_general_set): New. + (handle_query): Mention QPassSignals for qSupported. + (main): Call handle_general_set. + * server.h (pass_signals, decode_address_to_semicolon): New. + +2006-11-06 Daniel Jacobowitz <da...@co...> + + * server.c (handle_query): Correct error handling for read_auxv. + +2005-10-19 Ulrich Weigand <uwe...@de...> + + * configure.srv [s390-*-linux*, s390x-*-linux*]: Set srv_linux_regsets + and srv_linux_thread_db to yes. + * linux-s390-low.c (s390_fill_gregset): New function. + (target_regsets): Define data structure. + +2006-10-17 Daniel Jacobowitz <da...@co...> + + * acinclude.m4 (SRV_CHECK_TLS_GET_ADDR): New. + * configure.ac: Use it. Define HAVE_TD_THR_TLS_GET_ADDR. + * config.in, configure: Regenerated. + * inferiors.c (gdb_id_to_thread): New function. + (gdb_id_to_thread_id): Use it. + * linux-low.c (linux_target_ops): Use thread_db_get_tls_address. + * linux-low.h (struct process_info): Add th member. + (thread_db_get_tls_address): New prototype. + * remote-utils.c (decode_address): Make non-static. + * server.c (handle_query): Handle qGetTLSAddr. + * server.h (gdb_id_to_thread, decode_address): New prototypes. + * target.h (struct target_ops): Add get_tls_address. + * thread-db.c (maybe_attach_thread): Save the thread handle. + (thread_db_get_tls_address): New. + +2006-09-28 Daniel Jacobowitz <da...@co...> + + * linux-low.c (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define. + (linux_resume_one_process): Take a siginfo_t *. Update all + callers. Queue it if necessary. Use PTRACE_SETSIGINFO. + (struct pending_signals): Add a siginfo_t. + (linux_wait_for_process): Always set last_status. + (linux_wait_for_event): Use PTRACE_GETSIGINFO. + (linux_queue_one_thread): Use PTRACE_GETSIGINFO. + * linux-low.h (struct process_info): Add last_status. + +2006-09-21 Daniel Jacobowitz <da...@co...> + + * remote-utils.c (try_rle): New function. + (putpkt_binary): Use it. + +2006-08-19 Daniel Jacobowitz <da...@co...> + + * Makefile.in (clean): Clean reg-x86-64-linux.c. + (reg-x86-64-linux.o, reg-x86-64-linux.c): New. + * configure.srv (x86_64-*-linux*): Use reg-x86-64-linux.o. + * linux-x86-64-low.c (x86_64_regmap): Include ORIG_RAX. + (x86_64_fill_gregset, x86_64_store_gregset): Skip floating + point registers. + +2006-08-08 Richard Sandiford <ri...@co...> + + * server.c (terminal_fd): New variable. + (old_foreground_pgrp): Likewise. + (restore_old_foreground_pgrp): New function. + (start_inferior): Record the terminal file descriptor in terminal_fd + and its original foreground group in old_foreground_pgrp. Register + restore_old_foreground_pgrp with atexit(). + +2006-07-26 Daniel Jacobowitz <da...@co...> + + * server.c (handle_query): Correct qPart to qXfer. + +2006-07-22 Daniel Jacobowitz <da...@co...> + + * configure.ac: Check for more headers which are missing on + Windows. Automatically supply -lwsock32 and USE_WIN32API. + * configure.srv: Add Cygwin and mingw32. + * remote-utils.c: Don't include headers unconditionally which + are missing on mingw32. Include <winsock.h> for mingw32. + (remote_open): Adjust for mingw32 support. Flush + standard error after writing to it. + (remote_close, putpkt_binary, input_interrupt, block_async_io) + (unblock_async_io, enable_async_io, disable_async_io) + (readchar, getpkt): Update for Winsock support. + (prepare_resume_reply): Expect a protocol signal number. + * server.c: Disable <sys/wait.h> on mingw32. + (start_inferior): Adjust for mingw32 support. Flush + standard error after writing to it. + (attach_inferior): Likewise. Use protocol signal + numbers. + (main): Skip 'D' packet on mingw32. Use protocol signal numbers + and names. + * win32-i386-low.c: New file. + * Makefile.in (XM_CLIBS): Set. + (gdbserver, gdbreplay): Use $(INTERNAL_CFLAGS). + (win32-i386-low.o): New dependency rule. + * linux-low.c (linux_wait): Use target signal numbers. + * target.h (struct target_ops): Doc fix. + * server.h (target_signal_to_name): New prototype. + * gdbreplay.c: Don't include headers unconditionally which + are missing on mingw32. Include <winsock.h> for mingw32. + (remote_close, remote_open): Adjust for Winsock support. + * configure, config.in: Regenerated. + +2006-07-12 Daniel Jacobowitz <da...@co...> + + * server.c (decode_xfer_read, write_qxfer_response): New. + (handle_query): Take a packet length argument. Handle + qXfer:auxv:read instead of qPart:auxv:read. Mention it in + the qSupported response. + (main): Update call to handle_query. + +2006-06-22 Daniel Jacobowitz <da...@co...> + + * remote-utils.c (remote_escape_output, remote_unescape_input): New. + (putpkt_binary): Renamed from putpkt and adjusted for binary + data. + (putpkt): New wrapper for putpkt_binary. + (readchar): Don't mask off the high bit. + (decode_X_packet): New function. + * server.c (main): Call putpkt_binary if a handler sets the packet + length. Save the length of the incoming packet. Handle 'X'. + * server.h (gdb_byte, remote_escape_output, decode_X_packet): New. + +2006-06-21 Daniel Jacobowitz <da...@co...> + + * server.c (handle_query): Handle qSupported. + +2006-05-30 Daniel Jacobowitz <da...@co...> + + * remote-utils.c (all_symbols_looked_up): New variable. + (look_up_one_symbol): Check it. + * server.h (look_up_one_symbol): New declaration. + * thread-db.c (thread_db_init): Set all_symbols_looked_up. + +2006-05-30 Daniel Jacobowitz <da...@co...> + + * Makefile.in (linux-arm-low.o): Update dependencies. + * linux-arm-low.c: Include "gdb_proc_service.h". + (PTRACE_GET_THREAD_AREA): Define. + (ps_get_thread_area): New function. + +2006-05-09 Nathan Sidwell <na...@co...> + + * configure.srv (m68k*-*-uclinux*): New target. + * linux-low.c (linux_create_inferior): Use vfork on mmuless systems. + (linux_resume_one_process): Remove extraneous cast. + (linux_read_offsets): New. + (linux_target_op): Add linux_read_offsets on mmuless systems. + * server.c (handle_query): Add qOffsets logic. + * target.h (struct target_ops): Add read_offsets. + +2006-03-15 Daniel Jacobowitz <da...@co...> + + * linux-mips-low.c: Include <sys/ptrace.h> and "gdb_proc_service.h". + (PTRACE_GET_THREAD_AREA): Define. + (ps_get_thread_area): New function. + * Makefile.in (linux-i386-low.o, linux-mips-low.o) + (linux-x86-64-low.o): Update. + +2006-03-15 Daniel Jacobowitz <da...@co...> + + * configure.ac: Remove checks for prfpregset_t. + * gdb_proc_service.h: New file. + * linux-i386-low.c, linux-x86-64-low.c, thread-db.c: Use the + new "gdb_proc_service.h". + * proc-service.c: Likewise. + (ps_pglobal_lookup, ps_pdread, ps_pdwrite): Use psaddr_t. + (ps_lgetfpregs, ps_lsetfpregs): Use a void* argument. + * Makefile.in (gdb_proc_service_h): Updated. + * configure, config.in: Regenerated. + +2006-03-03 Daniel Jacobowitz <da...@co...> + + * remote-utils.c (prepare_resume_reply): Move declaration + of gdb_id_from_wait to the top of the block. + +2006-02-15 Daniel Jacobowitz <da...@co...> + + * linux-low.c (regsets_store_inferior_registers): Read the regset + from the target before filling it. + +2006-02-08 Daniel Jacobowitz <da...@co...> + + * server.c (attach_inferior): Return SIGTRAP for a successful + attach. + +2006-02-01 Daniel Jacobowitz <da...@co...> + + * Makefile.in (OBS): Add version.o. + (STAGESTUFF): Delete. + (version.o): Add dependencies. + (version.c): Replace rule. + (clean): Remove version.c. + * server.c (gdbserver_version): New. + (gdbserver_usage): Use printf. + (main): Handle --version and --help. + * server.h (version, host_name): Add declarations. + +2005-12-23 Eli Zaretskii <el...@gn...> + + * linux-arm-low.c: + * linux-arm-low.c: + * inferiors.c: + * i387-fp.h: + * i387-fp.c: + * gdbreplay.c: + * regcache.c: + * proc-service.c: + * mem-break.h: + * mem-break.c: + * linux-x86-64-low.c: + * linux-sh-low.c: + * linux-s390-low.c: + * linux-ppc64-low.c: + * linux-ppc-low.c: + * linux-mips-low.c: + * linux-m68k-low.c: + * linux-m32r-low.c: + * linux-low.h: + * linux-low.c: + * linux-ia64-low.c: + * linux-i386-low.c: + * linux-crisv32-low.c: + * thread-db.c: + * terminal.h: + * target.h: + * target.c: + * server.h: + * server.c: + * remote-utils.c: + * regcache.h: + * utils.c: + * Makefile.in: + * configure.ac: + * gdbserver.1: Add (C) after Copyright. Update the FSF + address. + +2005-11-13 Daniel Jacobowitz <da...@co...> + + * linux-arm-low.c (arm_eabi_breakpoint): New variable. + (arm_breakpoint_at): Recognize both breakpoints. + (the_low_target): Use the correct breakpoint instruction. + +2005-11-02 Daniel Jacobowitz <da...@co...> + + * configure.srv (x86_64-*-linux*): Turn on thread_db support. + * linux-x86-64-low.c (x86_64_breakpoint, x86_64_breakpoint_len) + (x86_64_get_pc, x86_64_set_pc, x86_64_breakpoint_at): New. + (the_low_target): Update. + +2005-10-25 Andreas Schwab <sc...@su...> + + * server.c (main): Allocate mem_buf with PBUFSIZ bytes. + + * linux-ia64-low.c (ia64_regmap): Remove NAT registers. + (ia64_num_regs): Reduce to 462. + +2005-09-17 Daniel Jacobowitz <da...@co...> + + * acinclude.m4: Correct quoting. + * aclocal.m4: Regenerated. + + Suggested by SZOKOVACS Robert <sz...@ie...>: + * thread-db.c (thread_db_err_str): Handle TD_VERSION. + (thread_db_init): Call thread_db_err_str. + * configure.ac: Check for TD_VERSION. + * config.in, configure: Regenerated. + +2005-07-31 Kaveh R. Ghazi <gh...@ca...> + + * server.h (error, fatal, warning): Add ATTR_FORMAT. + +2005-07-13 Daniel Jacobowitz <da...@co...> + + * configure.ac: Define HAVE_LINUX_REGSETS even if PTRACE_GETREGS + is not available. Define HAVE_PTRACE_GETREGS if it is. + * config.in, configure: Regenerated. + * configure.srv: Set srv_linux_regsets for PowerPC and PowerPC64. + * linux-i386-low.c, linux-m68k-low.c: Update to use + HAVE_PTRACE_GETREGS. + * linux-low.c (regsets_fetch_inferior_registers) + (regsets_store_inferior_registers): Only return 0 if we processed + GENERAL_REGS. + * linux-ppc-low.c (ppc_fill_gregset, target_regsets): New. + * linux-ppc64-low.c (ppc_fill_gregset, target_regsets): New. + +2005-07-13 Daniel Jacobowitz <da...@co...> + + * inferiors.c (struct thread_info): Add gdb_id. + (add_thread): Add gdb_id argument. + (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New. + * linux-low.c (linux_create_inferior, linux_attach_lwp): Update + calls to add_thread. + * remote-utils.c (prepare_resume_reply: Use thread_to_gdb_id. + * server.c (handle_query): Use thread_to_gdb_id. + (handle_v_cont, main): Use gdb_id_to_thread_id. + * server.h (add_thread): Update prototype. + (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New + prototypes. + +2005-07-13 Daniel Jacobowitz <da...@co...> + + * linux-low.c (fetch_register, usr_store_inferior_registers): Handle + left-padded registers. + * linux-low.h (struct linux_target_ops): Add left_pad_xfer. + * linux-ppc64-low.c (the_low_target): Set left_pad_xfer. + +2005-07-01 Steve Ellcey <sj...@cu...> + + * configure.ac (BFD_NEED_DECLARATION): Replace with AC_CHECK_DECLS. + * configure: Regenerate. + * config.in: Regenerate. + * server.h (NEED_DECLARATION_STRERROR): + Replace with !HAVE_DECL_STRERROR. + +2005-06-16 Daniel Jacobowitz <da...@co...> + + * linux-low.c (linux_wait, linux_send_signal): Don't test + an unsigned long variable for > 0 if it could be MAX_ULONG. + * server.c (myresume): Likewise. + * target.c (set_desired_inferior): Likewise. + +2005-06-13 Mark Kettenis <ket...@gn...> + + * configure.ac: Simplify and improve check for socklen_t. + * configure, config.in: Regenerate. + +2005-06-12 Daniel Jacobowitz <da...@co...> + + * acconfig.h: Remove. + * configure.ac: Add a test for socklen_t. Use three-argument + AC_DEFINE throughout. + * config.in: Regenerated using autoheader 2.59. + * configure: Regenerated. + + * gdbreplay.c (socklen_t): Provide a default. + (remote_open): Use socklen_t. + * remote-utils.c (socklen_t): Provide a default. + (remote_open): Use socklen_t. + (convert_int_to_ascii, convert_ascii_to_int, decode_M_packet): Use + unsigned char. + + * i387-fp.c (struct i387_fsave, struct i387_fxsave): Use unsigned + char for buffers. + * linux-low.c (linux_read_memory, linux_write_memory) + (linux_read_auxv): Likewise. + * mem-break.c (breakpoint_data, set_breakpoint_data, check_mem_read) + (check_mem_write): Likewise. + * mem-break.h (set_breakpoint_data, check_mem_read, check_mem_write): + Likewise. + * regcache.c (struct inferior_rgcache_data, registers_to_string) + (registers_from_string, register_data): Likewise. + * server.c (handle_query, main): Likewise. + * server.h (convert_ascii_to_int, convert_int_to_ascii) + (decode_M_packet): Likewise. + * target.c (read_inferior_memory, write_inferior_memory): Likewise. + * target.h (struct target_ops): Update read_memory, write_memory, + and read_auxv. + (read_inferior_memory, write_inferior_memory): Update. + * linux-low.h (struct linux_target_ops): Change type of breakpoint + to unsigned char *. + * linux-arm-low.c, linux-cris-low.c, linux-crisv32-low.c, + linux-i386-low.c, linux-m32r-low.c, linux-m68k-low.c, + linux-mips-low.c, linux-ppc-low.c, linux-ppc64-low.c, + linux-s390-low.c, linux-sh-low.c: Update for changes in + read_inferior_memory and the_low_target->breakpoint. + +2005-05-28 Daniel Jacobowitz <da...@co...> + + * Makefile.in (SFILES): Add linux-ppc64-low.c. + (linux-ppc64-low.o, reg-ppc64.c, reg-ppc64.o): New targets. + * configure.srv: Add powerpc64-*-linux*. + * linux-ppc64-low.c: New file. + +2005-05-23 Orjan Friberg <or...@ax...> + + * linux-cris-low.c: New file with support for CRIS. + * linux-crisv32-low.c: Ditto for CRISv32. + * Makefile.in (SFILES): Add linux-cris-low.c, linux-crisv32-low.c. + (clean): Add reg-cris.c and reg-crisv32.c. + Add linux-cris-low.o, linux-crisv32-low.o, reg-cris.o, reg-cris.c, + reg-crisv32.o, and reg-crisv32.c to make rules. + * configure.srv: Add cris-*-linux* and crisv32-*-linux* to list of + recognized targets. + +2005-05-16 Ulrich Weigand <uwe...@de...> + + * linux-low.c (fetch_register): Ensure buffer size is a multiple + of sizeof (PTRACE_XFER_TYPE). + (usr_store_inferior_registers): Likewise. Zero out excess bytes. + +2005-05-12 Orjan Friberg <or...@ax...> + + * target.h (struct target_ops): Add insert_watchpoint, + remove_watchpoint, stopped_by_watchpoint, stopped_data_address function + pointers for hardware watchpoint support. + * linux-low.h (struct linux_target_ops): Ditto. + * linux-low.c (linux_insert_watchpoint, linux_remove_watchpoint) + (linux_stopped_by_watchpoint, linux_stopped_data_address): New. Add + to linux_target_ops. + * remote-utils.c (prepare_resume_reply): Add watchpoint information to + reply packet. + * server.c (main): Recognize 'Z' and 'z' packets. + +2005-05-10 Ulrich Weigand <uwe...@de...> + + * linux-s390-low.c (s390_breakpoint, s390_breakpoint_len): Define. + (s390_get_pc, s390_set_pc, s390_breakpoint_at): New functions. + (the_low_target): Add new members. + +2005-05-04 Daniel Jacobowitz <da...@co...> + + * proc-service.c (ps_lgetregs): Search all_processes instead of + all_threads. + +2005-05-04 Daniel Jacobowitz <da...@co...> + + * server.c (start_inferior): Change return type to int. + (attach_inferior): Change sigptr to int *. + (handle_v_cont, handle_v_requests): Change signal to int *. + (main): Change signal to int. + +2005-04-15 Kei Sakamoto <sak...@re...> + + * Makefile.in: Add linux-m32r-low.o, reg-m32r.c and reg-m32r.o. + * configure.srv: Add m32r*-*-linux*. + * linux-m32r-low.c: New file. + +2005-03-04 Daniel Jacobowitz <da...@co...> + + * Makefile.in (stamp-h): Set CONFIG_HEADERS explicitly. + +2005-03-03 Daniel Jacobowitz <da...@co...> + + * inferiors.c (change_inferior_id, add_thread, find_inferior_id): + Take unsigned long arguments for PIDs. + * linux-low.c (add_process, linux_attach_lwp, linux_attach) + (linux_thread_alive, linux_wait_for_event, kill_lwp, send_sigstop) + (wait_for_sigstop, linux_resume_one_process) + (regsets_fetch_inferior_registers, linux_send_signal) + (linux_read_auxv): Likewise. Update the types of variables holding + PIDs. Update format string specifiers. + * linux-low.h (struct process_info, linux_attach_lwp): Likewise. + * remote-utils.c (prepare_resume_reply): Likewise. + * server.c (cont_thread, general_thread, step_thread) + (thread_from_wait, old_thread_from_wait, signal_pid): Change type to + unsigned long. + (handle_query): Update format specifiers. + (handle_v_cont, main): Use strtoul for thread IDs. + * server.h (struct inferior_list_entry): Use unsigned long for ID. + (add_thread, find_inferior_id, change_inferior_id, cont_thread) + (general_thread, step_thread, thread_from_wait) + (old_thread_from_wait): Update. + * target.h (struct thread_resume): Use unsigned long for THREAD. + (struct target_ops): Use unsigned long for arguments to attach and + thread_alive. + +2005-02-24 Daniel Jacobowitz <da...@co...> + + * acinclude.m4: Include bfd/bfd.m4 directly. + * configure.ac: Use AC_ARG_PROGRAM. Suggested by Aron Griffis + <agr...@to...>. + * aclocal.m4, configure: Regenerated. + +2005-01-07 Andrew Cagney <ca...@gn...> + + * configure.ac: Rename configure.in, require autoconf 2.59. + * configure: Re-generate. + +2004-12-08 Daniel Jacobowitz <da...@de...> + + * acinclude.m4 (SRV_CHECK_THREAD_DB): Add ps_get_thread_area. Reset + LIBS when finished. + * aclocal.m4: Regenerated. + * configure: Regenerated. + +2004-11-21 Andreas Schwab <sc...@su...> + + * linux-m68k-low.c (m68k_num_gregs): Define. + (m68k_fill_gregset, m68k_store_gregset, m68k_fill_fpregset) + (m68k_store_fpregset, target_regsets) [HAVE_LINUX_REGSETS]: New. + (m68k_breakpoint, m68k_breakpoint_len, m68k_get_pc, m68k_set_pc) + (m68k_breakpoint_at): New. Add to the_low_target. + + * configure.srv (m68*-*-linux*): Set srv_linux_regsets and + srv_linux_thread_db to yes. + +2004-10-20 Joel Brobecker <bro...@gn...> + + * linux-x86-64-low.c (ARCH_SET_GS): Add definition if missing. + (ARCH_SET_FS): Likewise. + (ARCH_GET_FS): Likewise. + (ARCH_GET_GS): Likewise. + +2004-10-16 Daniel Jacobowitz <da...@de...> + + * linux-i386-low.c (ps_get_thread_area): New. + * linux-x86-64-low.c (ps_get_thread_area): New. + * linux-low.c: Include <sys/syscall.h>. + (linux_kill_one_process): Don't kill the first thread here. + (linux_kill): Kill the first thread here. + (kill_lwp): New function. + (send_sigstop, linux_send_signal): Use it. + * proc-service.c: Clean up #ifdefs. + (fpregset_info): Delete. + (ps_lgetregs): Update and enable implementation. + (ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs): Remove disabled + implementations. + * remote-utils.c (struct sym_cache, symbol_cache): New. + (input_interrupt): Print a clearer message. + (async_io_enabled): New variable. + (enable_async_io, disable_async_io): Use it. Update comments. + (look_up_one_symbol): Use the symbol cache. + * thread-db.c (thread_db_look_up_symbols): New function. + (thread_db_init): Update comments. Call thread_db_look_up_symbols. + +2004-10-16 Daniel Jacobowitz <da...@de...> + + * configure.in: Test for -rdynamic. + * configure: Regenerated. + * Makefile (INTERNAL_LDFLAGS): New. + (gdbserver, gdbreplay): Use it. + +2004-09-02 Andrew Cagney <ca...@gn...> + + * Makefile.in (TAGS): Replace TM_FILE with DEPRECATED_TM_FILE. + +2004-03-23 Daniel Jacobowitz <dr...@mv...> + + * linux-low.c (linux_wait): Clear all_processes list also. + +2004-03-12 Daniel Jacobowitz <dr...@mv...> + + * linux-low.c: Include <errno.h>. Remove extern declaration of + errno. + +2004-03-12 Daniel Jacobowitz <dr...@mv...> + + * gdbreplay.c, server.h, utils.c: Update copyright years. + +2004-03-04 Nathan J. Williams <na...@wa...> + + * server.c (main): Print child status or termination signal from + variable 'signal', not 'sig'. + +2004-03-04 Nathan J. Williams <na...@wa...> + + * linux-low.c (linux_read_memory): Change return type to + int. Check for and return error from ptrace(). + * target.c (read_inferior_memory): Change return type to int. Pass + back return status from the_target->read_memory(). + * ta... [truncated message content] |
From: <dan...@us...> - 2010-03-14 08:08:10
|
Revision: 1447 http://cegcc.svn.sourceforge.net/cegcc/?rev=1447&view=rev Author: dannybackx Date: 2010-03-14 08:07:58 +0000 (Sun, 14 Mar 2010) Log Message: ----------- Make some functions appear for CE as well Modified Paths: -------------- trunk/cegcc/src/w32api/ChangeLog.ce trunk/cegcc/src/w32api/include/ws2tcpip.h Modified: trunk/cegcc/src/w32api/ChangeLog.ce =================================================================== --- trunk/cegcc/src/w32api/ChangeLog.ce 2010-03-02 17:26:08 UTC (rev 1446) +++ trunk/cegcc/src/w32api/ChangeLog.ce 2010-03-14 08:07:58 UTC (rev 1447) @@ -1,3 +1,8 @@ +2010-03-14 Danny Backx <dan...@us...> + + * include/ws2tcpip.h (freeaddrinfo, getaddrinfo, getnameinfo) : Define + also for Windows CE. + 2010-02-10 Danny Backx <dan...@us...> * include/winuser.h (MonitorFromPoint, MonitorFromRect, Modified: trunk/cegcc/src/w32api/include/ws2tcpip.h =================================================================== --- trunk/cegcc/src/w32api/include/ws2tcpip.h 2010-03-02 17:26:08 UTC (rev 1446) +++ trunk/cegcc/src/w32api/include/ws2tcpip.h 2010-03-14 08:07:58 UTC (rev 1447) @@ -307,7 +307,7 @@ struct addrinfo *ai_next; }; -#if (_WIN32_WINNT >= 0x0501) +#if (_WIN32_WINNT >= 0x0501) || (_WIN32_WCE > 0x0400) void WSAAPI freeaddrinfo (struct addrinfo*); int WSAAPI getaddrinfo (const char*,const char*,const struct addrinfo*, struct addrinfo**); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dan...@us...> - 2010-03-02 17:26:14
|
Revision: 1446 http://cegcc.svn.sourceforge.net/cegcc/?rev=1446&view=rev Author: dannybackx Date: 2010-03-02 17:26:08 +0000 (Tue, 02 Mar 2010) Log Message: ----------- Fix another crash in ld. Modified Paths: -------------- trunk/cegcc/src/binutils/ChangeLog.ce trunk/cegcc/src/binutils/ld/pe-dll.c Modified: trunk/cegcc/src/binutils/ChangeLog.ce =================================================================== --- trunk/cegcc/src/binutils/ChangeLog.ce 2010-02-27 19:35:17 UTC (rev 1445) +++ trunk/cegcc/src/binutils/ChangeLog.ce 2010-03-02 17:26:08 UTC (rev 1446) @@ -1,5 +1,11 @@ 2010-02-27 Danny Backx <dan...@us...> + * ld/pe-dll.c (make_singleton_name_imp) : Fix three issues with this + function, probably the result of a too sloppy copy of + make_singleton_name_thunk. + +2010-02-27 Danny Backx <dan...@us...> + * ld/pe-dll.c (pe_implied_import_dll) : Analyze .edata segment for those cases where optional header data directory doesn't have the equivalent info. Modified: trunk/cegcc/src/binutils/ld/pe-dll.c =================================================================== --- trunk/cegcc/src/binutils/ld/pe-dll.c 2010-02-27 19:35:17 UTC (rev 1445) +++ trunk/cegcc/src/binutils/ld/pe-dll.c 2010-03-02 17:26:08 UTC (rev 1446) @@ -2216,7 +2216,7 @@ static bfd * make_singleton_name_imp (const char *import, bfd *parent) { - /* Name thunks go to idata$4. */ + /* Name thunks go to idata$5. */ asection *id5; unsigned char *d5; char *oname; @@ -2243,12 +2243,12 @@ d5 = xmalloc (PE_IDATA5_SIZE * 2); id5->contents = d5; memset (d5, 0, PE_IDATA5_SIZE * 2); - quick_reloc (abfd, 0, BFD_RELOC_RVA, 2); + quick_reloc (abfd, 0, BFD_RELOC_RVA, 1); save_relocs (id5); bfd_set_symtab (abfd, symtab, symptr); - bfd_set_section_contents (abfd, id5, d5, 0, PE_IDATA4_SIZE * 2); + bfd_set_section_contents (abfd, id5, d5, 0, PE_IDATA5_SIZE * 2); bfd_make_readable (abfd); return abfd; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dan...@us...> - 2010-02-27 19:35:23
|
Revision: 1445 http://cegcc.svn.sourceforge.net/cegcc/?rev=1445&view=rev Author: dannybackx Date: 2010-02-27 19:35:17 +0000 (Sat, 27 Feb 2010) Log Message: ----------- This fixes one of my remaining problems in building DLLs for Windows Mobile 6.1. Modified Paths: -------------- trunk/cegcc/src/binutils/ChangeLog.ce trunk/cegcc/src/binutils/ld/pe-dll.c Modified: trunk/cegcc/src/binutils/ChangeLog.ce =================================================================== --- trunk/cegcc/src/binutils/ChangeLog.ce 2010-02-14 10:12:00 UTC (rev 1444) +++ trunk/cegcc/src/binutils/ChangeLog.ce 2010-02-27 19:35:17 UTC (rev 1445) @@ -1,3 +1,9 @@ +2010-02-27 Danny Backx <dan...@us...> + + * ld/pe-dll.c (pe_implied_import_dll) : Analyze .edata segment for + those cases where optional header data directory doesn't have the + equivalent info. + 2010-01-01 Danny Backx <dan...@us...> ld/ Modified: trunk/cegcc/src/binutils/ld/pe-dll.c =================================================================== --- trunk/cegcc/src/binutils/ld/pe-dll.c 2010-02-14 10:12:00 UTC (rev 1444) +++ trunk/cegcc/src/binutils/ld/pe-dll.c 2010-02-27 19:35:17 UTC (rev 1445) @@ -2972,6 +2972,7 @@ bfd_vma secptr1 = secptr + 40 * i; bfd_vma vsize = pe_get32 (dll, secptr1 + 8); bfd_vma vaddr = pe_get32 (dll, secptr1 + 12); + bfd_vma rdptr = pe_get32 (dll, secptr1 + 20); bfd_vma flags = pe_get32 (dll, secptr1 + 36); char sec_name[9]; @@ -3009,7 +3010,21 @@ __FUNCTION__, sec_name, (unsigned long) vaddr, (unsigned long) (vaddr + vsize), (unsigned long) flags); } + else if (strcmp (sec_name,".edata") == 0) + { + export_size = vsize; + export_rva = vaddr; + expptr = rdptr; + + if (pe_dll_extra_pe_debug) + printf ("%s %s: 0x%08lx-0x%08lx (0x%08lx) fileptr 0x%08lx\n", + __FUNCTION__, sec_name, (unsigned long) vaddr, + (unsigned long) (vaddr + vsize), (unsigned long) flags, expptr); + } } + + if (export_size < 40) /* Matches the offset+size of ordinals */ + return FALSE; expdata = xmalloc (export_size); bfd_seek (dll, (file_ptr) expptr, SEEK_SET); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dan...@us...> - 2010-02-14 10:12:06
|
Revision: 1444 http://cegcc.svn.sourceforge.net/cegcc/?rev=1444&view=rev Author: dannybackx Date: 2010-02-14 10:12:00 +0000 (Sun, 14 Feb 2010) Log Message: ----------- Err, this is probably more right. Got fooled by SVN. Modified Paths: -------------- trunk/cegcc/src/gcc-4.4.0/ChangeLog.ce Modified: trunk/cegcc/src/gcc-4.4.0/ChangeLog.ce =================================================================== --- trunk/cegcc/src/gcc-4.4.0/ChangeLog.ce 2010-02-14 10:08:49 UTC (rev 1443) +++ trunk/cegcc/src/gcc-4.4.0/ChangeLog.ce 2010-02-14 10:12:00 UTC (rev 1444) @@ -3,6 +3,12 @@ * gcc/configure gcc/configure.ac (BUG_URL) : Point to cegcc bug tracker instead of original gnu gcc bugzilla. +2010-01-09 Danny Backx dan...@us...> + + * gcc/config/arm/t-wince-cegcc: Workaround for configuration error. + * gcc/config/arm/t-wince-{pe,cegcc}: Remove dead code. + * libgcc/config/arm/t-wince-pe: Remove duplicate definitions. + 2009-08-18 Danny Backx dan...@us...> * gcc/config/i386/mingw32ce.h (__GXX_MERGED_TYPEINFO_NAMES) : Remove This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dan...@us...> - 2010-02-14 10:08:56
|
Revision: 1443 http://cegcc.svn.sourceforge.net/cegcc/?rev=1443&view=rev Author: dannybackx Date: 2010-02-14 10:08:49 +0000 (Sun, 14 Feb 2010) Log Message: ----------- As requested by the gcc folks, change our bug reporting url. Modified Paths: -------------- trunk/cegcc/src/gcc-4.4.0/ChangeLog.ce trunk/cegcc/src/gcc-4.4.0/gcc/configure trunk/cegcc/src/gcc-4.4.0/gcc/configure.ac Modified: trunk/cegcc/src/gcc-4.4.0/ChangeLog.ce =================================================================== --- trunk/cegcc/src/gcc-4.4.0/ChangeLog.ce 2010-02-09 23:32:12 UTC (rev 1442) +++ trunk/cegcc/src/gcc-4.4.0/ChangeLog.ce 2010-02-14 10:08:49 UTC (rev 1443) @@ -1,8 +1,7 @@ -2010-01-09 Danny Backx dan...@us...> +2010-02-14 Danny Backx dan...@us...> - * gcc/config/arm/t-wince-cegcc: Workaround for configuration error. - * gcc/config/arm/t-wince-{pe,cegcc}: Remove dead code. - * libgcc/config/arm/t-wince-pe: Remove duplicate definitions. + * gcc/configure gcc/configure.ac (BUG_URL) : Point to cegcc bug + tracker instead of original gnu gcc bugzilla. 2009-08-18 Danny Backx dan...@us...> Modified: trunk/cegcc/src/gcc-4.4.0/gcc/configure =================================================================== --- trunk/cegcc/src/gcc-4.4.0/gcc/configure 2010-02-09 23:32:12 UTC (rev 1442) +++ trunk/cegcc/src/gcc-4.4.0/gcc/configure 2010-02-14 10:08:49 UTC (rev 1443) @@ -8088,7 +8088,7 @@ ;; esac else - BUGURL="http://gcc.gnu.org/bugs.html" + BUGURL="http://sourceforge.net/tracker/?func=add&group_id=173455&atid=865514" fi; case ${BUGURL} in Modified: trunk/cegcc/src/gcc-4.4.0/gcc/configure.ac =================================================================== --- trunk/cegcc/src/gcc-4.4.0/gcc/configure.ac 2010-02-09 23:32:12 UTC (rev 1442) +++ trunk/cegcc/src/gcc-4.4.0/gcc/configure.ac 2010-02-14 10:08:49 UTC (rev 1443) @@ -781,7 +781,7 @@ AC_SUBST(onestep) ACX_PKGVERSION([GCC]) -ACX_BUGURL([http://gcc.gnu.org/bugs.html]) +ACX_BUGURL([http://sourceforge.net/tracker/?func=add&group_id=173455&atid=865514]) # Sanity check enable_languages in case someone does not run the toplevel # configure # script. This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dan...@us...> - 2010-02-09 23:32:18
|
Revision: 1442 http://cegcc.svn.sourceforge.net/cegcc/?rev=1442&view=rev Author: dannybackx Date: 2010-02-09 23:32:12 +0000 (Tue, 09 Feb 2010) Log Message: ----------- Define MonitorFromPoint, MonitorFromRect, MonitorFromWindow for CE Modified Paths: -------------- trunk/cegcc/src/w32api/ChangeLog.ce trunk/cegcc/src/w32api/include/winuser.h Modified: trunk/cegcc/src/w32api/ChangeLog.ce =================================================================== --- trunk/cegcc/src/w32api/ChangeLog.ce 2010-02-03 20:15:48 UTC (rev 1441) +++ trunk/cegcc/src/w32api/ChangeLog.ce 2010-02-09 23:32:12 UTC (rev 1442) @@ -1,3 +1,8 @@ +2010-02-10 Danny Backx <dan...@us...> + + * include/winuser.h (MonitorFromPoint, MonitorFromRect, + MonitorFromWindow) : Define for Windows CE also. + 2010-02-03 Danny Backx <dan...@us...> * include/phone.h, include/sms.h, include/simmgr.h: Add with minimal Modified: trunk/cegcc/src/w32api/include/winuser.h =================================================================== --- trunk/cegcc/src/w32api/include/winuser.h 2010-02-03 20:15:48 UTC (rev 1441) +++ trunk/cegcc/src/w32api/include/winuser.h 2010-02-09 23:32:12 UTC (rev 1442) @@ -3932,7 +3932,7 @@ WINUSERAPI int WINAPI MessageBoxIndirectW(CONST MSGBOXPARAMSW*); WINUSERAPI BOOL WINAPI ModifyMenuA(HMENU,UINT,UINT,UINT,LPCSTR); WINUSERAPI BOOL WINAPI ModifyMenuW(HMENU,UINT,UINT,UINT,LPCWSTR); -#if (_WIN32_WINNT >= 0x0500 || _WIN32_WINDOWS >= 0x0410) +#if (_WIN32_WINNT >= 0x0500 || _WIN32_WINDOWS >= 0x0410 || _WIN32_WCE >= 0x0400) WINUSERAPI HMONITOR WINAPI MonitorFromPoint(POINT,DWORD); WINUSERAPI HMONITOR WINAPI MonitorFromRect(LPCRECT,DWORD); WINUSERAPI HMONITOR WINAPI MonitorFromWindow(HWND,DWORD); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dan...@us...> - 2010-02-03 20:16:11
|
Revision: 1441 http://cegcc.svn.sourceforge.net/cegcc/?rev=1441&view=rev Author: dannybackx Date: 2010-02-03 20:15:48 +0000 (Wed, 03 Feb 2010) Log Message: ----------- Add three source files Modified Paths: -------------- trunk/cegcc/src/w32api/ChangeLog.ce Added Paths: ----------- trunk/cegcc/src/w32api/include/phone.h trunk/cegcc/src/w32api/include/simmgr.h trunk/cegcc/src/w32api/include/sms.h Modified: trunk/cegcc/src/w32api/ChangeLog.ce =================================================================== --- trunk/cegcc/src/w32api/ChangeLog.ce 2010-01-31 11:50:54 UTC (rev 1440) +++ trunk/cegcc/src/w32api/ChangeLog.ce 2010-02-03 20:15:48 UTC (rev 1441) @@ -1,3 +1,8 @@ +2010-02-03 Danny Backx <dan...@us...> + + * include/phone.h, include/sms.h, include/simmgr.h: Add with minimal + set of definitions. + 2010-01-29 Danny Backx <dan...@us...> * include/wingdi.h (TransparentBlt): Add dependency on _WIN32_WCE. Added: trunk/cegcc/src/w32api/include/phone.h =================================================================== --- trunk/cegcc/src/w32api/include/phone.h (rev 0) +++ trunk/cegcc/src/w32api/include/phone.h 2010-02-03 20:15:48 UTC (rev 1441) @@ -0,0 +1,36 @@ +#ifndef _PHONE_H +#define _PHONE_H + +#if __GNUC__ >= 3 +#pragma GCC system_header +#endif + +#ifdef __cplusplus +extern "C" { +#endif + +#if _WIN32_WCE >= 0x0500 + +#include <windows.h> + +typedef struct tagPHONEMAKECALLINFO{ + DWORD cbSize; /* Size of this structure */ + DWORD dwFlags; + PCWSTR pszDestAddress; /* Phone number, max length TAPIMAXDESTADDRESSSIZE */ + PCWSTR pszAppName; /* Res for future use, NULL */ + PCWSTR pszCalledParty; /* Name of party to be called, max length TAPIMAXCALLEDPARTYSIZE */ + PCWSTR pszComment; /* Res for future use, NULL */ +} PHONEMAKECALLINFO, *PPHONEMAKECALLINFO; + +/* Values for dwFlags, see http://msdn.microsoft.com/en-us/library/aa446543.aspx */ +#define PMCF_DEFAULT 1 +#define PMCF_PROMPTBEFORECALLING 2 + +LONG PhoneMakeCall(PHONEMAKECALLINFO *ppmci); +#endif /* _WIN32_WCE >= 0x0400 */ + +#ifdef __cplusplus +} +#endif + +#endif /* _PHONE_H */ Property changes on: trunk/cegcc/src/w32api/include/phone.h ___________________________________________________________________ Added: svn:eol-style + native Added: trunk/cegcc/src/w32api/include/simmgr.h =================================================================== --- trunk/cegcc/src/w32api/include/simmgr.h (rev 0) +++ trunk/cegcc/src/w32api/include/simmgr.h 2010-02-03 20:15:48 UTC (rev 1441) @@ -0,0 +1,76 @@ +#ifndef _SIMMGR_H +#define _SIMMGR_H + +#if __GNUC__ >= 3 +#pragma GCC system_header +#endif + +#ifdef __cplusplus +extern "C" { +#endif + +#if _WIN32_WCE >= 0x0600 +#include <windows.h> + +HRESULT SimWriteMessage( + HSIM hSim, + DWORD dwStorage, + LPDWORD lpdwIndex, + LPSIMMESSAGE lpSimMessage); + +/* Values for dwStorage */ +#define SIM_SMSSTORAGE_BROADCAST 0 /* ? */ +#define SIM_SMSSTORAGE_SIM 0 /* ? */ + +/* Values for HRESULT */ +#define SIM_E +#define S_OK 0 /* ? */ +#define SIM_E_SIMFAILURE 0 /* ? */ /* SIM failure was detected. */ +#define SIM_E_SIMBUSY 0 /* ? */ /* SIM is busy. */ +#define SIM_E_SIMWRONG 0 /* ? */ /* Incorrect SIM was inserted. */ +#define SIM_E_NOSIMMSGSTORAGE 0 /* ? */ /* SIM isn't capable of storing messages. */ +#define SIM_E_SIMTOOLKITBUSY 0 /* ? */ /* SIM Application Toolkit is busy. */ +#define SIM_E_SIMDOWNLOADERROR 0 /* ? */ /* SIM data download error. */ +#define SIM_E_SIMNOTINSERTED 0 /* ? */ /* SIM isn't inserted into the phone. */ +#define SIM_E_PHSIMPINREQUIRED 0 /* ? */ /* PH-SIM PIN is required to perform this operation. */ +#define SIM_E_PHFSIMPINREQUIRED 0 /* ? */ /* PH-FSIM PIN is required to perform this operation. */ +#define SIM_E_PHFSIMPUKREQUIRED 0 /* ? */ /* PH-FSIM PUK is required to perform this operation. */ +#define SIM_E_SIMPINREQUIRED 0 /* ? */ /* SIM PIN is required to perform this operation. */ +#define SIM_E_SIMPUKREQUIRED 0 /* ? */ /* SIM PUK is required to perform this operation. */ +#define SIM_E_INCORRECTPASSWORD 0 /* ? */ /* Incorrect password was supplied. */ +#define SIM_E_SIMPIN2REQUIRED 0 /* ? */ /* SIM PIN2 is required to perform this operation. */ +#define SIM_E_SIMPUK2REQUIRED 0 /* ? */ /* SIM PUK2 is required to perform this operation. */ +#define SIM_E_NETWKPINREQUIRED 0 /* ? */ /* Network Personalization PIN is required to perform this operation. */ +#define SIM_E_NETWKPUKREQUIRED 0 /* ? */ /* Network Personalization PUK is required to perform this operation. */ +#define SIM_E_SUBSETPINREQUIRED 0 /* ? */ /* Network Subset Personalization PIN is required to perform this operation. */ +#define SIM_E_SUBSETPUKREQUIRED 0 /* ? */ /* Network Subset Personalization PUK is required to perform this operation. */ +#define SIM_E_SVCPINREQUIRED 0 /* ? */ /* Service Provider Personalization PIN is required to perform this operation. */ +#define SIM_E_SVCPUKREQUIRED 0 /* ? */ /* Service Provider Personalization PUK is required to perform this operation. */ +#define SIM_E_CORPPINREQUIRED 0 /* ? */ /* Corporate Personalization PIN is required to perform this operation. */ +#define SIM_E_CORPPUKREQUIRED 0 /* ? */ /* Corporate Personalization PUK is required to perform this operation. */ +#define SIM_E_MEMORYFULL 0 /* ? */ /* Storage memory is full. */ +#define SIM_E_INVALIDINDEX 0 /* ? */ /* Invalid storage index was supplied. */ +#define SIM_E_NOTFOUND 0 /* ? */ /* A requested storage entry was not found. */ +#define SIM_E_MEMORYFAILURE 0 /* ? */ /* Storage memory failure. */ +#define SIM_E_SIMMSGSTORAGEFULL 0 /* ? */ /* Message storage on the SIM is full. */ +#define SIM_E_EMPTYINDEX 0 /* ? */ /* Storage location is empty. */ +#define SIM_E_NOTREADY 0 /* ? */ /* SIM isn't yet ready to perform the requested operation. */ +#define SIM_E_SECURITYFAILURE 0 /* ? */ /* SIM isn't yet ready to perform the requested operation. */ +#define SIM_E_BUFFERTOOSMALL 0 /* ? */ /* Buffer too small. */ +#define SIM_E_NOTTEXTMESSAGE 0 /* ? */ /* Requested Short Message Service (SMS) message is not a text message. */ +#define SIM_E_NOSIM 0 /* ? */ /* Device doesn't have a SIM. */ +#define SIM_E_NETWORKERROR 0 /* ? */ /* There was a network error. */ +#define SIM_E_MOBILEERROR 0 /* ? */ /* Mobile error. */ +#define SIM_E_UNSUPPORTED 0 /* ? */ /* The command is unsupported. */ +#define SIM_E_BADPARAM 0 /* ? */ /* Bad parameter. */ +#define SIM_E_UNDETERMINED 0 /* ? */ /* Undetermined error. */ +#define SIM_E_RADIONOTPRESENT 0 /* ? */ /* The Radio is not present. */ +#define SIM_E_RADIOOFF 0 /* ? */ /* The Radio is off. */ + +#endif /* _WIN32_WCE >= 0x0600 */ + +#ifdef __cplusplus 0 /* ? */ +} +#endif 0 /* ? */ + +#endif /* _SIMMGR_H */ 0 /* ? */ Property changes on: trunk/cegcc/src/w32api/include/simmgr.h ___________________________________________________________________ Added: svn:eol-style + native Added: trunk/cegcc/src/w32api/include/sms.h =================================================================== --- trunk/cegcc/src/w32api/include/sms.h (rev 0) +++ trunk/cegcc/src/w32api/include/sms.h 2010-02-03 20:15:48 UTC (rev 1441) @@ -0,0 +1,59 @@ +#ifndef _SMS_H +#define _SMS_H + +#if __GNUC__ >= 3 +#pragma GCC system_header +#endif + +#ifdef __cplusplus +extern "C" { +#endif + +#if _WIN32_WCE >= 0x0600 +#include <windows.h> + +#define SMS_MAX_ADDRESS_LENGTH 256 /* ?? */ + +typedef enum SMS_ADDRESS_TYPE { + SMSAT_UNKNOWN=0, + SMSAT_INTERNATIONAL, + SMSAT_NATIONAL, + SMSAT_NETWORKSPECIFIC, + SMSAT_SUBSCRIBER, + SMSAT_ALPHANUMERIC, + SMSAT_ABBREVIATED +} SMS_ADDRESS_TYPE; + +typedef struct sms_address_tag { + SMS_ADDRESS_TYPE smsatAddressType; + TCHAR ptsAddress[SMS_MAX_ADDRESS_LENGTH]; +} SMS_ADDRESS, *LPSMS_ADDRESS; + +HRESULT SmsGetPhoneNumber(const SMS_ADDRESS *psmsaAddress); + +/* Error values, see http://msdn.microsoft.com/en-us/library/aa923113.aspx */ +#define SMS_E_TOOMUCHDATA 0x0100 +#define SMS_E_INVALIDDATA 0x0101 +#define SMS_E_BUFFERTOOSMALL 0x0102 +#define SMS_E_PROVIDERSPECIFICBUFFERWRONGSIZE 0x0103 +#define SMS_E_TIMEUNAVAILABLE 0x0104 +#define SMS_E_RECEIVEHANDLEALREADYOPEN 0x0105 +#define SMS_E_DESTINATIONOUTOFSVC 0x0106 +#define SMS_E_INVALIDADDRESS 0x0107 +#define SMS_E_MSGBARREDBYOPERATOR 0x0108 +#define SMS_E_MSGCALLBARRED 0x0109 +#define SMS_E_NOSCSUBSCRIPTION 0x010a +#define SMS_E_SCBUSY 0x010b +#define SMS_E_SVCNOTSUBSCRIBED 0x010c +#define SMS_E_UNASSIGNEDNUMBER 0x010d +#define SMS_E_UNKNOWNSCADDRESS 0x010e +#define SMS_E_UNIDENTIFIEDSUBCRIBER 0x010f +#define SMS_E_FDNRESTRICT 0x0110 + +#endif /* _WIN32_WCE >= 0x0600 */ + +#ifdef __cplusplus 0 /* ? */ +} +#endif 0 /* ? */ + +#endif /* _SMS_H */ 0 /* ? */ Property changes on: trunk/cegcc/src/w32api/include/sms.h ___________________________________________________________________ Added: svn:eol-style + native This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ped...@us...> - 2010-01-31 11:51:01
|
Revision: 1440 http://cegcc.svn.sourceforge.net/cegcc/?rev=1440&view=rev Author: pedroalves Date: 2010-01-31 11:50:54 +0000 (Sun, 31 Jan 2010) Log Message: ----------- Revert previous change. Modified Paths: -------------- trunk/cegcc/src/scripts/ChangeLog trunk/cegcc/src/scripts/build-cegcc.sh trunk/cegcc/src/scripts/build-mingw32ce.sh trunk/cegcc/src/scripts/build-x86.sh Modified: trunk/cegcc/src/scripts/ChangeLog =================================================================== --- trunk/cegcc/src/scripts/ChangeLog 2010-01-30 11:35:17 UTC (rev 1439) +++ trunk/cegcc/src/scripts/ChangeLog 2010-01-31 11:50:54 UTC (rev 1440) @@ -1,8 +1,3 @@ -2010-01-30 Danny Backx <dan...@us...> - - * build-{mingw32ce,cegcc,x86}.sh (build_gcc) : don't install limits.h from - fixincludes. - 2009-10-25 Danny Backx <dan...@us...> * build-cegcc.sh, build-mingw32ce.sh, build-x86.sh (build_binutils) : Modified: trunk/cegcc/src/scripts/build-cegcc.sh =================================================================== --- trunk/cegcc/src/scripts/build-cegcc.sh 2010-01-30 11:35:17 UTC (rev 1439) +++ trunk/cegcc/src/scripts/build-cegcc.sh 2010-01-31 11:50:54 UTC (rev 1440) @@ -318,17 +318,6 @@ make ${PARALLELISM} make install - # - # Clean up one file - # - if [ -f ${PREFIX}/lib/gcc/${TARGET}/4.4.0/include-fixed/limits.h ]; then - echo "Removing ${PREFIX}/lib/gcc/${TARGET}/4.4.0/include-fixed/limits.h" - rm -f ${PREFIX}/lib/gcc/${TARGET}/4.4.0/include-fixed/limits.h - else - echo "Huh ? no ${PREFIX}/lib/gcc/${TARGET}/4.4.0/include-fixed/limits.h found" - exit 1 - fi - cd ${BUILD_DIR} } Modified: trunk/cegcc/src/scripts/build-mingw32ce.sh =================================================================== --- trunk/cegcc/src/scripts/build-mingw32ce.sh 2010-01-30 11:35:17 UTC (rev 1439) +++ trunk/cegcc/src/scripts/build-mingw32ce.sh 2010-01-31 11:50:54 UTC (rev 1440) @@ -358,13 +358,6 @@ # # Clean up one file # - if [ -f ${PREFIX}/lib/gcc/${TARGET}/4.4.0/include-fixed/limits.h ]; then - echo "Removing ${PREFIX}/lib/gcc/${TARGET}/4.4.0/include-fixed/limits.h" - rm -f ${PREFIX}/lib/gcc/${TARGET}/4.4.0/include-fixed/limits.h - else - echo "Huh ? no ${PREFIX}/lib/gcc/${TARGET}/4.4.0/include-fixed/limits.h found" - exit 1 - fi cd ${BUILD_DIR} } Modified: trunk/cegcc/src/scripts/build-x86.sh =================================================================== --- trunk/cegcc/src/scripts/build-x86.sh 2010-01-30 11:35:17 UTC (rev 1439) +++ trunk/cegcc/src/scripts/build-x86.sh 2010-01-31 11:50:54 UTC (rev 1440) @@ -358,17 +358,6 @@ make ${PARALLELISM} make install - # - # Clean up one file - # - if [ -f ${PREFIX}/lib/gcc/${TARGET}/4.4.0/include-fixed/limits.h ]; then - echo "Removing ${PREFIX}/lib/gcc/${TARGET}/4.4.0/include-fixed/limits.h" - rm -f ${PREFIX}/lib/gcc/${TARGET}/4.4.0/include-fixed/limits.h - else - echo "Huh ? no ${PREFIX}/lib/gcc/${TARGET}/4.4.0/include-fixed/limits.h found" - exit 1 - fi - cd ${BUILD_DIR} } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dan...@us...> - 2010-01-30 11:35:24
|
Revision: 1439 http://cegcc.svn.sourceforge.net/cegcc/?rev=1439&view=rev Author: dannybackx Date: 2010-01-30 11:35:17 +0000 (Sat, 30 Jan 2010) Log Message: ----------- Don't install fixincludes version of limits.h Modified Paths: -------------- trunk/cegcc/src/scripts/ChangeLog trunk/cegcc/src/scripts/build-cegcc.sh trunk/cegcc/src/scripts/build-mingw32ce.sh trunk/cegcc/src/scripts/build-x86.sh Modified: trunk/cegcc/src/scripts/ChangeLog =================================================================== --- trunk/cegcc/src/scripts/ChangeLog 2010-01-29 17:06:05 UTC (rev 1438) +++ trunk/cegcc/src/scripts/ChangeLog 2010-01-30 11:35:17 UTC (rev 1439) @@ -1,3 +1,8 @@ +2010-01-30 Danny Backx <dan...@us...> + + * build-{mingw32ce,cegcc,x86}.sh (build_gcc) : don't install limits.h from + fixincludes. + 2009-10-25 Danny Backx <dan...@us...> * build-cegcc.sh, build-mingw32ce.sh, build-x86.sh (build_binutils) : Modified: trunk/cegcc/src/scripts/build-cegcc.sh =================================================================== --- trunk/cegcc/src/scripts/build-cegcc.sh 2010-01-29 17:06:05 UTC (rev 1438) +++ trunk/cegcc/src/scripts/build-cegcc.sh 2010-01-30 11:35:17 UTC (rev 1439) @@ -318,6 +318,17 @@ make ${PARALLELISM} make install + # + # Clean up one file + # + if [ -f ${PREFIX}/lib/gcc/${TARGET}/4.4.0/include-fixed/limits.h ]; then + echo "Removing ${PREFIX}/lib/gcc/${TARGET}/4.4.0/include-fixed/limits.h" + rm -f ${PREFIX}/lib/gcc/${TARGET}/4.4.0/include-fixed/limits.h + else + echo "Huh ? no ${PREFIX}/lib/gcc/${TARGET}/4.4.0/include-fixed/limits.h found" + exit 1 + fi + cd ${BUILD_DIR} } Modified: trunk/cegcc/src/scripts/build-mingw32ce.sh =================================================================== --- trunk/cegcc/src/scripts/build-mingw32ce.sh 2010-01-29 17:06:05 UTC (rev 1438) +++ trunk/cegcc/src/scripts/build-mingw32ce.sh 2010-01-30 11:35:17 UTC (rev 1439) @@ -358,6 +358,13 @@ # # Clean up one file # + if [ -f ${PREFIX}/lib/gcc/${TARGET}/4.4.0/include-fixed/limits.h ]; then + echo "Removing ${PREFIX}/lib/gcc/${TARGET}/4.4.0/include-fixed/limits.h" + rm -f ${PREFIX}/lib/gcc/${TARGET}/4.4.0/include-fixed/limits.h + else + echo "Huh ? no ${PREFIX}/lib/gcc/${TARGET}/4.4.0/include-fixed/limits.h found" + exit 1 + fi cd ${BUILD_DIR} } Modified: trunk/cegcc/src/scripts/build-x86.sh =================================================================== --- trunk/cegcc/src/scripts/build-x86.sh 2010-01-29 17:06:05 UTC (rev 1438) +++ trunk/cegcc/src/scripts/build-x86.sh 2010-01-30 11:35:17 UTC (rev 1439) @@ -358,6 +358,17 @@ make ${PARALLELISM} make install + # + # Clean up one file + # + if [ -f ${PREFIX}/lib/gcc/${TARGET}/4.4.0/include-fixed/limits.h ]; then + echo "Removing ${PREFIX}/lib/gcc/${TARGET}/4.4.0/include-fixed/limits.h" + rm -f ${PREFIX}/lib/gcc/${TARGET}/4.4.0/include-fixed/limits.h + else + echo "Huh ? no ${PREFIX}/lib/gcc/${TARGET}/4.4.0/include-fixed/limits.h found" + exit 1 + fi + cd ${BUILD_DIR} } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dan...@us...> - 2010-01-29 17:06:12
|
Revision: 1438 http://cegcc.svn.sourceforge.net/cegcc/?rev=1438&view=rev Author: dannybackx Date: 2010-01-29 17:06:05 +0000 (Fri, 29 Jan 2010) Log Message: ----------- TransparentBlt definition change, see mailing list. Modified Paths: -------------- trunk/cegcc/src/w32api/ChangeLog.ce trunk/cegcc/src/w32api/include/wingdi.h Modified: trunk/cegcc/src/w32api/ChangeLog.ce =================================================================== --- trunk/cegcc/src/w32api/ChangeLog.ce 2010-01-09 16:13:34 UTC (rev 1437) +++ trunk/cegcc/src/w32api/ChangeLog.ce 2010-01-29 17:06:05 UTC (rev 1438) @@ -1,3 +1,7 @@ +2010-01-29 Danny Backx <dan...@us...> + + * include/wingdi.h (TransparentBlt): Add dependency on _WIN32_WCE. + 2009-12-10 Pedro Alves <ped...@us...> * include/winbase.h (struct _BY_HANDLE_FILE_INFORMATION): Add Modified: trunk/cegcc/src/w32api/include/wingdi.h =================================================================== --- trunk/cegcc/src/w32api/include/wingdi.h 2010-01-09 16:13:34 UTC (rev 1437) +++ trunk/cegcc/src/w32api/include/wingdi.h 2010-01-29 17:06:05 UTC (rev 1438) @@ -3100,6 +3100,8 @@ #if (WINVER >= 0x0410) WINGDIAPI BOOL WINAPI AlphaBlend(HDC,int,int,int,int,HDC,int,int,int,int,BLENDFUNCTION); WINGDIAPI BOOL WINAPI GradientFill(HDC,PTRIVERTEX,ULONG,PVOID,ULONG,ULONG); +#endif +#if (WINVER >= 0x0410) || (_WIN32_WCE >= 0x0400) WINGDIAPI BOOL WINAPI TransparentBlt(HDC,int,int,int,int,HDC,int,int,int,int,UINT); #endif #if (_WIN32_WINNT >= 0x0500) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dan...@us...> - 2010-01-09 16:13:51
|
Revision: 1437 http://cegcc.svn.sourceforge.net/cegcc/?rev=1437&view=rev Author: dannybackx Date: 2010-01-09 16:13:34 +0000 (Sat, 09 Jan 2010) Log Message: ----------- Remove dead code. Workaround for configuration problem. Modified Paths: -------------- trunk/cegcc/src/gcc-4.4.0/ChangeLog.ce trunk/cegcc/src/gcc-4.4.0/gcc/config/arm/t-wince-cegcc trunk/cegcc/src/gcc-4.4.0/gcc/config/arm/t-wince-pe Modified: trunk/cegcc/src/gcc-4.4.0/ChangeLog.ce =================================================================== --- trunk/cegcc/src/gcc-4.4.0/ChangeLog.ce 2010-01-09 16:01:59 UTC (rev 1436) +++ trunk/cegcc/src/gcc-4.4.0/ChangeLog.ce 2010-01-09 16:13:34 UTC (rev 1437) @@ -1,5 +1,7 @@ 2010-01-09 Danny Backx dan...@us...> + * gcc/config/arm/t-wince-cegcc: Workaround for configuration error. + * gcc/config/arm/t-wince-{pe,cegcc}: Remove dead code. * libgcc/config/arm/t-wince-pe: Remove duplicate definitions. 2009-08-18 Danny Backx dan...@us...> Modified: trunk/cegcc/src/gcc-4.4.0/gcc/config/arm/t-wince-cegcc =================================================================== --- trunk/cegcc/src/gcc-4.4.0/gcc/config/arm/t-wince-cegcc 2010-01-09 16:01:59 UTC (rev 1436) +++ trunk/cegcc/src/gcc-4.4.0/gcc/config/arm/t-wince-cegcc 2010-01-09 16:13:34 UTC (rev 1437) @@ -6,7 +6,7 @@ #Needed because we include <windows.h> TARGET_LIBGCC2_CFLAGS += -mwin32 -# Version for mingw32ce -#SHLIB_LC = -lmingw32 -lmingwex -lceoldname -lcoredll # Version for cegcc -SHLIB_LC = -lc -lcoredll +#SHLIB_LC = -lc -lcoredll +#SHLIB_LC = $(prefix)/$(host_noncanonical)/lib/libc.a -lcoredll +SHLIB_LC = $(prefix)/arm-cegcc/lib/libc.a -lcoredll Modified: trunk/cegcc/src/gcc-4.4.0/gcc/config/arm/t-wince-pe =================================================================== --- trunk/cegcc/src/gcc-4.4.0/gcc/config/arm/t-wince-pe 2010-01-09 16:01:59 UTC (rev 1436) +++ trunk/cegcc/src/gcc-4.4.0/gcc/config/arm/t-wince-pe 2010-01-09 16:13:34 UTC (rev 1437) @@ -128,8 +128,6 @@ # Version for mingw32ce SHLIB_LC = -lmingw32 -lmingwex -lceoldname -lcoredll -# Version for cegcc -#SHLIB_LC = -lc -lcoredll # This should go somewhere else. # We are using SjLj EH. This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dan...@us...> - 2010-01-09 16:02:05
|
Revision: 1436 http://cegcc.svn.sourceforge.net/cegcc/?rev=1436&view=rev Author: dannybackx Date: 2010-01-09 16:01:59 +0000 (Sat, 09 Jan 2010) Log Message: ----------- Remove duplicate definitions Modified Paths: -------------- trunk/cegcc/src/gcc-4.4.0/ChangeLog.ce trunk/cegcc/src/gcc-4.4.0/libgcc/config/arm/t-wince-pe Modified: trunk/cegcc/src/gcc-4.4.0/ChangeLog.ce =================================================================== --- trunk/cegcc/src/gcc-4.4.0/ChangeLog.ce 2010-01-09 13:38:28 UTC (rev 1435) +++ trunk/cegcc/src/gcc-4.4.0/ChangeLog.ce 2010-01-09 16:01:59 UTC (rev 1436) @@ -1,3 +1,7 @@ +2010-01-09 Danny Backx dan...@us...> + + * libgcc/config/arm/t-wince-pe: Remove duplicate definitions. + 2009-08-18 Danny Backx dan...@us...> * gcc/config/i386/mingw32ce.h (__GXX_MERGED_TYPEINFO_NAMES) : Remove Modified: trunk/cegcc/src/gcc-4.4.0/libgcc/config/arm/t-wince-pe =================================================================== --- trunk/cegcc/src/gcc-4.4.0/libgcc/config/arm/t-wince-pe 2010-01-09 13:38:28 UTC (rev 1435) +++ trunk/cegcc/src/gcc-4.4.0/libgcc/config/arm/t-wince-pe 2010-01-09 16:01:59 UTC (rev 1436) @@ -9,36 +9,3 @@ crtend.o: $(gcc_srcdir)/config/i386/cygming-crtend.c $(crt_compile) -fno-omit-frame-pointer -Wno-error -c \ $(gcc_srcdir)/config/i386/cygming-crtend.c -CUSTOM_CRTSTUFF = yes - -crtbegin.o: $(gcc_srcdir)/config/i386/cygming-crtbegin.c - $(crt_compile) -fno-omit-frame-pointer -c \ - $(gcc_srcdir)/config/i386/cygming-crtbegin.c - -# We intentionally use a implementation-reserved init priority of 0, -# so allow the warning. -crtend.o: $(gcc_srcdir)/config/i386/cygming-crtend.c - $(crt_compile) -fno-omit-frame-pointer -Wno-error -c \ - $(gcc_srcdir)/config/i386/cygming-crtend.c -CUSTOM_CRTSTUFF = yes - -crtbegin.o: $(gcc_srcdir)/config/i386/cygming-crtbegin.c - $(crt_compile) -fno-omit-frame-pointer -c \ - $(gcc_srcdir)/config/i386/cygming-crtbegin.c - -# We intentionally use a implementation-reserved init priority of 0, -# so allow the warning. -crtend.o: $(gcc_srcdir)/config/i386/cygming-crtend.c - $(crt_compile) -fno-omit-frame-pointer -Wno-error -c \ - $(gcc_srcdir)/config/i386/cygming-crtend.c -CUSTOM_CRTSTUFF = yes - -crtbegin.o: $(gcc_srcdir)/config/i386/cygming-crtbegin.c - $(crt_compile) -fno-omit-frame-pointer -c \ - $(gcc_srcdir)/config/i386/cygming-crtbegin.c - -# We intentionally use a implementation-reserved init priority of 0, -# so allow the warning. -crtend.o: $(gcc_srcdir)/config/i386/cygming-crtend.c - $(crt_compile) -fno-omit-frame-pointer -Wno-error -c \ - $(gcc_srcdir)/config/i386/cygming-crtend.c This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dan...@us...> - 2010-01-09 13:38:34
|
Revision: 1435 http://cegcc.svn.sourceforge.net/cegcc/?rev=1435&view=rev Author: dannybackx Date: 2010-01-09 13:38:28 +0000 (Sat, 09 Jan 2010) Log Message: ----------- Redefine __text_start__ as __U(_text_start__) to have the right number of underscores. This fixes the i386 build. Modified Paths: -------------- trunk/cegcc/src/mingw/ChangeLog.mingw32ce trunk/cegcc/src/mingw/pseudo-reloc.c Modified: trunk/cegcc/src/mingw/ChangeLog.mingw32ce =================================================================== --- trunk/cegcc/src/mingw/ChangeLog.mingw32ce 2010-01-07 12:21:46 UTC (rev 1434) +++ trunk/cegcc/src/mingw/ChangeLog.mingw32ce 2010-01-09 13:38:28 UTC (rev 1435) @@ -1,3 +1,8 @@ +2010-01-09 Danny Backx <dan...@us...> + + * pseudo-reloc.c (__text_start__): Redefine as __U(_text_start__) to + prepend the right number of underscores. + 2010-01-02 Pedro Alves <ped...@us...> Partially revert: Modified: trunk/cegcc/src/mingw/pseudo-reloc.c =================================================================== --- trunk/cegcc/src/mingw/pseudo-reloc.c 2010-01-07 12:21:46 UTC (rev 1434) +++ trunk/cegcc/src/mingw/pseudo-reloc.c 2010-01-09 13:38:28 UTC (rev 1435) @@ -25,7 +25,7 @@ extern char __RUNTIME_PSEUDO_RELOC_LIST__; extern char __RUNTIME_PSEUDO_RELOC_LIST_END__; extern char _image_base__; - extern char __text_start__; + extern char __U(_text_start__); typedef struct { DWORD addend; @@ -197,7 +197,7 @@ the relocatable address, as that would be the same as relocating against __image_base__ in the first place, exactly what we need to avoid. */ - text_start = &__text_start__; + text_start = &__U(_text_start__); pe_header_size = 0x1000; image_base = (char *) text_start - pe_header_size; #endif This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ped...@us...> - 2010-01-07 12:33:42
|
Revision: 1433 http://cegcc.svn.sourceforge.net/cegcc/?rev=1433&view=rev Author: pedroalves Date: 2010-01-07 12:17:03 +0000 (Thu, 07 Jan 2010) Log Message: ----------- 2010-01-07 Pedro Alves <ped...@us...> * README: s/arm-wince-mingw32ce/arm-mingw32ce. Correct mailing list address. Modified Paths: -------------- trunk/cegcc/tools/errno/ChangeLog trunk/cegcc/tools/errno/README Modified: trunk/cegcc/tools/errno/ChangeLog =================================================================== --- trunk/cegcc/tools/errno/ChangeLog 2010-01-07 12:13:51 UTC (rev 1432) +++ trunk/cegcc/tools/errno/ChangeLog 2010-01-07 12:17:03 UTC (rev 1433) @@ -1,3 +1,8 @@ +2010-01-07 Pedro Alves <ped...@us...> + + * README: s/arm-wince-mingw32ce/arm-mingw32ce. Correct mailing + list address. + 2009-12-12 Pedro Alves <ped...@us...> * Makefile (TARGET): Default to arm-mingw32ce. Modified: trunk/cegcc/tools/errno/README =================================================================== --- trunk/cegcc/tools/errno/README 2010-01-07 12:13:51 UTC (rev 1432) +++ trunk/cegcc/tools/errno/README 2010-01-07 12:17:03 UTC (rev 1433) @@ -3,7 +3,7 @@ <describe here the technique used> Do *not* install errno.h into -/opt/mingw32ce/arm-wince-mingw32ce/include. +/opt/mingw32ce/arm-mingw32ce/include. You have been warned. @@ -24,5 +24,5 @@ the license the software is license in. REPORTING BUGS: -ce...@so... +ce...@li... ped...@po... This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ped...@us...> - 2010-01-07 12:33:36
|
Revision: 1432 http://cegcc.svn.sourceforge.net/cegcc/?rev=1432&view=rev Author: pedroalves Date: 2010-01-07 12:13:51 +0000 (Thu, 07 Jan 2010) Log Message: ----------- 2010-01-07 Pedro Alves <ped...@us...> * README: s/arm-wince-mingw32ce/arm-mingw32ce. Correct mailing list address. Modified Paths: -------------- trunk/cegcc/tools/PipeLib/ChangeLog trunk/cegcc/tools/PipeLib/README Modified: trunk/cegcc/tools/PipeLib/ChangeLog =================================================================== --- trunk/cegcc/tools/PipeLib/ChangeLog 2010-01-07 01:16:58 UTC (rev 1431) +++ trunk/cegcc/tools/PipeLib/ChangeLog 2010-01-07 12:13:51 UTC (rev 1432) @@ -1,3 +1,8 @@ +2010-01-07 Pedro Alves <ped...@us...> + + * README: s/arm-wince-mingw32ce/arm-mingw32ce. Correct mailing + list address. + 2010-01-07 Liu Yubao <yub...@ac...> Implement PeekNamedPipe. Modified: trunk/cegcc/tools/PipeLib/README =================================================================== --- trunk/cegcc/tools/PipeLib/README 2010-01-07 01:16:58 UTC (rev 1431) +++ trunk/cegcc/tools/PipeLib/README 2010-01-07 12:13:51 UTC (rev 1432) @@ -7,11 +7,11 @@ created with CreatePipe and the pipe ends are manipulated with the normal ReadFileW/WriteFileW/CloseHandle coredll.dll functions. -To build the lib and the driver you will need the arm-wince-mingw32ce +To build the lib and the driver you will need the arm-mingw32ce toolchain. An early version of PipeLib was also tested with MSVC2005, but project files aren't presently included. -To build, ensure you have arm-wince-mingw32ce-gcc in your $PATH, and +To build, ensure you have arm-mingw32ce-gcc in your $PATH, and type: make @@ -41,5 +41,5 @@ See the file LICENSE in the various directories, for a description of the license the software is license in. -REPORTING BUGS: ceg...@so... +REPORTING BUGS: ceg...@li... ped...@po... This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ped...@us...> - 2010-01-07 12:25:47
|
Revision: 1434 http://cegcc.svn.sourceforge.net/cegcc/?rev=1434&view=rev Author: pedroalves Date: 2010-01-07 12:21:46 +0000 (Thu, 07 Jan 2010) Log Message: ----------- Correct mailing list address. Modified Paths: -------------- trunk/cegcc/tools/libcwd/ChangeLog trunk/cegcc/tools/libcwd/README trunk/cegcc/tools/rcp/ChangeLog trunk/cegcc/tools/rcp/README trunk/cegcc/tools/rcp2/ChangeLog trunk/cegcc/tools/rcp2/README trunk/cegcc/tools/rshd/ChangeLog trunk/cegcc/tools/rshd/README Modified: trunk/cegcc/tools/libcwd/ChangeLog =================================================================== --- trunk/cegcc/tools/libcwd/ChangeLog 2010-01-07 12:17:03 UTC (rev 1433) +++ trunk/cegcc/tools/libcwd/ChangeLog 2010-01-07 12:21:46 UTC (rev 1434) @@ -1,3 +1,7 @@ +2010-01-07 Pedro Alves <ped...@us...> + + * README: Correct mailing list address. + 2009-12-12 Pedro Alves <ped...@us...> * Makefile (TARGET): Default to arm-mingw32ce. Modified: trunk/cegcc/tools/libcwd/README =================================================================== --- trunk/cegcc/tools/libcwd/README 2010-01-07 12:17:03 UTC (rev 1433) +++ trunk/cegcc/tools/libcwd/README 2010-01-07 12:21:46 UTC (rev 1434) @@ -18,5 +18,5 @@ the license the software is licensed in. REPORTING BUGS: -ce...@so... +ce...@li... ped...@po... Modified: trunk/cegcc/tools/rcp/ChangeLog =================================================================== --- trunk/cegcc/tools/rcp/ChangeLog 2010-01-07 12:17:03 UTC (rev 1433) +++ trunk/cegcc/tools/rcp/ChangeLog 2010-01-07 12:21:46 UTC (rev 1434) @@ -1,3 +1,7 @@ +2010-01-07 Pedro Alves <ped...@us...> + + * README: Correct mailing list address. + 2009-12-12 Pedro Alves <ped...@us...> * Makefile (TARGET): Default to arm-mingw32ce. Modified: trunk/cegcc/tools/rcp/README =================================================================== --- trunk/cegcc/tools/rcp/README 2010-01-07 12:17:03 UTC (rev 1433) +++ trunk/cegcc/tools/rcp/README 2010-01-07 12:21:46 UTC (rev 1434) @@ -22,5 +22,5 @@ -- REPORTING BUGS: -ce...@so... +ce...@li... ped...@po... Modified: trunk/cegcc/tools/rcp2/ChangeLog =================================================================== --- trunk/cegcc/tools/rcp2/ChangeLog 2010-01-07 12:17:03 UTC (rev 1433) +++ trunk/cegcc/tools/rcp2/ChangeLog 2010-01-07 12:21:46 UTC (rev 1434) @@ -1,3 +1,7 @@ +2010-01-07 Pedro Alves <ped...@us...> + + * README: Correct mailing list address. + 2009-12-12 Pedro Alves <ped...@us...> * Makefile (TARGET): Default to arm-mingw32ce. Modified: trunk/cegcc/tools/rcp2/README =================================================================== --- trunk/cegcc/tools/rcp2/README 2010-01-07 12:17:03 UTC (rev 1433) +++ trunk/cegcc/tools/rcp2/README 2010-01-07 12:21:46 UTC (rev 1434) @@ -12,5 +12,5 @@ -- REPORTING BUGS: -ce...@so... +ce...@li... ped...@po... Modified: trunk/cegcc/tools/rshd/ChangeLog =================================================================== --- trunk/cegcc/tools/rshd/ChangeLog 2010-01-07 12:17:03 UTC (rev 1433) +++ trunk/cegcc/tools/rshd/ChangeLog 2010-01-07 12:21:46 UTC (rev 1434) @@ -1,3 +1,7 @@ +2010-01-07 Pedro Alves <ped...@us...> + + * README: Correct mailing list address. + 2009-12-12 Pedro Alves <ped...@us...> * rshd.c (create_child): Delete unused variable. Modified: trunk/cegcc/tools/rshd/README =================================================================== --- trunk/cegcc/tools/rshd/README 2010-01-07 12:17:03 UTC (rev 1433) +++ trunk/cegcc/tools/rshd/README 2010-01-07 12:21:46 UTC (rev 1434) @@ -21,5 +21,5 @@ files. REPORTING BUGS: -ce...@so... +ce...@li... ped...@po... This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ped...@us...> - 2010-01-07 01:17:09
|
Revision: 1431 http://cegcc.svn.sourceforge.net/cegcc/?rev=1431&view=rev Author: pedroalves Date: 2010-01-07 01:16:58 +0000 (Thu, 07 Jan 2010) Log Message: ----------- 2010-01-07 Liu Yubao <yub...@ac...> Implement PeekNamedPipe. * PipeDev.cpp (MapCallerPtr): Declare. (class PipeDeviceContext): Add new `peekBytes' method. (IOControl): Handle PIPE_IOCTL_PEEK_NAMED_PIPE. * PipeDev.h (PIPE_IOCTL_PEEK_NAMED_PIPE): Define. (struct PeekStruct): New, moved from PipeLib.cpp. * PipeLib.cpp (PeekNamedPipe): Don't #if 0. Adjust, fix typo and and return TRUE on success. * PipeLib.h (PeekNamedPipe): Declare. Modified Paths: -------------- trunk/cegcc/tools/PipeLib/ChangeLog trunk/cegcc/tools/PipeLib/PipeDev.cpp trunk/cegcc/tools/PipeLib/PipeDev.h trunk/cegcc/tools/PipeLib/PipeLib.cpp trunk/cegcc/tools/PipeLib/PipeLib.h Modified: trunk/cegcc/tools/PipeLib/ChangeLog =================================================================== --- trunk/cegcc/tools/PipeLib/ChangeLog 2010-01-02 06:04:04 UTC (rev 1430) +++ trunk/cegcc/tools/PipeLib/ChangeLog 2010-01-07 01:16:58 UTC (rev 1431) @@ -1,3 +1,16 @@ +2010-01-07 Liu Yubao <yub...@ac...> + + Implement PeekNamedPipe. + + * PipeDev.cpp (MapCallerPtr): Declare. + (class PipeDeviceContext): Add new `peekBytes' method. + (IOControl): Handle PIPE_IOCTL_PEEK_NAMED_PIPE. + * PipeDev.h (PIPE_IOCTL_PEEK_NAMED_PIPE): Define. + (struct PeekStruct): New, moved from PipeLib.cpp. + * PipeLib.cpp (PeekNamedPipe): Don't #if 0. Adjust, fix typo and + and return TRUE on success. + * PipeLib.h (PeekNamedPipe): Declare. + 2009-12-12 Pedro Alves <ped...@us...> * TestClient/Makefile (TARGET): Default to arm-mingw32ce. Modified: trunk/cegcc/tools/PipeLib/PipeDev.cpp =================================================================== --- trunk/cegcc/tools/PipeLib/PipeDev.cpp 2010-01-02 06:04:04 UTC (rev 1430) +++ trunk/cegcc/tools/PipeLib/PipeDev.cpp 2010-01-07 01:16:58 UTC (rev 1431) @@ -31,6 +31,8 @@ #include <set> #include <string> +extern "C" LPVOID MapCallerPtr(LPVOID ptr, DWORD dwLen); + #ifndef min #define min(A, B) ((A) < (B) ? (A) : (B)) #endif @@ -353,6 +355,14 @@ return fit; } + DWORD peekBytes (BYTE* buf, DWORD bsize) + { + DWORD fit = min (bsize, size ()); + for (DWORD i = 0; i < fit; i++) + buf[i] = buffer[(head + i) & (sizeof (buffer) - 1)]; + return fit; + } + public: DWORD OpenCount; DWORD WROpenCount; @@ -935,6 +945,57 @@ *pdwActualOut = (wcslen (dev->DeviceName) + 1) * sizeof (WCHAR); bRet = TRUE; break; + case PIPE_IOCTL_PEEK_NAMED_PIPE: + if (dwLenOut != sizeof (PeekStruct)) + break; /* unknown version? */ + + PeekStruct* data = (PeekStruct *) pBufOut; + if (data->dwSize != sizeof (PeekStruct)) + break; /* unknown version? */ + + *pdwActualOut = sizeof (PeekStruct); + + DWORD actual = 0; + if (data->nBufferSize > 0 && data->lpBuffer != NULL) + { + LPVOID lpBuffer = MapCallerPtr (data->lpBuffer, data->nBufferSize); + if (NULL == lpBuffer) + break; + + actual = dev->peekBytes ((BYTE *) lpBuffer, data->nBufferSize); + + if (data->lpBytesRead != NULL) + { + LPDWORD lpBytesRead + = (LPDWORD) MapCallerPtr (data->lpBytesRead, sizeof (LPDWORD)); + if (NULL == lpBytesRead) + break; + *lpBytesRead = actual; + } + } + + if (data->lpTotalBytesAvail != NULL) + { + LPDWORD lpTotalBytesAvail + = (LPDWORD) MapCallerPtr (data->lpTotalBytesAvail, + sizeof (LPDWORD)); + if (NULL == lpTotalBytesAvail) + break; + *lpTotalBytesAvail = dev->size (); + } + + if (data->lpBytesLeftThisMessage != NULL) + { + LPDWORD lpBytesLeftThisMessage + = (LPDWORD) MapCallerPtr (data->lpBytesLeftThisMessage, + sizeof (LPDWORD)); + if (NULL == lpBytesLeftThisMessage) + break; + *lpBytesLeftThisMessage = dev->size () - actual; + } + + bRet = TRUE; + break; } return bRet; Modified: trunk/cegcc/tools/PipeLib/PipeDev.h =================================================================== --- trunk/cegcc/tools/PipeLib/PipeDev.h 2010-01-02 06:04:04 UTC (rev 1430) +++ trunk/cegcc/tools/PipeLib/PipeDev.h 2010-01-07 01:16:58 UTC (rev 1431) @@ -39,6 +39,19 @@ #define PIPE_IOCTL_SET_PIPE_TAG \ CTL_CODE(FILE_DEVICE_STREAMS, 2050, METHOD_BUFFERED, FILE_ANY_ACCESS) +#define PIPE_IOCTL_PEEK_NAMED_PIPE \ + CTL_CODE(FILE_DEVICE_STREAMS, 2051, METHOD_BUFFERED, FILE_ANY_ACCESS) + #define DEVICE_DLL_NAME L"PipeDev.dll" +struct PeekStruct +{ + DWORD dwSize; /* for future extension */ + LPVOID lpBuffer; + DWORD nBufferSize; + LPDWORD lpBytesRead; + LPDWORD lpTotalBytesAvail; + LPDWORD lpBytesLeftThisMessage; +}; + #endif Modified: trunk/cegcc/tools/PipeLib/PipeLib.cpp =================================================================== --- trunk/cegcc/tools/PipeLib/PipeLib.cpp 2010-01-02 06:04:04 UTC (rev 1430) +++ trunk/cegcc/tools/PipeLib/PipeLib.cpp 2010-01-07 01:16:58 UTC (rev 1431) @@ -191,50 +191,33 @@ return TRUE; } -#if 0 -struct PeekStruct -{ - DWORD Size; /* for future extension */ - PVOID lpBuffer, - DWORD nBufferSize, - - /* TODO: We need to use MapPtr for this to work */ - LPDWORD lpBytesRead, - LPDWORD lpTotalBytesAvail, - LPDWORD lpBytesLeftThisMessage - }; - PIPELIB_API BOOL PeekNamedPipe (HANDLE hNamedPipe, LPVOID lpBuffer, DWORD nBufferSize, LPDWORD lpBytesRead, LPDWORD lpTotalBytesAvail, - LPDWORD lpBytesLeftThisMessage - ) + LPDWORD lpBytesLeftThisMessage) { - DWORD avail; DWORD actual; PeekStruct data; - data.Size = sizeof (PeekStruct); + data.dwSize = sizeof (PeekStruct); data.lpBuffer = lpBuffer; data.nBufferSize = nBufferSize; data.lpBytesRead = lpBytesRead; data.lpTotalBytesAvail = lpTotalBytesAvail; data.lpBytesLeftThisMessage = lpBytesLeftThisMessage; - if (!DeviceIoControl (hNamedPipe, PIPE_IOCTRL_PEEK_NAMED_PIPE, + if (!DeviceIoControl (hNamedPipe, PIPE_IOCTL_PEEK_NAMED_PIPE, NULL, 0, - (LPVOID)&data, sizeof (PeekStruct), &actual, NULL)) + (LPVOID) &data, sizeof (PeekStruct), &actual, NULL)) return FALSE; - /* We can detect here if we are talking to an older driver. */ - if (actual != data.Size) + /* We can detect here if we are talking to an older driver. */ + if (actual != data.dwSize) return FALSE; - return FALSE; + return TRUE; } - -#endif Modified: trunk/cegcc/tools/PipeLib/PipeLib.h =================================================================== --- trunk/cegcc/tools/PipeLib/PipeLib.h 2010-01-02 06:04:04 UTC (rev 1430) +++ trunk/cegcc/tools/PipeLib/PipeLib.h 2010-01-07 01:16:58 UTC (rev 1431) @@ -34,10 +34,11 @@ #endif PIPELIB_API BOOL CreatePipe (PHANDLE,PHANDLE,LPSECURITY_ATTRIBUTES,DWORD); +PIPELIB_API BOOL PeekNamedPipe (HANDLE,LPVOID,DWORD,LPDWORD,LPDWORD,LPDWORD); + PIPELIB_API BOOL GetPipeName (HANDLE, WCHAR*); /* Internal, for pipedev.dll debugging purposes. */ PIPELIB_API BOOL SetPipeTag (HANDLE, const WCHAR*); - #endif This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dan...@us...> - 2010-01-02 06:04:10
|
Revision: 1430 http://cegcc.svn.sourceforge.net/cegcc/?rev=1430&view=rev Author: dannybackx Date: 2010-01-02 06:04:04 +0000 (Sat, 02 Jan 2010) Log Message: ----------- Fix bug 2912803 Modified Paths: -------------- trunk/cegcc/src/newlib/ChangeLog.cegcc trunk/cegcc/src/newlib/newlib/libc/sys/wince/cefixpath.c Modified: trunk/cegcc/src/newlib/ChangeLog.cegcc =================================================================== --- trunk/cegcc/src/newlib/ChangeLog.cegcc 2010-01-02 01:20:33 UTC (rev 1429) +++ trunk/cegcc/src/newlib/ChangeLog.cegcc 2010-01-02 06:04:04 UTC (rev 1430) @@ -1,3 +1,7 @@ +2010-01-02 Danny Backx <dan...@us...> + + * libc/sys/wince/cefixpath.c(XCEFixPathA): Fix for bug 2912803. + 2009-04-28 Danny Backx <dan...@us...> * configure, configure.in : recognize more targets. Modified: trunk/cegcc/src/newlib/newlib/libc/sys/wince/cefixpath.c =================================================================== --- trunk/cegcc/src/newlib/newlib/libc/sys/wince/cefixpath.c 2010-01-02 01:20:33 UTC (rev 1429) +++ trunk/cegcc/src/newlib/newlib/libc/sys/wince/cefixpath.c 2010-01-02 06:04:04 UTC (rev 1430) @@ -4,6 +4,7 @@ #define WIN32_LEAN_AND_MEAN #include <windows.h> +#include <locale.h> char *XCEFixPathA(const char *pathin, char *pathout); wchar_t *XCEFixPathW(const wchar_t *wpathin, wchar_t *wpathout); @@ -14,17 +15,18 @@ { wchar_t wpathin[MAX_PATH]; wchar_t wpathout[MAX_PATH]; + int old_locale; //printf("FixPathA: %s\n", pathin); - MultiByteToWideChar(CP_ACP, 0, pathin, -1, wpathin, MAX_PATH); + old_locale = setlocale(LC_ALL, "C"); + (void) setlocale(LC_ALL, old_locale); + MultiByteToWideChar(old_locale, 0, pathin, -1, wpathin, MAX_PATH); + XCEFixPathW(wpathin, wpathout); - WideCharToMultiByte(CP_ACP, 0, - wpathout, -1, - pathout, MAX_PATH, - NULL, NULL); + WideCharToMultiByte(old_locale, 0, wpathout, -1, pathout, MAX_PATH, NULL, NULL); return pathout; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ped...@us...> - 2010-01-02 01:20:39
|
Revision: 1429 http://cegcc.svn.sourceforge.net/cegcc/?rev=1429&view=rev Author: pedroalves Date: 2010-01-02 01:20:33 +0000 (Sat, 02 Jan 2010) Log Message: ----------- 2010-01-02 Pedro Alves <ped...@us...> Partially revert: 2009-05-18 Danny Backx <dan...@us...> * include/stdio.h (fileno, _fileno): Define as void* instead of int. Now: * include/stdio.h (fileno): Revert back to returning int. (_fileno): Non-CE versions return int. Modified Paths: -------------- trunk/cegcc/src/mingw/ChangeLog.mingw32ce trunk/cegcc/src/mingw/include/stdio.h Modified: trunk/cegcc/src/mingw/ChangeLog.mingw32ce =================================================================== --- trunk/cegcc/src/mingw/ChangeLog.mingw32ce 2010-01-02 00:53:05 UTC (rev 1428) +++ trunk/cegcc/src/mingw/ChangeLog.mingw32ce 2010-01-02 01:20:33 UTC (rev 1429) @@ -1,5 +1,15 @@ 2010-01-02 Pedro Alves <ped...@us...> + Partially revert: + 2009-05-18 Danny Backx <dan...@us...> + * include/stdio.h (fileno, _fileno): Define as void* instead of int. + + Now: + * include/stdio.h (fileno): Revert back to returning int. + (_fileno): Non-CE versions return int. + +2010-01-02 Pedro Alves <ped...@us...> + * include/stdlib.h (atoll): Don't define the inline version with __NO_INLINE__ is defined. Don't define or declare if __STRICT_ANSI__ is defined, unless compiling for C99 or above. Modified: trunk/cegcc/src/mingw/include/stdio.h =================================================================== --- trunk/cegcc/src/mingw/include/stdio.h 2010-01-02 00:53:05 UTC (rev 1428) +++ trunk/cegcc/src/mingw/include/stdio.h 2010-01-02 01:20:33 UTC (rev 1429) @@ -561,11 +561,10 @@ _CRTIMP FILE* __cdecl __MINGW_NOTHROW _fsopen (const char*, const char*, int); #endif #ifdef __COREDLL__ -/* Define _fileno as a void * which appears to be the sensible thing to do, - * even though MSDN claims otherwise. */ +/* See declaration of fileno below. */ _CRTIMP void * __cdecl __MINGW_NOTHROW _fileno (FILE*); #else -_CRTIMP void * __cdecl __MINGW_NOTHROW _fileno (FILE*); +_CRTIMP int __cdecl __MINGW_NOTHROW _fileno (FILE*); #endif _CRTIMP int __cdecl __MINGW_NOTHROW _fcloseall (void); #ifdef __MSVCRT__ @@ -588,11 +587,14 @@ #ifndef __COREDLL__ _CRTIMP int __cdecl __MINGW_NOTHROW fgetchar (void); _CRTIMP int __cdecl __MINGW_NOTHROW fputchar (int); -_CRTIMP void * __cdecl __MINGW_NOTHROW fileno (FILE*); +_CRTIMP int __cdecl __MINGW_NOTHROW fileno (FILE*); #else -/* Define fileno as a void * which appears to be the sensible thing to do, - * even though MSDN claims otherwise. */ -_CRTIMP void * __cdecl __MINGW_NOTHROW fileno (FILE*); + /* Microsoft defines _fileno as returning a void* (HANDLE), since + file descriptors are really HANDLES, but, that is so annoying for + portability, that we define fileno (no underscore) as returning + int, which is OK on arm (32-bit). The underscored version + (_fileno) is left returning void*. */ +_CRTIMP int __cdecl __MINGW_NOTHROW fileno (FILE*); #endif #endif /* Not _NO_OLDNAMES */ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ped...@us...> - 2010-01-02 00:53:16
|
Revision: 1428 http://cegcc.svn.sourceforge.net/cegcc/?rev=1428&view=rev Author: pedroalves Date: 2010-01-02 00:53:05 +0000 (Sat, 02 Jan 2010) Log Message: ----------- * include/stdlib.h (atoll): Don't define the inline version with __NO_INLINE__ is defined. Don't define or declare if __STRICT_ANSI__ is defined, unless compiling for C99 or above. Add missing declaration for out-of-line copy. Modified Paths: -------------- trunk/cegcc/src/mingw/ChangeLog.mingw32ce trunk/cegcc/src/mingw/include/stdlib.h Modified: trunk/cegcc/src/mingw/ChangeLog.mingw32ce =================================================================== --- trunk/cegcc/src/mingw/ChangeLog.mingw32ce 2010-01-01 23:47:59 UTC (rev 1427) +++ trunk/cegcc/src/mingw/ChangeLog.mingw32ce 2010-01-02 00:53:05 UTC (rev 1428) @@ -1,3 +1,10 @@ +2010-01-02 Pedro Alves <ped...@us...> + + * include/stdlib.h (atoll): Don't define the inline version with + __NO_INLINE__ is defined. Don't define or declare if + __STRICT_ANSI__ is defined, unless compiling for C99 or above. + Add missing declaration for out-of-line copy. + 2010-01-01 Pedro Alves <ped...@us...> * mingwex/wince/freopen.c, mingwex/wince/unlink.c, Modified: trunk/cegcc/src/mingw/include/stdlib.h =================================================================== --- trunk/cegcc/src/mingw/include/stdlib.h 2010-01-01 23:47:59 UTC (rev 1427) +++ trunk/cegcc/src/mingw/include/stdlib.h 2010-01-02 00:53:05 UTC (rev 1428) @@ -562,13 +562,27 @@ {return (_j >= 0 ? _j : -_j);} #endif -/* C99 addition, this used to be blocked by __STRICT_ANSI__ (see below). */ +#ifndef __NO_INLINE__ +#if (!defined (__STRICT_ANSI__) \ + || (defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L)) __CRT_INLINE long long __cdecl __MINGW_NOTHROW atoll (const char * _c) { return _atoi64 (_c); } +#endif +#endif long long __cdecl __MINGW_NOTHROW strtoll (const char* __restrict__, char** __restrict, int); unsigned long long __cdecl __MINGW_NOTHROW strtoull (const char* __restrict__, char** __restrict__, int); +/* these are stubs for MS _i64 versions */ +#if defined (__MSVCRT__) || defined (__COREDLL__) + +#if (!defined (__STRICT_ANSI__) \ + || (defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L)) +long long __cdecl __MINGW_NOTHROW atoll (const char * _c); +#endif + +#endif + #if defined (__MSVCRT__) /* these are stubs for MS _i64 versions */ #if !defined (__STRICT_ANSI__) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ped...@us...> - 2010-01-01 23:48:06
|
Revision: 1427 http://cegcc.svn.sourceforge.net/cegcc/?rev=1427&view=rev Author: pedroalves Date: 2010-01-01 23:47:59 +0000 (Fri, 01 Jan 2010) Log Message: ----------- * mingwex/wince/freopen.c, mingwex/wince/unlink.c, mingwex/wince/open.c, mingwex/wince/ctime.c, mingwex/wince/tempnam.c, mingwex/wince/close.c, mingwex/wince/isalnum.c, mingwex/wince/read.c, mingwex/wince/fdopen.c, mingwex/wince/isalpha.c, mingwex/wince/wcsftime.c, mingwex/wince/gmtime.c, mingwex/wince/utime.c, mingwex/wince/isxdigit.c, mingwex/wince/mktime.c, mingwex/wince/isupper.c, mingwex/wince/isgraph.c, mingwex/wince/_toupper.c, mingwex/wince/time.c, mingwex/wince/lseek.c, mingwex/wince/rename.c, mingwex/wince/localtime.c, mingwex/wince/iscntrl.c, mingwex/wince/islower.c, mingwex/wince/ispunct.c, mingwex/wince/asctime.c, mingwex/wince/isspace.c, mingwex/wince/isprint.c, mingwex/wince/futime.c, mingwex/wince/_tolower.c, mingwex/wince/chmod.c, mingwex/wince/write.c: Add explicit public domain header. Modified Paths: -------------- trunk/cegcc/src/mingw/ChangeLog.mingw32ce trunk/cegcc/src/mingw/mingwex/wince/_tolower.c trunk/cegcc/src/mingw/mingwex/wince/_toupper.c trunk/cegcc/src/mingw/mingwex/wince/asctime.c trunk/cegcc/src/mingw/mingwex/wince/chmod.c trunk/cegcc/src/mingw/mingwex/wince/close.c trunk/cegcc/src/mingw/mingwex/wince/ctime.c trunk/cegcc/src/mingw/mingwex/wince/fdopen.c trunk/cegcc/src/mingw/mingwex/wince/freopen.c trunk/cegcc/src/mingw/mingwex/wince/futime.c trunk/cegcc/src/mingw/mingwex/wince/gmtime.c trunk/cegcc/src/mingw/mingwex/wince/isalnum.c trunk/cegcc/src/mingw/mingwex/wince/isalpha.c trunk/cegcc/src/mingw/mingwex/wince/iscntrl.c trunk/cegcc/src/mingw/mingwex/wince/isgraph.c trunk/cegcc/src/mingw/mingwex/wince/islower.c trunk/cegcc/src/mingw/mingwex/wince/isprint.c trunk/cegcc/src/mingw/mingwex/wince/ispunct.c trunk/cegcc/src/mingw/mingwex/wince/isspace.c trunk/cegcc/src/mingw/mingwex/wince/isupper.c trunk/cegcc/src/mingw/mingwex/wince/isxdigit.c trunk/cegcc/src/mingw/mingwex/wince/localtime.c trunk/cegcc/src/mingw/mingwex/wince/lseek.c trunk/cegcc/src/mingw/mingwex/wince/mktime.c trunk/cegcc/src/mingw/mingwex/wince/open.c trunk/cegcc/src/mingw/mingwex/wince/read.c trunk/cegcc/src/mingw/mingwex/wince/rename.c trunk/cegcc/src/mingw/mingwex/wince/tempnam.c trunk/cegcc/src/mingw/mingwex/wince/time.c trunk/cegcc/src/mingw/mingwex/wince/unlink.c trunk/cegcc/src/mingw/mingwex/wince/utime.c trunk/cegcc/src/mingw/mingwex/wince/wcsftime.c trunk/cegcc/src/mingw/mingwex/wince/write.c Modified: trunk/cegcc/src/mingw/ChangeLog.mingw32ce =================================================================== --- trunk/cegcc/src/mingw/ChangeLog.mingw32ce 2010-01-01 16:29:01 UTC (rev 1426) +++ trunk/cegcc/src/mingw/ChangeLog.mingw32ce 2010-01-01 23:47:59 UTC (rev 1427) @@ -1,5 +1,25 @@ 2010-01-01 Pedro Alves <ped...@us...> + * mingwex/wince/freopen.c, mingwex/wince/unlink.c, + mingwex/wince/open.c, mingwex/wince/ctime.c, + mingwex/wince/tempnam.c, mingwex/wince/close.c, + mingwex/wince/isalnum.c, mingwex/wince/read.c, + mingwex/wince/fdopen.c, mingwex/wince/isalpha.c, + mingwex/wince/wcsftime.c, mingwex/wince/gmtime.c, + mingwex/wince/utime.c, mingwex/wince/isxdigit.c, + mingwex/wince/mktime.c, mingwex/wince/isupper.c, + mingwex/wince/isgraph.c, mingwex/wince/_toupper.c, + mingwex/wince/time.c, mingwex/wince/lseek.c, + mingwex/wince/rename.c, mingwex/wince/localtime.c, + mingwex/wince/iscntrl.c, mingwex/wince/islower.c, + mingwex/wince/ispunct.c, mingwex/wince/asctime.c, + mingwex/wince/isspace.c, mingwex/wince/isprint.c, + mingwex/wince/futime.c, mingwex/wince/_tolower.c, + mingwex/wince/chmod.c, mingwex/wince/write.c: Add explicit public + domain header. + +2010-01-01 Pedro Alves <ped...@us...> + * pseudo-reloc.c: Put back include of stddef.h. 2010-01-01 Pedro Alves <ped...@us...> Modified: trunk/cegcc/src/mingw/mingwex/wince/_tolower.c =================================================================== --- trunk/cegcc/src/mingw/mingwex/wince/_tolower.c 2010-01-01 16:29:01 UTC (rev 1426) +++ trunk/cegcc/src/mingw/mingwex/wince/_tolower.c 2010-01-01 23:47:59 UTC (rev 1427) @@ -1,3 +1,14 @@ +/* + * _tolower.c: _tolower implementation for WinCE. + * + * This file has no copyright assigned and is placed in the Public Domain. + * This file is a part of the mingw-runtime package. + * No warranty is given; refer to the file DISCLAIMER within the package. + * + * Written by Pedro Alves <ped...@po...> Feb 2007 + * + */ + #include <ctype.h> int Modified: trunk/cegcc/src/mingw/mingwex/wince/_toupper.c =================================================================== --- trunk/cegcc/src/mingw/mingwex/wince/_toupper.c 2010-01-01 16:29:01 UTC (rev 1426) +++ trunk/cegcc/src/mingw/mingwex/wince/_toupper.c 2010-01-01 23:47:59 UTC (rev 1427) @@ -1,3 +1,14 @@ +/* + * _toupper.c: _toupper implementation for WinCE. + * + * This file has no copyright assigned and is placed in the Public Domain. + * This file is a part of the mingw-runtime package. + * No warranty is given; refer to the file DISCLAIMER within the package. + * + * Written by Pedro Alves <ped...@po...> Feb 2007 + * + */ + #include <ctype.h> int Modified: trunk/cegcc/src/mingw/mingwex/wince/asctime.c =================================================================== --- trunk/cegcc/src/mingw/mingwex/wince/asctime.c 2010-01-01 16:29:01 UTC (rev 1426) +++ trunk/cegcc/src/mingw/mingwex/wince/asctime.c 2010-01-01 23:47:59 UTC (rev 1427) @@ -1,3 +1,14 @@ +/* + * asctime.c: asctime implementation for WinCE. + * + * This file has no copyright assigned and is placed in the Public Domain. + * This file is a part of the mingw-runtime package. + * No warranty is given; refer to the file DISCLAIMER within the package. + * + * Written by Pedro Alves <ped...@po...> Feb 2007 + * + */ + #include <windows.h> #include <stdio.h> #include <time.h> Modified: trunk/cegcc/src/mingw/mingwex/wince/chmod.c =================================================================== --- trunk/cegcc/src/mingw/mingwex/wince/chmod.c 2010-01-01 16:29:01 UTC (rev 1426) +++ trunk/cegcc/src/mingw/mingwex/wince/chmod.c 2010-01-01 23:47:59 UTC (rev 1427) @@ -1,3 +1,14 @@ +/* + * chmod.c: chmod implementation for WinCE. + * + * This file has no copyright assigned and is placed in the Public Domain. + * This file is a part of the mingw-runtime package. + * No warranty is given; refer to the file DISCLAIMER within the package. + * + * Written by Pedro Alves <ped...@po...> Feb 2007 + * + */ + #include <wchar.h> #include <windows.h> #include <io.h> Modified: trunk/cegcc/src/mingw/mingwex/wince/close.c =================================================================== --- trunk/cegcc/src/mingw/mingwex/wince/close.c 2010-01-01 16:29:01 UTC (rev 1426) +++ trunk/cegcc/src/mingw/mingwex/wince/close.c 2010-01-01 23:47:59 UTC (rev 1427) @@ -1,3 +1,14 @@ +/* + * close.c: close implementation for WinCE. + * + * This file has no copyright assigned and is placed in the Public Domain. + * This file is a part of the mingw-runtime package. + * No warranty is given; refer to the file DISCLAIMER within the package. + * + * Written by Pedro Alves <ped...@po...> Feb 2007 + * + */ + #include <windows.h> #include <unistd.h> Modified: trunk/cegcc/src/mingw/mingwex/wince/ctime.c =================================================================== --- trunk/cegcc/src/mingw/mingwex/wince/ctime.c 2010-01-01 16:29:01 UTC (rev 1426) +++ trunk/cegcc/src/mingw/mingwex/wince/ctime.c 2010-01-01 23:47:59 UTC (rev 1427) @@ -1,3 +1,14 @@ +/* + * ctime.c: ctime implementation for WinCE. + * + * This file has no copyright assigned and is placed in the Public Domain. + * This file is a part of the mingw-runtime package. + * No warranty is given; refer to the file DISCLAIMER within the package. + * + * Written by Pedro Alves <ped...@po...> Feb 2007 + * + */ + #include <time.h> char * Modified: trunk/cegcc/src/mingw/mingwex/wince/fdopen.c =================================================================== --- trunk/cegcc/src/mingw/mingwex/wince/fdopen.c 2010-01-01 16:29:01 UTC (rev 1426) +++ trunk/cegcc/src/mingw/mingwex/wince/fdopen.c 2010-01-01 23:47:59 UTC (rev 1427) @@ -1,3 +1,14 @@ +/* + * fdopen.c: fdopen and _fdopen implementations for WinCE. + * + * This file has no copyright assigned and is placed in the Public Domain. + * This file is a part of the mingw-runtime package. + * No warranty is given; refer to the file DISCLAIMER within the package. + * + * Written by Pedro Alves <ped...@po...> Feb 2007 + * + */ + #include <stdio.h> #include <string.h> #include <stdlib.h> Modified: trunk/cegcc/src/mingw/mingwex/wince/freopen.c =================================================================== --- trunk/cegcc/src/mingw/mingwex/wince/freopen.c 2010-01-01 16:29:01 UTC (rev 1426) +++ trunk/cegcc/src/mingw/mingwex/wince/freopen.c 2010-01-01 23:47:59 UTC (rev 1427) @@ -1,3 +1,14 @@ +/* + * freopen.c: freopen implementation for WinCE. + * + * This file has no copyright assigned and is placed in the Public Domain. + * This file is a part of the mingw-runtime package. + * No warranty is given; refer to the file DISCLAIMER within the package. + * + * Written by Pedro Alves <ped...@po...> Feb 2007 + * + */ + #include <stdio.h> #include <stdlib.h> #include <string.h> Modified: trunk/cegcc/src/mingw/mingwex/wince/futime.c =================================================================== --- trunk/cegcc/src/mingw/mingwex/wince/futime.c 2010-01-01 16:29:01 UTC (rev 1426) +++ trunk/cegcc/src/mingw/mingwex/wince/futime.c 2010-01-01 23:47:59 UTC (rev 1427) @@ -1,3 +1,14 @@ +/* + * futime.c: _futime implementation for WinCE. + * + * This file has no copyright assigned and is placed in the Public Domain. + * This file is a part of the mingw-runtime package. + * No warranty is given; refer to the file DISCLAIMER within the package. + * + * Written by Pedro Alves <ped...@po...> Feb 2007 + * + */ + #include <sys/utime.h> #include "timeutil.h" Modified: trunk/cegcc/src/mingw/mingwex/wince/gmtime.c =================================================================== --- trunk/cegcc/src/mingw/mingwex/wince/gmtime.c 2010-01-01 16:29:01 UTC (rev 1426) +++ trunk/cegcc/src/mingw/mingwex/wince/gmtime.c 2010-01-01 23:47:59 UTC (rev 1427) @@ -1,3 +1,14 @@ +/* + * gmtime.c: gmtime implementation for WinCE. + * + * This file has no copyright assigned and is placed in the Public Domain. + * This file is a part of the mingw-runtime package. + * No warranty is given; refer to the file DISCLAIMER within the package. + * + * Written by Pedro Alves <ped...@po...> Feb 2007 + * + */ + #include "timeutil.h" struct tm * Modified: trunk/cegcc/src/mingw/mingwex/wince/isalnum.c =================================================================== --- trunk/cegcc/src/mingw/mingwex/wince/isalnum.c 2010-01-01 16:29:01 UTC (rev 1426) +++ trunk/cegcc/src/mingw/mingwex/wince/isalnum.c 2010-01-01 23:47:59 UTC (rev 1427) @@ -1,3 +1,14 @@ +/* + * isalnum.c: isalnum implementation for WinCE. + * + * This file has no copyright assigned and is placed in the Public Domain. + * This file is a part of the mingw-runtime package. + * No warranty is given; refer to the file DISCLAIMER within the package. + * + * Written by Pedro Alves <ped...@po...> Feb 2007 + * + */ + #include <ctype.h> int Modified: trunk/cegcc/src/mingw/mingwex/wince/isalpha.c =================================================================== --- trunk/cegcc/src/mingw/mingwex/wince/isalpha.c 2010-01-01 16:29:01 UTC (rev 1426) +++ trunk/cegcc/src/mingw/mingwex/wince/isalpha.c 2010-01-01 23:47:59 UTC (rev 1427) @@ -1,3 +1,14 @@ +/* + * isalpha.c: isalpha implementation for WinCE. + * + * This file has no copyright assigned and is placed in the Public Domain. + * This file is a part of the mingw-runtime package. + * No warranty is given; refer to the file DISCLAIMER within the package. + * + * Written by Pedro Alves <ped...@po...> Feb 2007 + * + */ + #include <ctype.h> int Modified: trunk/cegcc/src/mingw/mingwex/wince/iscntrl.c =================================================================== --- trunk/cegcc/src/mingw/mingwex/wince/iscntrl.c 2010-01-01 16:29:01 UTC (rev 1426) +++ trunk/cegcc/src/mingw/mingwex/wince/iscntrl.c 2010-01-01 23:47:59 UTC (rev 1427) @@ -1,3 +1,14 @@ +/* + * iscntrl.c: iscntrl implementation for WinCE. + * + * This file has no copyright assigned and is placed in the Public Domain. + * This file is a part of the mingw-runtime package. + * No warranty is given; refer to the file DISCLAIMER within the package. + * + * Written by Pedro Alves <ped...@po...> Feb 2007 + * + */ + #include <ctype.h> int Modified: trunk/cegcc/src/mingw/mingwex/wince/isgraph.c =================================================================== --- trunk/cegcc/src/mingw/mingwex/wince/isgraph.c 2010-01-01 16:29:01 UTC (rev 1426) +++ trunk/cegcc/src/mingw/mingwex/wince/isgraph.c 2010-01-01 23:47:59 UTC (rev 1427) @@ -1,3 +1,14 @@ +/* + * isgraph.c: isgraph implementation for WinCE. + * + * This file has no copyright assigned and is placed in the Public Domain. + * This file is a part of the mingw-runtime package. + * No warranty is given; refer to the file DISCLAIMER within the package. + * + * Written by Pedro Alves <ped...@po...> Feb 2007 + * + */ + #include <ctype.h> int Modified: trunk/cegcc/src/mingw/mingwex/wince/islower.c =================================================================== --- trunk/cegcc/src/mingw/mingwex/wince/islower.c 2010-01-01 16:29:01 UTC (rev 1426) +++ trunk/cegcc/src/mingw/mingwex/wince/islower.c 2010-01-01 23:47:59 UTC (rev 1427) @@ -1,3 +1,14 @@ +/* + * islower.c: islower implementation for WinCE. + * + * This file has no copyright assigned and is placed in the Public Domain. + * This file is a part of the mingw-runtime package. + * No warranty is given; refer to the file DISCLAIMER within the package. + * + * Written by Pedro Alves <ped...@po...> Feb 2007 + * + */ + #include <ctype.h> int Modified: trunk/cegcc/src/mingw/mingwex/wince/isprint.c =================================================================== --- trunk/cegcc/src/mingw/mingwex/wince/isprint.c 2010-01-01 16:29:01 UTC (rev 1426) +++ trunk/cegcc/src/mingw/mingwex/wince/isprint.c 2010-01-01 23:47:59 UTC (rev 1427) @@ -1,3 +1,14 @@ +/* + * isprint.c: isprint implementation for WinCE. + * + * This file has no copyright assigned and is placed in the Public Domain. + * This file is a part of the mingw-runtime package. + * No warranty is given; refer to the file DISCLAIMER within the package. + * + * Written by Pedro Alves <ped...@po...> Feb 2007 + * + */ + #include <ctype.h> int Modified: trunk/cegcc/src/mingw/mingwex/wince/ispunct.c =================================================================== --- trunk/cegcc/src/mingw/mingwex/wince/ispunct.c 2010-01-01 16:29:01 UTC (rev 1426) +++ trunk/cegcc/src/mingw/mingwex/wince/ispunct.c 2010-01-01 23:47:59 UTC (rev 1427) @@ -1,3 +1,14 @@ +/* + * ispunct.c: ispunct implementation for WinCE. + * + * This file has no copyright assigned and is placed in the Public Domain. + * This file is a part of the mingw-runtime package. + * No warranty is given; refer to the file DISCLAIMER within the package. + * + * Written by Pedro Alves <ped...@po...> Feb 2007 + * + */ + #include <ctype.h> int Modified: trunk/cegcc/src/mingw/mingwex/wince/isspace.c =================================================================== --- trunk/cegcc/src/mingw/mingwex/wince/isspace.c 2010-01-01 16:29:01 UTC (rev 1426) +++ trunk/cegcc/src/mingw/mingwex/wince/isspace.c 2010-01-01 23:47:59 UTC (rev 1427) @@ -1,3 +1,14 @@ +/* + * isspace.c: isspace implementation for WinCE. + * + * This file has no copyright assigned and is placed in the Public Domain. + * This file is a part of the mingw-runtime package. + * No warranty is given; refer to the file DISCLAIMER within the package. + * + * Written by Pedro Alves <ped...@po...> Feb 2007 + * + */ + #include <ctype.h> int Modified: trunk/cegcc/src/mingw/mingwex/wince/isupper.c =================================================================== --- trunk/cegcc/src/mingw/mingwex/wince/isupper.c 2010-01-01 16:29:01 UTC (rev 1426) +++ trunk/cegcc/src/mingw/mingwex/wince/isupper.c 2010-01-01 23:47:59 UTC (rev 1427) @@ -1,3 +1,14 @@ +/* + * isupper.c: isupper implementation for WinCE. + * + * This file has no copyright assigned and is placed in the Public Domain. + * This file is a part of the mingw-runtime package. + * No warranty is given; refer to the file DISCLAIMER within the package. + * + * Written by Pedro Alves <ped...@po...> Feb 2007 + * + */ + #include <ctype.h> int Modified: trunk/cegcc/src/mingw/mingwex/wince/isxdigit.c =================================================================== --- trunk/cegcc/src/mingw/mingwex/wince/isxdigit.c 2010-01-01 16:29:01 UTC (rev 1426) +++ trunk/cegcc/src/mingw/mingwex/wince/isxdigit.c 2010-01-01 23:47:59 UTC (rev 1427) @@ -1,3 +1,14 @@ +/* + * isxdigit.c: isxdigit implementation for WinCE. + * + * This file has no copyright assigned and is placed in the Public Domain. + * This file is a part of the mingw-runtime package. + * No warranty is given; refer to the file DISCLAIMER within the package. + * + * Written by Pedro Alves <ped...@po...> Feb 2007 + * + */ + #include <ctype.h> int Modified: trunk/cegcc/src/mingw/mingwex/wince/localtime.c =================================================================== --- trunk/cegcc/src/mingw/mingwex/wince/localtime.c 2010-01-01 16:29:01 UTC (rev 1426) +++ trunk/cegcc/src/mingw/mingwex/wince/localtime.c 2010-01-01 23:47:59 UTC (rev 1427) @@ -1,3 +1,14 @@ +/* + * localtime.c: localtime implementation for WinCE. + * + * This file has no copyright assigned and is placed in the Public Domain. + * This file is a part of the mingw-runtime package. + * No warranty is given; refer to the file DISCLAIMER within the package. + * + * Written by Pedro Alves <ped...@po...> Feb 2007 + * + */ + #include "timeutil.h" struct tm * Modified: trunk/cegcc/src/mingw/mingwex/wince/lseek.c =================================================================== --- trunk/cegcc/src/mingw/mingwex/wince/lseek.c 2010-01-01 16:29:01 UTC (rev 1426) +++ trunk/cegcc/src/mingw/mingwex/wince/lseek.c 2010-01-01 23:47:59 UTC (rev 1427) @@ -1,3 +1,14 @@ +/* + * lseek.c: lseek implementation for WinCE. + * + * This file has no copyright assigned and is placed in the Public Domain. + * This file is a part of the mingw-runtime package. + * No warranty is given; refer to the file DISCLAIMER within the package. + * + * Written by Pedro Alves <ped...@po...> Feb 2007 + * + */ + #include <windows.h> #include <unistd.h> Modified: trunk/cegcc/src/mingw/mingwex/wince/mktime.c =================================================================== --- trunk/cegcc/src/mingw/mingwex/wince/mktime.c 2010-01-01 16:29:01 UTC (rev 1426) +++ trunk/cegcc/src/mingw/mingwex/wince/mktime.c 2010-01-01 23:47:59 UTC (rev 1427) @@ -1,3 +1,14 @@ +/* + * mktime.c: mktime implementation for WinCE. + * + * This file has no copyright assigned and is placed in the Public Domain. + * This file is a part of the mingw-runtime package. + * No warranty is given; refer to the file DISCLAIMER within the package. + * + * Written by Pedro Alves <ped...@po...> Feb 2007 + * + */ + #include "timeutil.h" time_t Modified: trunk/cegcc/src/mingw/mingwex/wince/open.c =================================================================== --- trunk/cegcc/src/mingw/mingwex/wince/open.c 2010-01-01 16:29:01 UTC (rev 1426) +++ trunk/cegcc/src/mingw/mingwex/wince/open.c 2010-01-01 23:47:59 UTC (rev 1427) @@ -1,3 +1,14 @@ +/* + * open.c: open, _open and_wopen implementations for WinCE. + * + * This file has no copyright assigned and is placed in the Public Domain. + * This file is a part of the mingw-runtime package. + * No warranty is given; refer to the file DISCLAIMER within the package. + * + * Written by Pedro Alves <ped...@po...> Feb 2007 + * + */ + #include <windows.h> #include <unistd.h> #include <fcntl.h> Modified: trunk/cegcc/src/mingw/mingwex/wince/read.c =================================================================== --- trunk/cegcc/src/mingw/mingwex/wince/read.c 2010-01-01 16:29:01 UTC (rev 1426) +++ trunk/cegcc/src/mingw/mingwex/wince/read.c 2010-01-01 23:47:59 UTC (rev 1427) @@ -1,3 +1,14 @@ +/* + * read.c: read and _read implementations for WinCE. + * + * This file has no copyright assigned and is placed in the Public Domain. + * This file is a part of the mingw-runtime package. + * No warranty is given; refer to the file DISCLAIMER within the package. + * + * Written by Pedro Alves <ped...@po...> Feb 2007 + * + */ + #include <windows.h> #include <unistd.h> Modified: trunk/cegcc/src/mingw/mingwex/wince/rename.c =================================================================== --- trunk/cegcc/src/mingw/mingwex/wince/rename.c 2010-01-01 16:29:01 UTC (rev 1426) +++ trunk/cegcc/src/mingw/mingwex/wince/rename.c 2010-01-01 23:47:59 UTC (rev 1427) @@ -1,3 +1,14 @@ +/* + * rename.c: rename implementation for WinCE. + * + * This file has no copyright assigned and is placed in the Public Domain. + * This file is a part of the mingw-runtime package. + * No warranty is given; refer to the file DISCLAIMER within the package. + * + * Written by Pedro Alves <ped...@po...> Feb 2007 + * + */ + #include <windows.h> /* We return an error if the TO file already exists, Modified: trunk/cegcc/src/mingw/mingwex/wince/tempnam.c =================================================================== --- trunk/cegcc/src/mingw/mingwex/wince/tempnam.c 2010-01-01 16:29:01 UTC (rev 1426) +++ trunk/cegcc/src/mingw/mingwex/wince/tempnam.c 2010-01-01 23:47:59 UTC (rev 1427) @@ -1,3 +1,14 @@ +/* + * tempname.c: tempname, _tempname and _wtempnam implementations for WinCE. + * + * This file has no copyright assigned and is placed in the Public Domain. + * This file is a part of the mingw-runtime package. + * No warranty is given; refer to the file DISCLAIMER within the package. + * + * Written by Pedro Alves <ped...@po...> Feb 2007 + * + */ + #include <stdio.h> #include <windows.h> Modified: trunk/cegcc/src/mingw/mingwex/wince/time.c =================================================================== --- trunk/cegcc/src/mingw/mingwex/wince/time.c 2010-01-01 16:29:01 UTC (rev 1426) +++ trunk/cegcc/src/mingw/mingwex/wince/time.c 2010-01-01 23:47:59 UTC (rev 1427) @@ -1,3 +1,14 @@ +/* + * time.c: time implementation for WinCE. + * + * This file has no copyright assigned and is placed in the Public Domain. + * This file is a part of the mingw-runtime package. + * No warranty is given; refer to the file DISCLAIMER within the package. + * + * Written by Pedro Alves <ped...@po...> Feb 2007 + * + */ + #include "timeutil.h" time_t Modified: trunk/cegcc/src/mingw/mingwex/wince/unlink.c =================================================================== --- trunk/cegcc/src/mingw/mingwex/wince/unlink.c 2010-01-01 16:29:01 UTC (rev 1426) +++ trunk/cegcc/src/mingw/mingwex/wince/unlink.c 2010-01-01 23:47:59 UTC (rev 1427) @@ -1,3 +1,14 @@ +/* + * unlink.c: unlink and _unlink implementations for WinCE. + * + * This file has no copyright assigned and is placed in the Public Domain. + * This file is a part of the mingw-runtime package. + * No warranty is given; refer to the file DISCLAIMER within the package. + * + * Written by Pedro Alves <ped...@po...> Feb 2007 + * + */ + #include <stdio.h> #include <windows.h> Modified: trunk/cegcc/src/mingw/mingwex/wince/utime.c =================================================================== --- trunk/cegcc/src/mingw/mingwex/wince/utime.c 2010-01-01 16:29:01 UTC (rev 1426) +++ trunk/cegcc/src/mingw/mingwex/wince/utime.c 2010-01-01 23:47:59 UTC (rev 1427) @@ -1,3 +1,14 @@ +/* + * utime.c: utime and _utime implementations for WinCE. + * + * This file has no copyright assigned and is placed in the Public Domain. + * This file is a part of the mingw-runtime package. + * No warranty is given; refer to the file DISCLAIMER within the package. + * + * Written by Pedro Alves <ped...@po...> Feb 2007 + * + */ + #include <sys/utime.h> #include <fcntl.h> Modified: trunk/cegcc/src/mingw/mingwex/wince/wcsftime.c =================================================================== --- trunk/cegcc/src/mingw/mingwex/wince/wcsftime.c 2010-01-01 16:29:01 UTC (rev 1426) +++ trunk/cegcc/src/mingw/mingwex/wince/wcsftime.c 2010-01-01 23:47:59 UTC (rev 1427) @@ -1,3 +1,14 @@ +/* + * wcsftime.c: wcsftime implementation for WinCE. + * + * This file has no copyright assigned and is placed in the Public Domain. + * This file is a part of the mingw-runtime package. + * No warranty is given; refer to the file DISCLAIMER within the package. + * + * Written by Pedro Alves <ped...@po...> Feb 2007 + * + */ + #include <string.h> #include <stdlib.h> #include <time.h> Modified: trunk/cegcc/src/mingw/mingwex/wince/write.c =================================================================== --- trunk/cegcc/src/mingw/mingwex/wince/write.c 2010-01-01 16:29:01 UTC (rev 1426) +++ trunk/cegcc/src/mingw/mingwex/wince/write.c 2010-01-01 23:47:59 UTC (rev 1427) @@ -1,3 +1,13 @@ +/* + * write.c: write and _write implementations for WinCE. + * + * This file has no copyright assigned and is placed in the Public Domain. + * This file is a part of the mingw-runtime package. + * No warranty is given; refer to the file DISCLAIMER within the package. + * + * Written by Pedro Alves <ped...@po...> Feb 2007 + * + */ #include <windows.h> #include <unistd.h> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ped...@us...> - 2010-01-01 16:29:12
|
Revision: 1426 http://cegcc.svn.sourceforge.net/cegcc/?rev=1426&view=rev Author: pedroalves Date: 2010-01-01 16:29:01 +0000 (Fri, 01 Jan 2010) Log Message: ----------- 2010-01-01 Pedro Alves <ped...@us...> * pseudo-reloc.c: Put back include of stddef.h. Modified Paths: -------------- trunk/cegcc/src/mingw/ChangeLog.mingw32ce trunk/cegcc/src/mingw/pseudo-reloc.c Modified: trunk/cegcc/src/mingw/ChangeLog.mingw32ce =================================================================== --- trunk/cegcc/src/mingw/ChangeLog.mingw32ce 2010-01-01 14:53:12 UTC (rev 1425) +++ trunk/cegcc/src/mingw/ChangeLog.mingw32ce 2010-01-01 16:29:01 UTC (rev 1426) @@ -1,5 +1,9 @@ 2010-01-01 Pedro Alves <ped...@us...> + * pseudo-reloc.c: Put back include of stddef.h. + +2010-01-01 Pedro Alves <ped...@us...> + * pseudo-reloc.c (__text_start__): Declare. (_pei386_runtime_relocator): On CE, don't reference &__image_base__; get at the image base through __text_start__ - Modified: trunk/cegcc/src/mingw/pseudo-reloc.c =================================================================== --- trunk/cegcc/src/mingw/pseudo-reloc.c 2010-01-01 14:53:12 UTC (rev 1425) +++ trunk/cegcc/src/mingw/pseudo-reloc.c 2010-01-01 16:29:01 UTC (rev 1426) @@ -20,6 +20,7 @@ #include <stdlib.h> #include <string.h> #include <assert.h> +#include <stddef.h> extern char __RUNTIME_PSEUDO_RELOC_LIST__; extern char __RUNTIME_PSEUDO_RELOC_LIST_END__; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ped...@us...> - 2010-01-01 14:53:18
|
Revision: 1425 http://cegcc.svn.sourceforge.net/cegcc/?rev=1425&view=rev Author: pedroalves Date: 2010-01-01 14:53:12 +0000 (Fri, 01 Jan 2010) Log Message: ----------- 2010-01-01 Pedro Alves <ped...@us...> * pseudo-reloc.c (__text_start__): Declare. (_pei386_runtime_relocator): On CE, don't reference &__image_base__; get at the image base through __text_start__ - 0x1000 instead. Modified Paths: -------------- trunk/cegcc/src/mingw/ChangeLog.mingw32ce trunk/cegcc/src/mingw/pseudo-reloc.c Modified: trunk/cegcc/src/mingw/ChangeLog.mingw32ce =================================================================== --- trunk/cegcc/src/mingw/ChangeLog.mingw32ce 2010-01-01 09:49:12 UTC (rev 1424) +++ trunk/cegcc/src/mingw/ChangeLog.mingw32ce 2010-01-01 14:53:12 UTC (rev 1425) @@ -1,3 +1,10 @@ +2010-01-01 Pedro Alves <ped...@us...> + + * pseudo-reloc.c (__text_start__): Declare. + (_pei386_runtime_relocator): On CE, don't reference + &__image_base__; get at the image base through __text_start__ - + 0x1000 instead. + 2009-12-11 Pedro Alves <ped...@us...> SF #2901705 Modified: trunk/cegcc/src/mingw/pseudo-reloc.c =================================================================== --- trunk/cegcc/src/mingw/pseudo-reloc.c 2010-01-01 09:49:12 UTC (rev 1424) +++ trunk/cegcc/src/mingw/pseudo-reloc.c 2010-01-01 14:53:12 UTC (rev 1425) @@ -20,12 +20,12 @@ #include <stdlib.h> #include <string.h> #include <assert.h> -#include <stddef.h> extern char __RUNTIME_PSEUDO_RELOC_LIST__; extern char __RUNTIME_PSEUDO_RELOC_LIST_END__; - extern char __U(_image_base__); - + extern char _image_base__; + extern char __text_start__; + typedef struct { DWORD addend; DWORD target; @@ -172,10 +172,36 @@ _pei386_runtime_relocator () { static int was_init = 0; +#ifdef UNDER_CE + static volatile void *text_start; + static volatile int pe_header_size; +#endif + void *image_base; if (was_init) return; ++was_init; + +#ifndef UNDER_CE + image_base = _image_base__; +#else + /* The loader of Windows Mobile 6.1 and above refuses to apply base + relocations if the resulting RVA falls out of the image. + __image_base__ happens to be one such symbol, as most other ld + magic symbols (__dll__, __major_image_version__, etc.). + Basically, symbols that end up on the absolute section. As an + alternative to get at the image base, we relocate against the + __text_start__ symbol, and subtract the PE header from that. In + practice, this gives us the image base. We go through volatile + globals to make sure gcc doesn't fold the 0x1000 subtraction into + the relocatable address, as that would be the same as relocating + against __image_base__ in the first place, exactly what we need + to avoid. */ + text_start = &__text_start__; + pe_header_size = 0x1000; + image_base = (char *) text_start - pe_header_size; +#endif + do_pseudo_reloc (&__RUNTIME_PSEUDO_RELOC_LIST__, &__RUNTIME_PSEUDO_RELOC_LIST_END__, - &__U(_image_base__)); + image_base); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |