aboutsummaryrefslogtreecommitdiff
path: root/gdb/windows-nat.c
AgeCommit message (Collapse)AuthorFilesLines
2003-02-21* win32-nat.c (get_image_name): Check return value from ReadProcessMemory.Christopher Faylor1-15/+12
(child_xfer_memory): Ditto.
2003-02-15white spaceChristopher Faylor1-12/+12
2003-02-14* win32-nat.cc (register_loaded_dll): Correctly set address range forChristopher Faylor1-2/+2
just-loaded dll.
2003-02-06whitespace cleanupChristopher Faylor1-5/+5
2003-02-06* win32-nat.c (get_relocated_section_addrs): New function. Find section loadChristopher Faylor1-5/+96
addresses for symbol handling in relocated DLLs. (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
2003-01-30* win32-nat.c (cygwin_pid): Removed as unused.Christopher Faylor1-32/+41
(child_attach): Try fall back to Cygwin pid.
2003-01-142003-01-13 Andrew Cagney <ac131313@redhat.com>Andrew Cagney1-1/+1
* ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright. * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright. * elfread.c, eval.c, expprint.c, expression.h: Update copyright. * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright. * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright. * language.c, language.h, m32r-tdep.c: Update copyright. * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright. * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright. * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright. * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright. * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright. * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright. Index: mi/ChangeLog 2003-01-13 Andrew Cagney <ac131313@redhat.com> * mi-cmd-env.c: Update copyright.
2003-01-10 * win32-nat.c (set_process_privilege): New function.Corinna Vinschen1-0/+83
(child_attach): Call set_process_privilege() to enable the SE_DEBUG_NAME user privilege if available in process token.
2002-11-23* win32-nat.c (child_attach): Reset saw_create counter or subsequent attachChristopher Faylor1-0/+1
will hang.
2002-11-22* win32-nat.c (psapi_get_dll_name): Fix a compiler warning.Christopher Faylor1-3/+23
(struct so_stuff): Add end_addr field. (register_loaded_dll): Calculate and store end address of loaded dll. (solib_address): New function. (child_solib_loaded_library_pathname): Pass carefully constructed section info to safe_symbol_file_add rather than ignoring it. (get_child_debug_event): Call re_enable_breakpoints_in_shlibs when a DLL is loaded. (do_initial_child_stuff): Call disable_breakpoints_in_shlibs. (child_create_inferior): Fix a compiler warning. * config/i386/tm-cygwin.h (PC_SOLIB): Define new macro. (solib_address): Declare new function.
2002-11-12 * gnu-nat.c (init_gnu_ops): Remove NULL initializations.Daniel Jacobowitz1-6/+0
* monitor.c (init_base_monitor_ops): Likewise. * ppc-bdm.c (init_bdm_ppc_ops): Likewise. * remote-array.c (init_array_ops): Likewise. * remote-e7000.c (init_e7000_ops): Likewise. * remote-es.c (init_es1800_ops): Likewise. (init_es1800_child_ops): Likewise. * remote-rdp.c (init_remote_rdp_ops): Likewise. * remote-sim.c (init_gdbsim_ops): Likewise. * remote-st.c (init_st2000_ops): Likewise. * sol-thread.c (init_sol_core_ops): Likewise. (init_sol_thread_ops): Likewise. * v850ice.c (init_850ice_ops): Likewise. * win32-nat.c (init_child_ops): Likewise. * wince.c (init_child_ops): Likewise.
2002-11-022002-11-02 Andrew Cagney <cagney@redhat.com>Andrew Cagney1-1/+1
* regcache.h (deprecated_read_register_gen): Rename read_register_gen. (deprecated_write_register_gen): Rename write_register_gen. * i387-tdep.c: Update. * x86-64-linux-nat.c: Update * wince.c: Update. * thread-db.c: Update. * win32-nat.c: Update. * mips-tdep.c: Update. * d10v-tdep.c: Update. * cris-tdep.c: Update. * remote-sim.c: Update. * remote-rdi.c: Update. * remote-rdp.c: Update. * frame.c: Update. * target.c: Update. * blockframe.c: Update. * x86-64-tdep.c: Update. * xstormy16-tdep.c: Update. * sh-tdep.c: Update. * s390-tdep.c: Update. * rs6000-tdep.c: Update. * sparc-tdep.c: Update. * i386-tdep.c: Update. * dwarf2cfi.c: Update. * regcache.c: Update.
2002-09-14* win32-nat.c (child_create_inferior): Honor 'tty' command.Christopher Faylor1-0/+34
2002-08-26 Fix PR gdb/393:Stephane Carrez1-0/+1
* inflow.c (terminal_save_ours): New function to save terminal settings. * inferior.h (terminal_save_ours): Declare. * target.c (debug_to_terminal_save_ours): New function. (cleanup_target): Defaults to_terminal_save_ours. (update_current_target): Inherit to_terminal_save_ours. (setup_target_debug): Set to_terminal_save_ours. * target.h (target_terminal_save_ours): New to save terminal settings. (target_ops): New member to_terminal_save_ours. * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours. * hpux-thread.c (init_hpux_thread_ops): Likewise. * inftarg.c (init_child_ops): Likewise. * m3-nat.c (init_m3_ops): Likewise. * procfs.c (init_procfs_ops): Likewise. * wince.c (init_child_ops): Likewise. * win32-nat.c (init_child_ops): Likewise. * sol-thread.c (init_sol_thread_ops): Likewise.
2002-07-11Fix some K&R isms.Andrew Cagney1-1/+1
2002-07-10* wince.c (_initialize_wince): Rename _initialize_inftarg.Andrew Cagney1-1/+1
* win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
2002-03-22* win32-nat.c (child_create_inferior): Check for proper shell to use here, inChristopher Faylor1-23/+13
case the user changes it on the fly. (_initialize_inftarg): Remove shell path considerations.
2002-03-06* cli/cli-decode.c (set_cmd_completer): New function.Andrew Cagney1-1/+1
* command.h (set_cmd_completer): Declare. * cli/cli-decode.h (set_cmd_completer): Ditto. * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer. * cli/cli-cmds.c (init_cli_cmds): Ditto. * win32-nat.c (_initialize_inftarg): Ditto. * remote-rdi.c (_initialize_remote_rdi): Ditto. * proc-api.c (_initialize_proc_api): Ditto. * hppa-tdep.c (_initialize_hppa_tdep): Ditto. * source.c (_initialize_source): Ditto. * exec.c (_initialize_exec): Ditto. * solib.c (_initialize_solib): Ditto. * top.c (init_main): Ditto. * tracepoint.c (_initialize_tracepoint): Ditto. * symfile.c (_initialize_symfile): Ditto. * printcmd.c (_initialize_printcmd): Ditto. * infcmd.c (_initialize_infcmd): Ditto. * corefile.c (_initialize_core): Ditto.
2002-02-222002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>Pierre Muller1-9/+8
* win32-nat.c (child_create_inferior): Fix create flags setting bug.
2002-02-22* win32-nat.c (register_loaded_dll): Just use raw name when we can't find theChristopher Faylor1-1/+3
complete path to a loaded DLL.
2002-02-21* win32-nat.c (register_loaded_dll): Correctly check for invalid handle value.Christopher Faylor1-1/+1
2002-02-21* win32-nat.c (register_loaded_dll): Handle case where FindFirstFile fails.Christopher Faylor1-9/+12
2002-02-192002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>Pierre Muller1-0/+128
* win32-nat.c (display_selector): New function. Displays information about the information returned by GetThreadSelectorEntry API function. (display_selectors): New function. Displays the infomation of the selector given as argument, or of CS, DS ans FS selectors if no argument is given. ( _initialize_inftarg): Add "w32" as info prefix command. Add "info w32 selector" as command calling display_selectors.
2002-02-16* win32-nat.c (get_image_name): New function.Christopher Faylor1-88/+143
(handle_load_dll): Use get_image_name function. (get_child_debug_event): Avoid registering debug events until possibly execed process is started. (child_create_inferior): Allow invocation via shell so that command line redirection, etc. works ok. (_initialize_inftarg): Add new command: "set shell" to control whether a shell is used to start a process.
2002-02-08* win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf changes.Christopher Faylor1-3/+3
(_initialize_check_for_gdb_ini): Ditto.
2002-02-082002-02-08 Martin M. Hunt <hunt@redhat.com>Martin Hunt1-1/+1
* win32-nat.c (cygwin_pid_to_str): Fix typo. xaprintf -> xasprintf.
2002-02-082002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>Pierre Muller1-9/+9
* win32-nat.c: Remove use of printf and sprintf functions.
2002-02-062002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>Pierre Muller1-1/+2
* win32-nat.c (_initialize_check_for_gdb_ini): Add typecast to sprintf argument to suppress a warning.
2002-02-062002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>Pierre Muller1-33/+104
win32-nat.c (last_sig): Changed type of variable to target_signal, to allow easier handling of pass state. (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception, that gives exception name and address. (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro and set last_sig value to ourstatus->value.sig. Some missing exceptions added. (child_continue): Correctly report continue_status. (get_child_debug_event,do_initial_child_stuff): Set last_sig to TARGET_SIGNAL_0 (new default value). (child_resume): consider sig argument passed to decide if the exception should be passed to debuggee or not.
2002-02-052002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>Pierre Muller1-0/+6
win32-nat.c (handle_exception): Handle Ctrl-Break exception.
2002-02-042002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>Pierre Muller1-9/+110
Add support for hardware watchpoints on win32 native. * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of CONTEXT_DEBUG_REGISTERS. (dr variable): New variable. Static array containing a local copy of debug registers. (debug_registers_changed): New variable. Reflects when debug registers are changed and need to be written to inferior. (debug_registers_used): New variable. Reflects when any debug register was set, used when new threads are created. (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by i386-nat code. (thread_rec): Set dr array if id is the thread of current_event . (child_continue, child_resume): Change the debug registers for all threads if debug_registers_changed. (child_add_thread): Change the debug registers if debug_registers_used. * config/i386/cygwin.mh: Add use of i386-nat.o file. Link nm.h to new nm-cygwin.h file. + config/i386/nm-cygwin.h: New file. Contains the macros used for use of hardware registers.
2002-01-19Remove ATTRIBUTE_UNUSED. Update (C).Andrew Cagney1-14/+17
2002-01-082002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>Pierre Muller1-0/+1
* win32-nat.c: Add i386-tdep.h dependency.
2001-12-032001-11-30 Pierre Muller <muller@ics.u-strasbg.fr>Pierre Muller1-10/+10
* win32-nat.c (mappings): Correct position of XMM registers, based on FXSAVE instruction structure.
2001-11-27fix white space.Christopher Faylor1-9/+9
2001-11-27* config/i386/tm-cygwin.h: Define HAVE_SSE_REGS ifChristopher Faylor1-1/+22
HAVE_CONTEXT_EXTENDED_REGISTERS is defined. * win32-nat.c: Define CONTEXT_DEBUGGER_DR that will also include extended registers if HAVE_SSE_REGS is defined. (mappings array): Add offset of extended registers. (thread_rec): Use new CONTEXT_DEBUGGER_DR macro.
2001-11-24* win32-nat.c (struct so_stuff): Add objfile *objfile field needed to be ableChristopher Faylor1-12/+41
to remove the DLL when unloaded. Remove unused last field. (handle_unload_dll): New function to handle unloading of DLL. (solib_symbols_add): Change return type to struct objfile *. (get_child_debug_event): Call handle_unload_dll function.
2001-11-24* win32-nat.c (_initialize_check_for_gdb_ini): New function.Christopher Faylor1-0/+29
* config/i386/xm-cygwin.h: Remove obsolete handling of __CYGWIN32__. (GDBINIT_FILENAME): Remove.
2001-11-01Approved by kev@cygnus.comFred Fish1-1/+3
ChangeLog entry: 2001-11-01 Fred Fish <fnf@redhat.com> * coff-solib.c (coff_solib_add): Add new readsyms arg. * irix5-nat.c (solib_add): Ditto. * osfsolib.c (solib_add): Ditto. * pa64solib.c (pa64_solib_add): Ditto. * pa64solib.c (add_to_solist): Ditto. * pa64solib.c (read_dld_descriptor): Ditto. * solib.c (solib_add): Ditto. * somsolib.c (som_solib_add): Ditto. * win32-nat.c (child_solib_add): Ditto. * xcoffsolib.c (solib_add): Ditto. * coff-solib.h (coff_solib_add): Add new readsyms arg to prototype. * pa64solib.c (add_to_solist): Ditto. * pa64solib.c (read_dld_descriptor): Ditto. * pa64solib.h (pa64_solib_add): Ditto. * solib.h (solib_add): Ditto. * somsolib.h (som_solib_add): Ditto. * config/i386/tm-cygwin.h (child_solib_add): Ditto. * coff-solib.c (coff_solib_add): If readsyms is zero don't read symbols but do any other needed work for shared libs. * irix5-nat.c: Ditto. * osfsolib.c (solib_add): Ditto. * solib.c (solib_add): Ditto. * win32-nat.c (child_solib_add): Ditto. * xcoffsolib.c (solib_add): Ditto. * irix5-nat.c (sharedlibrary_command): Pass 1 as readsyms to solib_add to force reading of shared library symbols. * osfsolib.c (sharedlibrary_command;): Ditto. * pa64solib.c (pa64_solib_sharedlibrary_command): Ditto. * solib.c (sharedlibrary_command): Ditto. * somsolib.c (som_solib_sharedlibrary_command): Ditto. * xcoffsolib.c (sharedlibrary_command): Ditto. * coff-solib.c (coff_solib_create_inferior_hook): Call solib_add unconditionally with auto_solib_add. * irix5-nat.c (solib_create_inferior_hook): Ditto. * osfsolib.c (solib_create_inferior_hook): Ditto. * solib.c (solib_create_inferior_hook): Ditto. * solib-osf.c (osf_solib_create_inferior_hook): Ditto. * solib-svr4.c (enable_break): Ditto. * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto. * corelow.c (solib_add_stub): Add auto_solib_add to args passed via SOLIB_ADD. * sol-thread.c (sol_thread_attach): Ditto. * config/rs6000/nm-rs6000.h (SOLIB_ADD): Ditto. * infcmd.c (attach_command): Remove auto_solib_add decl. Call SOLIB_ADD directly with auto_solib_add. * infrun.c (handle_inferior_event): Ditto. * coff-solib.h (SOLIB_ADD): Add readsyms arg. * pa64solib.h (SOLIB_ADD): Ditto. * solib.h (SOLIB_ADD): Ditto. * somsolib.h (SOLIB_ADD): Ditto. * config/i386/tm-cygwin.h (SOLIB_ADD): Ditto. * fork-child.c (clone_and_follow_inferior): Remove unused auto_solib_add decl. * pa64solib.c (pa64_solib_add): Call add_to_solist with readsyms. (read_dld_descriptor): Ditto. (pa64_solib_add): Call read_dld_descriptor with readsyms. (pa64_solib_in_dynamic_linker): Ditto. * corelow.c (symfile.h): Need this for auto_solib_add declaration. * sol-thread.c (symfile.h): Ditto. Approved by eliz@is.elta.co.il doc/ChangeLog entry: 2001-11-01 Fred Fish <fnf@redhat.com> * gdbint.texinfo (SOLIB_ADD): Document additional new "readsyms" arg.
2001-10-31* win32-nat.c (register_loaded_dll): Attempt to ensure that the case of theChristopher Faylor1-8/+23
loaded DLL matches the on-disk case since the debugging API does not seem to ensure this. Calculate max name length here. (handle_load_dll): Move max name length calculation to register_loaded_dll.
2001-10-30 2001-10-30 Fred Fish <fnf@redhat.com>Fred Fish1-1/+0
* somsolib.c (som_solib_add): A megabyte is 1024*1024 bytes. * pa64solib.c (add_to_solist): Ditto. * win32-nat.c (_initialize_inftarg): Remove unnecessary initialization of auto_solib_add, it defaults to 1.
2001-10-26 * win32-nat.c (DebugSetProcessKillOnExit): New static functionCorinna Vinschen1-4/+52
pointer to Windows' DebugSetProcessKillOnExit() function. (DebugActiveProcessStop): Ditto for DebugActiveProcessStop(). (has_detach_ability): New function. (child_attach): If system has detach ability, enable it. (child_detach): If system has detach ability, actually detach from process. Change tty output to Linux format.
2001-10-20* win32-nat.c (handle_load_dll): Avoid strlwr'ing loaded DLLs or cygwin may notChristopher Faylor1-2/+0
be able to read them in certain situations.
2001-10-16* win32-nat.c (safe_symbol_file_add_stub): Improve logic for avoiding load ofChristopher Faylor1-9/+12
already loaded DLL. (register_loaded_dll): Convert loaded DLL name to "posix" format or it will confuse subsequent opening of the filename due to dos paths. (dll_symbol_command): Pass from_tty parameter to safe_symbol_file_add.
2001-10-13* win32-nat.c (safe_symbol_file_add_stub): Properly initialize linked listChristopher Faylor1-1/+1
pointer to beginning rather than one beyond beginning.
2001-10-12* config/i386/tm-cygwin.h: include tm-i386.h instead of tm-i386v.h. This fixesChristopher Faylor1-20/+27
errors in "long long" handling for 'finish' and 'return' commands. * win32-nat.c (safe_symbol_file_add_stub): Avoid adding a shared library if it has already been loaded. (safe_symbol_file_add_cleanup): Don't mess with stderr or we won't see any error messages. (safe_symbol_file_add): Ditto. (solib_symbols_add): Make static. Accept 'from_tty' parameter. Pass it to safe_symbol_file_add. (core_dll_symbols_add): Accomodate extra solib_symbols_add parameter. (child_solib_add): Ditto. * win32-nat.c (handle_exception): Don't print "first chance" exceptions. (get_child_debug_event): Continue from exceptions if !handle_exception.
2001-10-11* win32-nat.c (get_child_debug_event): Close file handles created after processChristopher Faylor1-0/+4
creation and DLL load. (child_create_inferior): Close unneeded process/thread handle after thread creation.
2001-05-04Phase 1 of the ptid_t changes.Kevin Buettner1-21/+30
2001-03-182001-03-17 Michael Chastain <chastain@redhat.com>Michael Chastain1-1/+2
* win32-nat.c (child_attach): check args for NULL before passing to strtoul. This fixes PR gdb/43.
2001-03-06Update/correct copyright notices.Kevin Buettner1-2/+2