summaryrefslogtreecommitdiff
path: root/gdb/win32-nat.c
Commit message (Collapse)AuthorAgeFilesLines
* 2004-01-05 Andrew Cagney <cagney@redhat.com>Andrew Cagney2004-01-051-1/+1
| | | | | | | | | | | | | | * libunwind-frame.h (struct frame_id): Add opaque declaration, move to start of file. * i386-tdep.h (struct regcache): Add opaque declaration. * config/ia64/nm-linux.h (struct target_ops): Add opaque declaration. * ia64-tdep.c (ia64_find_proc_info_x): Do not use __FUNCTION__. (ia64_gdbarch_init): Use "GNU/Linux" in comment. * win32-nat.c (fake_create_process): Use ISO C style definition. * stabsread.c (define_symbol): Delete #ifndef DEPRECATED_USE_REGISTER_NOT_ARG wrapper around stabs_argument_has_addr call, macro never defined.
* * win32-nat.c: Add some comments about below change.Christopher Faylor2003-12-261-2/+12
|
* Fix for PR threads/1048Christopher Faylor2003-12-261-28/+55
| | | | | | | | | | | | | | | | | | | * win32-nat.c (thread_info_struct): Add reload_context flag. (thread_rec): Don't reload thread context here. Just set a flag. (do_child_fetch_inferior_registers): Reload thread context here if appropriate. Avoid doing anything if current_thread is NULL thanks to strange Windows behavior. (child_fetch_inferior_registers): Avoid doing anything if current_thread is NULL. (do_child_store_inferior_registers): Ditto. (child_store_inferior_registers): Ditto. (child_kill_inferior): Ditto. (fake_create_process): Pretend to create a process for pathological windows attach situation. (get_child_debug_event): Call fake_create_process when the first event noticed is thread creation rather than process creation. (child_attach): Always set attach_flag when attaching. (child_create_inferior): Set attach_flag to zero since we're not attaching.
* * win32-nat.c (get_child_debug_event): Keep main thread id around even afterChristopher Faylor2003-12-261-61/+63
| | | | thread exits since Windows insists on continuing to report events against it.
* * i386-tdep.h (FCS_REGNUM, FCOFF_REGNUM, FDS_REGNUM,Mark Kettenis2003-10-261-3/+10
| | | | | | | | | FDOFF_REGNUM): Remove defines. * win32-nat.c (do_child_fetch_inferior_registers): Include "i387-tdep.h". (do_child_fetch_inferior_registers): Use I387_FISEG_ST0_REGNUM and I387_FOP_REGNUM instead of FCS_REGNUM and FOP_REGNUM. Define and undefine I387_ST0_REGNUM.
* 2003-10-22 Andrew Cagney <cagney@redhat.com>Andrew Cagney2003-10-231-0/+1
| | | | | | | | | | | | | | | | | | * exec.h: New file. * win32-nat.c: Include "exec.h". * solib.c: Include "exec.h". * target.h (build_section_table): Delete declaration. * somsolib.c: Include "exec.h". (exec_ops): Delete extern declaration. * rs6000-nat.c: Update copyright. Include "exec.h". (exec_ops): Delete extern declaration. * pa64solib.c: Update copyright. Include "exec.h". (exec_ops): Delete extern declaration. * exec.c: Update copyright. Include "exec.h". * corelow.c: Update dependencies. Include "exec.h". * Makefile.in (exec_h): Define. (exec.o, somsolib.o): Update dependencies. (pa64solib.o, corelow.o): Update dependencies.
* 2003-09-20 Andrew Cagney <cagney@redhat.com>Andrew Cagney2003-09-211-1/+0
| | | | | | | | | | | | | * breakpoint.c: Eliminate ARGSUSED. * buildsym.c, cli/cli-cmds.c, cli/cli-script.c: Ditto. * coffread.c, corelow.c, dwarf2read.c, event-top.c: Ditto. * exec.c, gcore.c, hpux-thread.c, infcmd.c, inflow.c: Ditto. * infrun.c, inftarg.c, maint.c, ocd.c, printcmd.c: Ditto. * procfs.c, regcache.c, remote-rdi.c, remote-sds.c: Ditto. * remote.c, sol-thread.c, source.c, stabsread.c: Ditto. * stack.c, symfile.c, target.c, top.c, typeprint.c: Ditto. * utils.c, v850ice.c, valprint.c, values.c, win32-nat.c: Ditto. * wince.c, remote-vx.c: Ditto.
* * win32-nat.c (mappings): Remove HAVE_SSE conditional.Christopher Faylor2003-09-201-2/+0
|
* * win32-nat.c: Just rely on CONTEXT_EXTENDED_REGISTER being defined for SSEChristopher Faylor2003-09-131-12/+7
| | | | | | registers since gdb will not operate correctly without this. Restore include file ordering munged in previous change. * config/i386/tm-cygwin.h: Remove HAVE_SSE_REGS define.
* * win32-nat.c: Reorganize so that defines used by target headers are actuallyChristopher Faylor2003-09-131-7/+7
| | | | | | defined by the system headers. * config/i386/tm-cygwin.h: Check for CONTEXT_EXTENDED_REGISTERS rather than HAVE_CONTEXT_EXTENDED_REGISTERS, since the latter actually exists.
* * win32-nat.c (solib_symbols_add): Use one variable for all section addressChristopher Faylor2003-07-061-18/+12
| | | | stuff. Pass variable rather than address of variable to safe_symbol_file_add.
* * win32-nat.c (solib_symbols_add): Fix a small compilation error.Joel Brobecker2003-06-111-2/+2
|
* * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.Mark Mitchell2003-06-061-2/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | (elfstab_offset_sections): Likewise. * gdb-stabs.h (stab_section_info): Likewise. * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise. * objfiles.c (objfile_relocate): Likewise. * pa64solib.c (pa64_solib_add_solib_objfile): Likewise. * remote.c (get_offsets): Likewise. (remote_cisco_objfile_relocate): Likewise. * somread.c (som_symfile_offsets): Likewise. * symfile.c (alloc_section_addr_info): New function. (build_section_addr_info_from_section_tab): Use it. (free_section_addr_info): Adjust. (default_symfile_offsets): Avoid use of SECT_OFF_MAX. (syms_from_objfile): Allocate local_addr dynamically. (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs dynamically. (add_symbol_file_command): Allocate sect_opts dynamically. (reread_symbols): Avoid use of SECT_OFF_MAX. * symfile.h (section_addr_info): Do not use MAX_SECTIONS. (alloc_section_addr_info): Declare it. * symtab.h (SIZEOF_SECTION_OFFSETS): Remove. * win32-nat.c (solib_symbols_add): Allocate section_addrs dynamically. * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
* * win32-nat.c (get_image_name): Check return value from ReadProcessMemory.Christopher Faylor2003-02-211-15/+12
| | | | (child_xfer_memory): Ditto.
* white spaceChristopher Faylor2003-02-151-12/+12
|
* * win32-nat.cc (register_loaded_dll): Correctly set address range forChristopher Faylor2003-02-141-2/+2
| | | | just-loaded dll.
* whitespace cleanupChristopher Faylor2003-02-061-5/+5
|
* * win32-nat.c (get_relocated_section_addrs): New function. Find section loadChristopher Faylor2003-02-061-5/+96
| | | | | addresses for symbol handling in relocated DLLs. (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
* * win32-nat.c (cygwin_pid): Removed as unused.Christopher Faylor2003-01-301-32/+41
| | | | (child_attach): Try fall back to Cygwin pid.
* 2003-01-13 Andrew Cagney <ac131313@redhat.com>Andrew Cagney2003-01-141-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.
* * win32-nat.c (set_process_privilege): New function.Corinna Vinschen2003-01-101-0/+83
| | | | | (child_attach): Call set_process_privilege() to enable the SE_DEBUG_NAME user privilege if available in process token.
* * win32-nat.c (child_attach): Reset saw_create counter or subsequent attachChristopher Faylor2002-11-231-0/+1
| | | | will hang.
* * win32-nat.c (psapi_get_dll_name): Fix a compiler warning.Christopher Faylor2002-11-221-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.
* * gnu-nat.c (init_gnu_ops): Remove NULL initializations.Daniel Jacobowitz2002-11-121-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-02 Andrew Cagney <cagney@redhat.com>Andrew Cagney2002-11-021-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.
* * win32-nat.c (child_create_inferior): Honor 'tty' command.Christopher Faylor2002-09-141-0/+34
|
* Fix PR gdb/393:Stephane Carrez2002-08-261-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.
* Fix some K&R isms.Andrew Cagney2002-07-111-1/+1
|
* * wince.c (_initialize_wince): Rename _initialize_inftarg.Andrew Cagney2002-07-101-1/+1
| | | | * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
* * win32-nat.c (child_create_inferior): Check for proper shell to use here, inChristopher Faylor2002-03-221-23/+13
| | | | | case the user changes it on the fly. (_initialize_inftarg): Remove shell path considerations.
* * cli/cli-decode.c (set_cmd_completer): New function.Andrew Cagney2002-03-061-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-22 Pierre Muller <muller@ics.u-strasbg.fr>Pierre Muller2002-02-221-9/+8
| | | | * win32-nat.c (child_create_inferior): Fix create flags setting bug.
* * win32-nat.c (register_loaded_dll): Just use raw name when we can't find theChristopher Faylor2002-02-221-1/+3
| | | | complete path to a loaded DLL.
* * win32-nat.c (register_loaded_dll): Correctly check for invalid handle value.Christopher Faylor2002-02-211-1/+1
|
* * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile fails.Christopher Faylor2002-02-211-9/+12
|
* 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>Pierre Muller2002-02-191-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.
* * win32-nat.c (get_image_name): New function.Christopher Faylor2002-02-161-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.
* * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf changes.Christopher Faylor2002-02-081-3/+3
| | | | (_initialize_check_for_gdb_ini): Ditto.
* 2002-02-08 Martin M. Hunt <hunt@redhat.com>Martin Hunt2002-02-081-1/+1
| | | | | * win32-nat.c (cygwin_pid_to_str): Fix typo. xaprintf -> xasprintf.
* 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>Pierre Muller2002-02-081-9/+9
| | | | * win32-nat.c: Remove use of printf and sprintf functions.
* 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>Pierre Muller2002-02-061-1/+2
| | | | | * win32-nat.c (_initialize_check_for_gdb_ini): Add typecast to sprintf argument to suppress a warning.
* 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>Pierre Muller2002-02-061-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-04 Pierre Muller <muller@ics.u-strasbg.fr>Pierre Muller2002-02-051-0/+6
| | | | win32-nat.c (handle_exception): Handle Ctrl-Break exception.
* 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>Pierre Muller2002-02-041-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.
* Remove ATTRIBUTE_UNUSED. Update (C).Andrew Cagney2002-01-191-14/+17
|
* 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>Pierre Muller2002-01-081-0/+1
| | | | * win32-nat.c: Add i386-tdep.h dependency.
* 2001-11-30 Pierre Muller <muller@ics.u-strasbg.fr>Pierre Muller2001-12-031-10/+10
| | | | | * win32-nat.c (mappings): Correct position of XMM registers, based on FXSAVE instruction structure.
* fix white space.Christopher Faylor2001-11-271-9/+9
|
* * config/i386/tm-cygwin.h: Define HAVE_SSE_REGS ifChristopher Faylor2001-11-271-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.
* * win32-nat.c (struct so_stuff): Add objfile *objfile field needed to be ableChristopher Faylor2001-11-241-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.