aboutsummaryrefslogtreecommitdiff
path: root/gdb/win32-nat.c
AgeCommit message (Collapse)AuthorFilesLines
2001-02-06Fix spacing.Christopher Faylor1-1/+1
2001-02-06* win32-nat.c: Change PTR to void * throughout.Christopher Faylor1-5/+5
2001-01-27* win32-nat.c (child_xfer_memory): Add missing argument required by 2001-01-23Christopher Faylor1-1/+2
change.
2001-01-25* win32-nat.c (_initialize_core_win32): Prototype correctly.Christopher Faylor1-1/+1
2000-12-15Replace free() with xfree().Kevin Buettner1-6/+6
2000-11-28* win32-nat.c (dll_code_sections_add): strdup -> xstrdup.Christopher Faylor1-1/+1
2000-11-15Protoization.Kevin Buettner1-1/+0
2000-08-27* win32-nat.c (dll_symbol_command): Tack a .dll on the end of a suppliedChristopher Faylor1-97/+332
argument if it is missing an extension. * corelow.c: Define O_BINARY if it isn't defined. (core_open): Open core file in binary mode. * config/i386/tm-cygwin.h (child_clear_solibs): Rename from child_clear_solib. * config/i386/cygwin.mh: Add dependency from corelow.o. * win32-nat.c (register_loaded_dll): New function. Add dll to the list of currently loaded dlls. (handle_load_dll): Use register_loaded_dll. (child_solib_add): Distinguish between active process and core targets. (solib_symbols_add): Load symbols from loaded dll. (core_dll_symbols_add): New function. Load symbols from dll referenced in core. (core_section_load_dll_symbols): New function. (dll_code_sections_add): New function. (map_single_dll_code_section): New function. (fetch_elf_core_registers): New function. (_initialize_core_win32): New function.
2000-08-06* win32-nat.c: Perform various gcc warning cleanups.Christopher Faylor1-64/+69
(safe_symbol_file_add_cleanup): Reset stdout to saved stdout, not stderr. (dll_symbol_command): Pass OBJF_USERLOADED to safe_symbol_file_add. (get_child_debug_event): Always reset last_sig. Always reset inferior pid appropriately. (do_initial_child_stuff): New function. Called when attaching or starting a new inferior process. (child_attach): Use do_initial_child_stuff. (child_create_inferior): Ditto. * config/i386/cygwin.mh (NAT_FILE): Set to modern location. * config/i386/tm-cygwin.h: Define ATTACH_NO_WAIT.
2000-07-30Protoization.Kevin Buettner1-14/+9
2000-06-11* win32-nat.c (safe_symbol_file_add_args): Store old gdb_stderr and gdb_stdoutChristopher Faylor1-4/+13
here. (safe_symbol_file_add_stub): Redirect gdb_stdout as well as stderr. (safe_symbol_file_add_cleanup): Restore gdb_stdout. (info_dll_command): Use the pager for displaying DLLs since there are often quite a few.
2000-06-04Eliminate PARAMS from function pointer declarations.Kevin Buettner1-1/+1
2000-06-04* win32-nat.c (safe_symbol_file_add_cleanup): Ensure that gdb_stderr is flushedChristopher Faylor1-73/+183
before deleting and restoring it. (safe_symbol_file_add): Ensure that gdb_stderr is flushed before reassigning it. (handle_load_dll): Split into two functions so that WFI can handle shared library events. (child_solib_loaded_library_pathname): New function. (child_clear_solibs): New function. Clears shared library list. (child_solib_add): New function. Adds shared library symbols. (dll_symbol_command): New function. Handles "dll-symbol" command. (info_dll_command): New function. Handles info "sharedlibrary" command. (handle_exceptions): Eliminate 'ignore_trap' argument. (get_child_debug_event): Eliminate two arguments. Return "pid" when appropriate. Break out on most events to allow WFI to handle stuff. (child_wait): Accomodate get_child_debug_event changes. (child_attach): Clear thread list and list of loaded dlls. (child_create_inferior): Clear list of loaded dlls. Use wait_for_inferior in a loop to look for first "trap". (child_resume): Avoid accessing a possibly-freed thread pointer. (_initialize_inftarg): Add "dll-symbols", "sharedlibrary", and "info dll", and "info sharedlibrary" commands. * config/i386/tm-cygwin.h: Add some shared library (aka DLL) hooks.
2000-06-03* win32-nat.c: Fix up gcc warnings throughout.Christopher Faylor1-93/+67
(handle_load_dll): Change DLL name to lower case. (handle_exception): Add a second argument indicating whether a breakpoint should be ignored. Return a 0 if the breakpoint was ignored. (get_child_debug_event): Pass argument to handle_exception to control whether a breakpoint should be ignored. (child_create_inferior): Use modern cygwin API. Explicitly clear last_sig. Pass FIRST_EXCEPTION to get_child_debug_event for detection of first breakpoint. * configure.in: Eliminate unneeded WINDRES/DLLTOOL tests left over after last change. * configure: Regenerate.
2000-05-28PARAMS removal.Kevin Buettner1-3/+3
2000-04-212000-04-21 Elena Zannoni <ezannoni@kwikemart.cygnus.com>Elena Zannoni1-1/+2
* win32-nat.c (handle_load_dll): Don't treat .text as a special section anymore. * somread.c (som_symfile_offsets): Ditto. * somsolib.c (som_solib_add_solib_objfile): Ditto.
2000-04-21* win32-nat.c (thread_rec): Be more defensive about suspending alreadyChristopher Faylor1-101/+156
suspended threads. (safe_symbol_file_add_stub): New function. (safe_symbole_file_add_cleanup): New function. (safe_symbol_file_add): New function. (handle_load_dll): Use wrapper to add DLL symbol information to avoid bogus errors from non-stabs DLLs. (handle_exception): Add work around for detection of first exception breakpoint which does not seem to occur on W2K. Detect more "signals" that can be effectively passed to the debuggee. Reorganize to eliminate continue_status global. (child_continue): Reorganize to eliminate continue_status global. (child_wait): Ditto. (child_resume): Ditto. (get_child_debug_event): Ditto. Recognize when an a breakpoint exception should be ignored. Change method for signalling when an important event has occured to the caller. (child_create_inferior): Use new method for noticing when get_child_debug_event has found something interesting.
2000-03-25* win32-nat.c: Back out special frame walking code. It was broken.Christopher Faylor1-57/+5
(handle_exception): Correctly identify an illegal instruction. * config/tm-cygwin.h: Eliminate special frame handling. Just use normal i386 handling.
2000-02-28* win32-nat.c: Remove unneeded header.Christopher Faylor1-1/+0
* wince.c: Ditto.
2000-02-28Correct copyright.Christopher Faylor1-2/+2
2000-02-09Replace ../include/wait.h with gdb_wait.h.Andrew Cagney1-1/+1
2000-01-11import gdb-2000-01-10 snapshotJason Molenda1-0/+9
1999-12-22import gdb-1999-12-21 snapshotJason Molenda1-33/+63
1999-12-07import gdb-1999-12-06 snapshotJason Molenda1-143/+304
1999-10-12import gdb-1999-10-11 snapshotJason Molenda1-1/+1
1999-10-05import gdb-1999-10-04 snapshotJason Molenda1-2/+5
1999-08-31import gdb-1999-08-30 snapshotJason Molenda1-1/+0
1999-08-16import gdb-1999-08-16 snapshotJason Molenda1-24/+1
1999-07-07import gdb-1999-07-07 post reformatJason Molenda1-142/+146
1999-04-26import gdb-19990422 snapshotStan Shebs1-89/+117
1999-04-16Initial creation of sourceware repositorygdb-4_18-branchpointStan Shebs1-0/+1122
1999-04-16Initial creation of sourceware repositoryStan Shebs1-1122/+0
1999-01-191999-01-19 Fernando Nasser <fnasser@totem.to.cygnus.com>Fernando Nasser1-1/+2
* sol-thread.c abug-rom.c cpu32bug-rom.c dbug-rom.c m32r-rom.c mac-nat.c mon960-rom.c op50-rom.c ppc-bdm.c remote-adapt.c remote-array.c remote-bug.c remote-e7000.c remote-eb.c remote-es.c remote-est.c remote-hms.c remote-mm.c remote-nindy.c remote-nrom.c remote-os9k.c remote-rdp.c remote-sds.c remote-sim.c remote-st.c remote-udi.c rom68k-rom.c sh3-rom.c sparcl-tdep.c sparclet-rom.c v850ice.c win32-nat.c: cosmetic changes to conform to coding standards.
1999-01-19HPMERGE:Andrew Cagney1-4/+4
More wrong uses of gdb_stderr and stderr/stdout. More upddates to calls of catch_errors() so that call matches new interface.
1998-12-31all remaining *.c *.h files from hp merge.David Taylor1-1/+1
1998-11-19Thu Nov 19 13:06:22 1998 Geoffrey Noer <noer@cygnus.com>Geoffrey Noer1-5/+5
* main.c: Wait until more time has passed before calling new cygwin_ funcs, revert back to the cygwin32_ ones for now. * win32-nat.c: Ditto.
1998-11-05* top.c (gdb_readline): Allow CRLF line termination on systemsChristopher Faylor1-257/+478
which define CRLF_SOURCE_FILES. * win32-nat.c: 1) Add thread support, 2) fix ability to attach to a running process, and 3) implement limited support for cygwin signals. (thread_rec): New function. (child_add_thread): Ditto. (child_init_thread_list): Ditto. (child_delete_thread): Ditto. (do_child_fetch_inferior_registers): Ditto. (do_child_store_inferior_registers): Ditto. (handle_output_debug_string): Ditto. (child_fetch_inferior_registers): Use do_* function to perform operation. (child_store_inferior_registers): Ditto. (child_continue): Ditto. (child_thread_alive): Ditto. (cygwin_pid_to_str): Ditto. (handle_load_dll): Reorganize, add first attempt at reading dll names from attached processes. Change info messages to provide more information when dll is already loaded. (handle_exception): Changes mandated by new thread-aware structures. (child_wait): Track thread creation/destruction. Handle cygwin signals. (child_create_inferior): Ditto. (child_resume): Ditto. (child_kill_inferior): Ditto. Close child process handle to avoid a handle leak. (child_ops): Fill out child_ops fields that deal with threads. * config/i386/tm-cygwin32.h: Declare function and macro needed for converting a cygwin "pid" to a string. * config/i386/xm-cygwin32.h: define HAVE_SIGSETMASK as 0 since sigsetmask is not defined in cygwin.
1998-11-05* win32-nat.c: Remove obsolete PPC conditionals.Christopher Faylor1-85/+1
1998-05-21Thu May 21 13:14:25 1998 John Metzler <jmetzler@cygnus.com>John Metzler1-42/+45
* gnu-nat.c (init_gnu_ops): Initialization of target ops by assignment. (_initialize_gnu_nat): Call new init * mac-nat.c (init_child_ops): Ditto (_initialize_mac_nat): Ditto * monitor.c (init_base_monitor_ops): Ditto (_initialize_remote_monitors) : Ditto * ppc-bdm.c (init_bdm_ppc_ops): Ditto (_initialize_bdm_ppc): Ditto * remote-adapt.c ( init_adapt_ops): Ditto (_initialize_remote_adapt): Ditto * remote-array.c (init_array_ops) : Ditto (_initialize_array): Ditto * remote-bug (init_bug_ops) : Ditto (_initialize_remote_bug): Ditto * remote-e7000.c (init_e7000_ops): Ditto (_initialize_remote_e7000) : Ditto * remote-eb.c (init_eb_ops) : Ditto (_initialize_remote_eb) : Ditto *remote-es.c (init_es1800_ops) : Ditto (init_es1800_child_ops) : Ditto (_initialize_es1800) ; Ditto *remote-hms.c (init_hms_ops): Ditto (_initialize_remote_hms) : Ditto * remote-mm.c (init_mm_ops): Ditto (_initialize_remote_mm) : Ditto * remote-nindy.c (init_nindy_ops): Ditto (_initialize_nindy): Ditto * remote_nrom.c (init_nrom_ops) : Ditto (_initialize_remote_nrom) : Ditto *remote-os9k (init_rombug_ops) : Ditto (_initialize_remote_os9k) : Ditto *remote-rdi.c (init_rdi_ops) : Ditto (_initialize_remote_rdi) : Ditto * remote-rdp.c (init_remote_rdp_ops) : Ditto (_initialize_remote_rdp) : Ditto * remote-sds.c (init_sds_ops) : Ditto (_initialize_remote_sds) : Ditto * remote-sim.c (init_gdbsim_ops) : Ditto (_initialize_remote_sim) : Ditto * remote-st.c (init_st2000_ops): Ditto (_initialize_remote_st2000): Ditto *remote-udi.c (init_udi_ops) : Ditto (_initialize_remote_udi) : Ditto * remote-vx.c (init_vx_ops) : Ditto (init_vx_run_ops) : Ditto (_initialize_vx) : Ditto * remote.c (init_remote_ops): Ditto (init_extended_remote_ops): Ditto (_initialize_remote): Ditto * sparcl-tdep.c (init_sparclite_ops): Ditto (_initialize_sparcl_tdep): Ditto * v850ice.c (init_850ice_ops): Ditto (_initialize_v850ice): Ditto *win32-nat.c: (init_child_ops): Ditto (_initialize_inftarg): Ditto
1998-01-19 From cgf@bbc.com (Chris Faylor):Ian Lance Taylor1-1/+20
* win32-nat.c (child_mourn_inferior): Call ContinueDebugEvent to let the child exit. (child_kill_inferior): Respond to all debug events as the child is terminating.
1997-08-18 * win32-nat.c (handle_exception): Return a value indicatingIan Lance Taylor1-4/+16
whether the exception was handled. Don't handle random exceptions the first time around, so that structured exception handling works. (child_wait): Check the return value of handle_exception. Set the continue_status argument to ContinueDebugEvent accordingly.
1996-11-12Mon Nov 11 17:15:59 1996 Geoffrey Noer <noer@cygnus.com>Geoffrey Noer1-13/+9
* defs.h: modify Nov 11 12:59:00 change so _MSC_VER is checked instead of _WIN32 * win32-nat.c: fix Nov 11 12:59:00 change (windows.h should be included instead of windefs.h for compilers other than VC++). * mswin/windefs.h: remove ^Ms and change C++ style comments to C style comments
1996-11-11 * mips-tdep.c, remote-mips.c, values.c, mdebugread.c,Dawn Perchik1-1/+1
config/mips/tm-mips.h: Add/fix bugs for 64-bit mips support. * defs.h: Cleanup; add prototypess * corefile.c: Change FIXME #ifdef * win32-nat.c: Include windefs instead of windows.h. * utils.c: Add routines for printing addresses and registers based on type size.
1996-07-26See gdb ChangeLog entry with header:Fred Fish1-1/+3
Thu Jul 25 19:41:31 1996 Fred Fish <fnf@cygnus.com> for a rather huge set of changes. I was going to put them here, but it made cvs dump core. :-(
1996-07-15 * win32-nat.c (handle_load_dll): dos_path_to_unix_path renamed toDavid Edelsohn1-39/+31
cygwin32_conv_to_posix_path. (child_create_inferior): unix_path_to_dos_path renamed to cygwin32_conv_to_win32_path. Rewrite code to translate PATH.
1996-06-24 * win32-nat.c: #include <unistd.h>.David Edelsohn1-220/+85
(unix_paths_to_dos_paths, dos_paths_to_unix_paths): Delete. (child_create_inferior): Convert only env var PATH to win32 style. (set_pathstyle_dos): Delete. (_initialize_inftarg): Delete dos-path-style command.
1996-05-09 * Makefile.in, breakpoint.c, corelow.c, fork-child.c, inflow.c,Stu Grossman1-1/+1
infrun.c, mac-nat.c, procfs.c, remote.c, sol-thread.c, thread.c, win32-nat.c, config/nm-lynx.h: Rename thread.h to gdbthread.h to avoid conflict with Solaris /usr/include/thread.h.
1996-03-11Mon Mar 11 11:02:47 1996 Steve Chamberlain <sac@slash.cygnus.com>Steve Chamberlain1-49/+372
With Michael Snyder: * i386-tdep.c (skip_trampoline_code): Fix strncmp length. * win32-nat.c (CHECK, DEBUG*, debug_*): New. (handle_load_dll): Don't reload symbols. (handle_exception): Use the DEBUG_* names. (child_wait): Add DEBUG_* code. (_initialize_inftarg): Add new commands to set debug_ names.
1996-02-02 * win32-nat.c (mappings): Add ppc registers.Steve Chamberlain1-3/+92
(child_resume): Turn of step for ppc.
1996-02-01 * config/powerpc/(cygwin32.mh, cygwin32.mt, tm-cygwin32.h,Steve Chamberlain1-7/+5
xm-cygwin32.h): New. * config/i386/(*win32*): Becomes *cygwin32*. * configure.in (i[3456]86-*-win32*): Becomes i[3456]86-*-cygwin32. (powerpcle-*-cygwin32): New. * configure: Regenerate. * win32-nat.c (child_create_inferior): Call CreateProcess with the right program arg.