summaryrefslogtreecommitdiff
path: root/gdb/go32-nat.c
Commit message (Collapse)AuthorAgeFilesLines
* 2002-11-06 Andrew Cagney <cagney@redhat.com>Andrew Cagney2002-11-081-2/+2
| | | | | | | | | | | | | | | | | | | | | * i386-tdep.c (i386_mmx_regnum_p): Rename mmx_regnum_p. Update all callers. (i386_fp_regnum_p): New function. Use instead of FP_REGNUM_P. (i386_fpc_regnum_p): New function. Use instead of FPC_REGNUM_P. (i386_sse_regnum_p): New function. Use instead of SSE_REGNUM_P. (i386_mxcsr_regnum_p): new function. Use instead of MXCSR_REGNUM_P. * i386-tdep.h (SSE_REGNUM_P): Delete macro. (i386_sse_regnum_p): Declare. (i386_mxcsr_regnum_p): Declare. (FP_REGNUM_P, FPC_REGNUM_P): Delete macros. (i386_fp_regnum_p, i386_fpc_regnum_p): Declare. (IS_FP_REGNUM): Update definition. (IS_FPU_CTRL_REGNUM): Update definition.. (IS_SSE_REGNUM): Update definition.. * i386v-nat.c (register_u_addr): Update. * go32-nat.c (fetch_register): Update. (store_register): Update.
* * Makefile.in (ALLDEPFILES): Remove i387-nat.c.Jason Thorpe2002-05-111-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | (i387-nat.o): Delete dependency list. (go32-nat.o): Change i387-nat.h to i387-tdep.h. (x86-64-linux-nat.o): Likewise. * i387-nat.c: Delete file, moving contents to... * i387-tdep.c: ...here. * i387-nat.h: Rename... * i387-tdep.h: ...to this. * go32-nat.c: Include i387-tdep.h instead of i387-nat.h. * i386-linux-nat.c: Likewise. * i386bsd-nat.c: Likewise. * i386gnu-nat.c: Likewise. * i386nbsd-nat.c: Likewise. * i386v4-nat.c: Likewise. * x86-64-linux-nat.c: Likewise. * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o. * config/i386/go32.mh (NATDEPFILES): Likewise. * config/i386/i386gnu.mh (NATDEPFILES): Likewise. * config/i386/i386sol2.mh (NATDEPFILES): Likewise. * config/i386/i386v42mp.mh (NATDEPFILES): Likewise. * config/i386/linux.mh (NATDEPFILES): Likewise. * config/i386/nbsd.mh (NATDEPFILES): Likewise. * config/i386/nbsdelf.mh (NATDEPFILES): Likewise. * config/i386/obsd.mh (NATDEPFILES): Likewise. * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
* go32-nat.c (store_register): Cast &a_tss to `char *', to avoid compilerEli Zaretskii2002-04-191-1/+1
| | | | | | warning. config/djgpp/README: Update.
* s/strerror/safe_strerror/Andrew Cagney2002-03-271-2/+2
|
* * go32-nat.c (_initialize_go32_nat): Don't use periods in theEli Zaretskii2002-02-281-1/+1
| | | | | first line of the doc string for "info dos", except at the end of the sentence, since the short help stops at the first period.
* * fix compilation failure by adding #include "i386-tdep.h"Pierre Muller2002-02-191-0/+1
|
* * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_PMark Kettenis2002-01-211-3/+3
| | | | | macros instead of LAST_FPU_CTRL_REGNUM. (store_register): Likewise.
* * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneousEli Zaretskii2002-01-131-8/+5
| | | | | white space which prevented compilation. Reported by DSK <dsk@student.unsw.edu.au>.
* 2001-12-04 Pierre Muller <muller@ics.u-strasbg.fr>Pierre Muller2001-12-061-5/+1
| | | | | | * go32-nat.c (go32_fetch_registers): Remove call to register_buffer (which is now a static function in regcache.c) and use regcache_collect instead.
* * go32-nat.c (save_npx): Avoid a warning from GCC 3.x.Eli Zaretskii2001-11-251-13/+12
|
* * TODO (register_buffer): Delete.Andrew Cagney2001-11-151-1/+2
| | | | | | | | | | | * regcache.c (register_buffer): Make static. (regcache_collect): New function. * regcache.h (register_buffer): Delete declaration. (regcache_collect): Declare. * remote.c (store_register_using_P): Rewrite using regcache_collect. (remote_store_registers): Ditto. * go32-nat.c (store_register): Ditto.
* * go32-nat.c (go32_create_inferior): Use xfree instead of free.Andrew Cagney2001-08-241-1/+1
| | | | | * config/djgpp/fnchange.lst: Add entries for i386bsd-tdep.c and i386bsd-nat.c.
* The following changes avoid polluting global namespace with theEli Zaretskii2001-08-021-3/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | `enable' and `disable' identifiers, because some platforms define in their system headers symbols with global scope that go by those names. * breakpoint.h (enum enable_state): Rename from `enum enable'. Also rename all the enum members to have the "bp_" prefix. (struct breakpoint): Rename the `enable' member to `enable_state'. (enum bpdisp): Rename all members to have the "disp_" prefix. * breakpoint.c: All users of `enum enable' and `enum bpdisp' changed. (args_for_catchpoint_enable): Rename the `enable' member to `enable_p'. All users changed. * tracepoint.h (enum enable): Remove. (struct tracepoint): The member `enabled' is now `int enabled_p'. * tracepoint.c: All users of the `enabled' member changed. * printcmd.c (struct display): The `status' member is now an int. * memattr.h (struct mem_region): Rename the `status' member to `enabled_p'. (enum enable): Remove. * memattr.c: Change all users of the `status' member of struct mem_region to use `enabled_p' instead. * infcmd.c (run_stack_dummy): Use disp_del instead of del. * go32-nat.c: Remove the kludgey work-around for conflicts between <dos.h> and "breakpoint.h". * tui/tuiSourceWin.c: Use disp_del instead of del. * tui/tuiSource.c: Use disp_del instead of del. * tui/tuiDisassem.c: Use disp_del instead of del.
* * go32-nat.c (get_cr3): Temporary disable support for page tablesEli Zaretskii2001-07-291-0/+2
| | | | in UMBs, as it is incomplete.
* * go32-nat.c (read_memory_region): Make sure the segment limit wasEli Zaretskii2001-07-261-1/+4
| | | | indeed set, to work around a Windows 2000 bug.
* Add new DJGPP-specific commands and document them in the manual.Eli Zaretskii2001-07-231-8/+292
| | | | | Make the function which reads memory regions be more defensive about buggy DPMI providers.
* * go32-nat.c (go32_create_inferior): Support command lines longerEli Zaretskii2001-07-151-3/+19
| | | | than 126 characters.
* * go32-nat.c (info_dos_cmdlist): New variable.Eli Zaretskii2001-07-111-11/+28
| | | | | | | (go32_info_dos_command): New function. (_initialize_go32_nat): Convert all DOS-specific commands into subcommands of "info dos". Suggested by Andrew Cagney <ac131313@redhat.com>.
* * go32-nat.c (go32_get_windows_version, print_mem, go32_sysinfo)Eli Zaretskii2001-07-081-1/+747
| | | | | | | | | | (read_memory_region, get_descriptor, display_descriptor) (go32_sldt, go32_sgdt, go32_sidt): New functions. (top-level): Include ctype.h, utsname.h, dos.h, and go32.h. Ifdef away `disable' from dos.h, since breakpoint.h defines an enum member of the same name, and GCC 2.7.2 barfs. (_initialize_go32_nat): Provide new commands dos-sysinfo, dos-ldt, dos-gdt, and dos-idt, all of them in the "info" class
* * go32-nat.c (go32_wait): Change the return value to ptid_t.Eli Zaretskii2001-06-041-2/+2
| | | | | | | * config/djgpp/fnchange.lst: Add two new files in the gdb/testsuite/gdb.c++/ directory to the remapped names. * config/djgpp/djconfig.sh (lt_cv_sys_max_cmd_len): Set to 12KB.
* Phase 1 of the ptid_t changes.Kevin Buettner2001-05-041-6/+8
|
* * go32-nat.c: Minor tweaks, to pacify the ari script.Eli Zaretskii2001-04-011-3/+12
|
* * config/djgpp/djconfig.sh: Add copyright notice.Eli Zaretskii2001-03-261-22/+28
| | | | | | | | | | | | | | | | | | | | | | | * ser-go32.c (rawclock): Remove prototype; include time.h instead. (ISR, dos_hookirq, isr_t): Convert K&R definition to ANSI C. (top level) <string.h>: Include gdb_string.h instead. (dos_noop, dos_raw, dos_noflush_set_tty_state) (dos_print_tty_state, dos_info): Remove ATTRIBUTE_UNUSED. * go32-nat.c (go32_create_inferior): Move the declaration of `environ' to here from the top level. (top level) <_initialize_go32_nat>: Remove redundant prototype. <gdb_string.h>: Include it instead of string.h. (store_register): Call register_buffer instead of accessing registers[] directly. (redir_cmdline_delete, redir_cmdline_parse, redir_to_debugger) (redir_to_debugger, redir_debug_init) [__DJGPP_MINOR__ < 3]: Put the function names at the start of the line. (go32_set_dr): Throw internal_error if the argument is not a valid debug register number. (go32_open, go32_close, go32_attach, go32_detach, go32_resume) (go32_wait, go32_xfer_memory, go32_files_info) (go32_terminal_info): Remove ATTRIBUTE_UNUSED.
* * config/i386/nm-go32.h <top level>: Don't include nm-i386v.h,Eli Zaretskii2001-03-221-387/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | include nm-i386.h instead. (TARGET_HAS_HARDWARE_WATCHPOINTS, HAVE_CONTINUABLE_WATCHPOINT) (TARGET_CAN_USE_HARDWARE_WATCHPOINT, STOPPED_BY_WATCHPOINT) (TARGET_REGION_OK_FOR_HW_WATCHPOINT, DECR_PC_AFTER_HW_BREAK) (target_stopped_data_address, target_insert_watchpoint) (target_remove_watchpoint, target_insert_hw_breakpoint) (target_remove_hw_breakpoint): Don't define. (I386_USE_GENERIC_WATCHPOINTS, I386_DR_LOW_SET_CONTROL) (I386_DR_LOW_SET_ADDR, I386_DR_LOW_RESET_ADDR) (I386_DR_LOW_GET_STATUS): Define to call appropriate go32_* functions from go32-nat.c. * config/i386/go32.mh (NATDEPFILES): Add i386-nat.o. * go32-nat.c <top level>: Remove prototypes for watchpoint- related functions. Remove definitions of watchpoint-related macros. (go32_mourn_inferior): Call i386_cleanup_dregs instead of the private cleanup_dregs function. (cleanup_dregs, go32_insert_watchpoint) (go32_insert_aligned_watchpoint, go32_handle_nonaligned_watchpoint) (go32_remove_watchpoint, go32_remove_aligned_watchpoint) (go32_region_ok_for_watchpoint, go32_stopped_by_watchpoint) (go32_remove_hw_breakpoint, go32_insert_hw_breakpoint): Remove. (go32_set_dr, go32_set_dr7, go32_get_dr6): New functions.
* Create new file regcache.h. Update all uses.Andrew Cagney2001-03-011-0/+1
|
* * go32-nat.c: Include i387-nat.h.Eli Zaretskii2001-02-181-56/+26
| | | | | | | | | | | | | (fetch_register): New function, uses some of the guts of go32_fetch_registers and i387_supply_register. (go32_fetch_registers): Most of the code moved into fetch_register. Use i387_supply_fsave. (store_register): Use i387_fill_fsave instead of custom code. (go32_store_registers): Use i387_fill_fsave. * Makefile.in (go32-nat.o): Depend on i387-nat.h. * config/i386/go32.mh (NATDEPFILES): Add i387-nat.o.
* Add __FILE__ and __LINE__ parameter to internal_error() /Andrew Cagney2001-02-081-6/+10
| | | | internal_verror().
* * go32-nat.c (go32_xfer_memory): Make the argument list consistentEli Zaretskii2001-02-041-1/+4
| | | | with target.h's to_xfer_memory member.
* * go32-nat.c: (go32_wait): If child_cwd[] is empty, initializeEli Zaretskii2000-08-061-2/+15
| | | | | | | it to GDB's current directory. (go32_create_inferior, init_go32_ops): Initialize child_cwd[] to an empty string, to signal an uninitialized value. From Robert Hoehne <robert.hoehne@gmx.net>.
* * go32-nat.c (go32_insert_hw_breakpoint): When there are no moreEli Zaretskii2000-04-121-2/+2
| | | | | | hardware breakpoint resources, return EBUSY. (go32_handle_nonaligned_watchpoint): If the argument WHAT is not one of the enumerated values, return EINVAL.
* * go32-nat.c (go32_handle_nonaligned_watchpoint): Use aEli Zaretskii2000-04-031-8/+7
| | | | | two-dimensional array instead of faking it with index arithmetics.
* * go32-nat.c (struct env387): Remove declaration.Eli Zaretskii2000-03-131-208/+129
| | | | | | | | | | | | | | | | | | | | (print_387_status, i386_go32_float_info): Remove redundant functions. (regno_mapping, sig_map, excepn_map): Add braces around inner initializers. (many functions): Use ATTRIBUTE_UNUSED to shut up the compiler; fix code which mixed signed with unsigned. (go32_resume): Use TARGET_SIGNAL_LAST instead of -1. (go32_wait): Initialize INT3_addr. (go32_fetch_registers): Extend all FP registers that are shorter than 4 bytes to 32 bits. Support 32 standard FP registers defined on config/i386/tm-i386.h. (store_register): Support 32 FP registers. (go32_create_inferior): Don't crash if handed a NULL pointer instead of exec file name. (ignore): Remove unused function. (go32_insert_hw_breakpoint): Remove unused variables. (init_go32_ops): Set value of processing_gcc_compilation to 2.
* Replace ../include/wait.h with gdb_wait.h.Andrew Cagney2000-02-091-1/+1
|
* import gdb-1999-12-06 snapshotJason Molenda1999-12-071-1/+1
|
* import gdb-1999-11-16 snapshotJason Molenda1999-11-171-5/+6
|
* import gdb-1999-10-04 snapshotJason Molenda1999-10-051-1/+1
|
* import gdb-1999-09-21Jason Molenda1999-09-221-9/+3
|
* import gdb-1999-08-30 snapshotJason Molenda1999-08-311-1/+0
|
* import gdb-1999-08-23 snapshotJason Molenda1999-08-231-144/+602
|
* import gdb-1999-07-07 post reformatJason Molenda1999-07-071-176/+166
|
* import gdb-1999-06-07 snapshotJason Molenda1999-06-071-3/+44
|
* import gdb-19990504 snapshotStan Shebs1999-05-051-11/+115
|
* import gdb-19990422 snapshotStan Shebs1999-04-271-0/+754
|
* recording file deathK. Richard Pixley1992-12-081-35/+0
|
* go32 host/target/native separationK. Richard Pixley1992-10-161-0/+35