summaryrefslogtreecommitdiff
path: root/gdb/windows-nat.c
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* * win32-nat.c (_initialize_check_for_gdb_ini): New function.Christopher Faylor2001-11-241-0/+29
| | | | | * config/i386/xm-cygwin.h: Remove obsolete handling of __CYGWIN32__. (GDBINIT_FILENAME): Remove.
* Approved by kev@cygnus.comFred Fish2001-11-011-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.
* * win32-nat.c (register_loaded_dll): Attempt to ensure that the case of theChristopher Faylor2001-10-311-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 Fred Fish <fnf@redhat.com>Fred Fish2001-10-301-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.
* * win32-nat.c (DebugSetProcessKillOnExit): New static functionCorinna Vinschen2001-10-261-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.
* * win32-nat.c (handle_load_dll): Avoid strlwr'ing loaded DLLs or cygwin may notChristopher Faylor2001-10-201-2/+0
| | | | be able to read them in certain situations.
* * win32-nat.c (safe_symbol_file_add_stub): Improve logic for avoiding load ofChristopher Faylor2001-10-161-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.
* * win32-nat.c (safe_symbol_file_add_stub): Properly initialize linked listChristopher Faylor2001-10-131-1/+1
| | | | pointer to beginning rather than one beyond beginning.
* * config/i386/tm-cygwin.h: include tm-i386.h instead of tm-i386v.h. This fixesChristopher Faylor2001-10-121-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.
* * win32-nat.c (get_child_debug_event): Close file handles created after processChristopher Faylor2001-10-111-0/+4
| | | | | | creation and DLL load. (child_create_inferior): Close unneeded process/thread handle after thread creation.
* Phase 1 of the ptid_t changes.Kevin Buettner2001-05-041-21/+30
|
* 2001-03-17 Michael Chastain <chastain@redhat.com>Michael Chastain2001-03-181-1/+2
| | | | | * win32-nat.c (child_attach): check args for NULL before passing to strtoul. This fixes PR gdb/43.
* Update/correct copyright notices.Kevin Buettner2001-03-061-2/+2
|
* Create new file regcache.h. Update all uses.Andrew Cagney2001-03-011-3/+4
|
* * demangle.c (demangling_style_names): New variable.Eli Zaretskii2001-02-191-2/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | (_initialize_demangler): Fill demangling_style_names with the names of known demangling styles from libiberty_demanglers[]. Use add_set_enum_cmd instead of add_set_cmd, to get completion on demangling style names. * proc-api.c (_initialize_proc_api): Make `procfs-file' use file-name completion. * remote-rdi.c (_initialize_remote_rdi): Ditto for `rdilogfile'. * solib.c (_initialize_solib): Ditto for `solib-search-path' and `solib-absolute-prefix'. * tracepoint.c (_initialize_tracepoint): Ditto for `save-tracepoints'. * win32-nat.c (_initialize_inftarg): Ditto for `dll-symbols'. * cli/cli-cmds.c (init_cli_cmds): Make `shell' and `make' use file-name completion. * infcmd.c (_initialize_infcmd): Make the following commands use the file-name completer: `tty', `args', `path', `paths', and `run'.
* Fix spacing.Christopher Faylor2001-02-061-1/+1
|
* * win32-nat.c: Change PTR to void * throughout.Christopher Faylor2001-02-061-5/+5
|
* * win32-nat.c (child_xfer_memory): Add missing argument required by 2001-01-23Christopher Faylor2001-01-271-1/+2
| | | | change.
* * win32-nat.c (_initialize_core_win32): Prototype correctly.Christopher Faylor2001-01-251-1/+1
|
* Replace free() with xfree().Kevin Buettner2000-12-151-6/+6
|
* * win32-nat.c (dll_code_sections_add): strdup -> xstrdup.Christopher Faylor2000-11-281-1/+1
|
* Protoization.Kevin Buettner2000-11-151-1/+0
|
* * win32-nat.c (dll_symbol_command): Tack a .dll on the end of a suppliedChristopher Faylor2000-08-271-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.
* * win32-nat.c: Perform various gcc warning cleanups.Christopher Faylor2000-08-061-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.
* Protoization.Kevin Buettner2000-07-301-14/+9
|
* * win32-nat.c (safe_symbol_file_add_args): Store old gdb_stderr and gdb_stdoutChristopher Faylor2000-06-111-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.
* Eliminate PARAMS from function pointer declarations.Kevin Buettner2000-06-041-1/+1
|
* * win32-nat.c (safe_symbol_file_add_cleanup): Ensure that gdb_stderr is flushedChristopher Faylor2000-06-041-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.
* * win32-nat.c: Fix up gcc warnings throughout.Christopher Faylor2000-06-031-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.
* PARAMS removal.Kevin Buettner2000-05-281-3/+3
|
* 2000-04-21 Elena Zannoni <ezannoni@kwikemart.cygnus.com>Elena Zannoni2000-04-211-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.
* * win32-nat.c (thread_rec): Be more defensive about suspending alreadyChristopher Faylor2000-04-211-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.
* * win32-nat.c: Back out special frame walking code. It was broken.Christopher Faylor2000-03-251-57/+5
| | | | | | (handle_exception): Correctly identify an illegal instruction. * config/tm-cygwin.h: Eliminate special frame handling. Just use normal i386 handling.
* * win32-nat.c: Remove unneeded header.Christopher Faylor2000-02-281-1/+0
| | | | * wince.c: Ditto.
* Correct copyright.Christopher Faylor2000-02-281-2/+2
|
* Replace ../include/wait.h with gdb_wait.h.Andrew Cagney2000-02-091-1/+1
|
* import gdb-2000-01-10 snapshotJason Molenda2000-01-111-0/+9
|
* import gdb-1999-12-21 snapshotJason Molenda1999-12-221-33/+63
|
* import gdb-1999-12-06 snapshotJason Molenda1999-12-071-143/+304
|
* import gdb-1999-10-11 snapshotJason Molenda1999-10-121-1/+1
|
* import gdb-1999-10-04 snapshotJason Molenda1999-10-051-2/+5
|
* import gdb-1999-08-30 snapshotJason Molenda1999-08-311-1/+0
|
* import gdb-1999-08-16 snapshotJason Molenda1999-08-161-24/+1
|
* import gdb-1999-07-07 post reformatJason Molenda1999-07-071-142/+146
|
* import gdb-19990422 snapshotStan Shebs1999-04-261-89/+117
|
* Initial creation of sourceware repositoryStan Shebs1999-04-161-0/+1122