summaryrefslogtreecommitdiff
path: root/gdb/record.c
Commit message (Collapse)AuthorAgeFilesLines
* Add a debug message to function "record_arch_list_add".reverse-20081226-branchHui Zhu2008-12-301-0/+7
|
* Change "RECORD_IS_USED" to "TARGET_IS_PROCESS_RECORD".Hui Zhu2008-12-301-7/+7
|
* 2008-12-28 Michael Snyder <msnyder@vmware.com>Michael Snyder2008-12-281-32/+27
| | | | * Comments, spelling, white space clean-ups.
* 2008-12-26 Michael Snyder <msnyder@vmware.com>Michael Snyder2008-12-271-13/+23
| | | | | | | | | | * record.h: Don't export record_not_record. * infrun.c (proceed): Don't call record_not_record_set. * record.h (record_not_record): Rename to in_record_wait. (record_not_record_set): Rename to in_record_wait_set. (record_not_record_cleanup): Rename to in_record_wait_cleanup. (record_store_registers): Check in_record_wait flag. (record_xfer_partial): Ditto.
* 2008-12-26 Michael Snyder <msnyder@vmware.com>Michael Snyder2008-12-261-92/+236
| | | | * Marker: adding teawater patches to branch.
* 2008-10-08 Hui Zhu <teawater@gmail.com>Hui Zhu2008-10-091-2/+2
| | | | * record.c (record_open): Reset after push_target.
* 2008-10-07 Michael Snyder <msnyder@vmware.com>Michael Snyder2008-10-081-34/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * target.h (to_set_exec_direction, to_get_exec_direction): Remove. (to_can_execute_reverse): New method. (enum exec_direction_kind): Move to inferior.h. * target.c (update_current_target): Inherit to_can_execute_reverse. Remove to_set_exec_direction, to_get_exec_direction. * inferior.h (enum exec_direction_kind): Move from target.h. * infrun.c (set_exec_direction_func): Move here from reverse.c. (show_exec_direction_func): Ditto. (proceed): Consult global execution_direction instead of target method. (handle_inferior_event): Ditto. * reverse.c (set_exec_direction_func): Move to infrun.c (show_exec_direction_func): Ditto. (exec_direction_default): Set infrun global variable. (exec_reverse_once): Consult infrun global direction variable. * infcmd.c (step_1): Consult infrun global direction variable. (step_once): Ditto. (until_next_command): Ditto. (finish_command): Ditto. * record.h (record_exec_direction): Delete. (RECORD_IS_REPLAY): Consult infrun global direction variable. * record.c: (record_wait_cleanups): Use infrun state variable. (record_wait): Ditto. (record_get_exec_direction, record_set_exec_direction): Remove. (record_can_execute_reverse): New target method. * remote.c (remote_resume): Use infrun state variable. (remote_get_exec_direction, remote_set_exec_direction): Remove. (remote_can_execute_reverse): New target method.
* 2008-10-07 Hui Zhu <teawater@gmail.com>Hui Zhu2008-10-071-50/+50
| | | | | | | * i386-tdep.c, inflow.c, infrun.c, linux-record.c, linux-record.h, record.c, record.h: Change name from "record and reverse target" to "process record and replay target".
* 2008-10-06 Michael Snyder <msnyder@vmware.com>Michael Snyder2008-10-071-28/+1
| | | | | | | | * record.c (displaced_step_fixup): Remove. (record_message_cleanups): Remove displaced step handling. (record_message): Remove displaced step handling. * infrun.c (displaced_step_ptid): Back to being static. (displaced_step_original, displaced_step_copy): Ditto.
* 2008-10-04 Hui Zhu <teawater@gmail.com>Michael Snyder2008-10-061-13/+40
| | | | | | | | | | | | | | | | | | | | | | | | | | Change from "to_prepare_to_store" to "to_store_registers". * record.c (record_beneath_to_prepare_to_store): Removed. (record_beneath_to_store_registers): New function pointer. Instead "record_beneath_to_prepare_to_store". Will point to the low strata target "to_store_registers" function. (record_prepare_to_store): Removed. (record_store_registers): New function. Instead "record_prepare_to_store". Record the change of registers from GDB. (init_record_ops): Change record_prepare_to_store to record_store_registers. * record.h (record_beneath_to_prepare_to_store): Removed. (record_beneath_to_store_registers): New extern. (record_regcache_raw_write_regnum): Remove. * target.c (update_current_target): Change record_beneath_to_prepare_to_store to record_beneath_to_store_registers. 2008-10-06 Michael Snyder <msnyder@promb-2s-dhcp59.eng.vmware.com> * regcache.c (regcache_raw_write): Remove global variable. No need to include "record.h" now. * record.c (record_regcache_raw_write_regnum): Remove.
* 2008-10-05 Michael Snyder <msnyder@vmware.com>Michael Snyder2008-10-061-20/+20
| | | | | | | * target.c, target.h: Rename execdir to exec_direction. * record.c, record.h: Ditto. * reverse.c: Ditto. * remote.c: Ditto.
* 2008-10-02 Michael Snyder <msnyder@vmware.com>Michael Snyder2008-10-031-2/+1
| | | | | | | * record.c (record_open): Call target_can_async_p() instead of relying on a global variable. * record.h (record_linux_async_permitted): Delete. * linux-nat.c (record_linux_async_permitted): Delete reference.
* 2008-09-19 Michael Snyder <msnyder@vmware.com>Michael Snyder2008-09-221-2/+2
| | | | * record.c (trivial): Fix two commas in a comment.
* 2008-09-19 Michael Snyder <msnyder@vmware.com>Michael Snyder2008-09-221-10/+10
| | | | | * record.c (record_wait): On end of record log, return TARGET_WAITKIND_NO_HISTORY and let infrun decide what to do.
* 2008-09-19 Hui Zhu <teawater@gmail.com>Hui Zhu2008-09-181-41/+34
| | | | | | | | | * record.c (record_wait): Fix the bug of forware step after reverse step. Make debug message more clean. Remove variable record_list_status. * i386-tdep.c (i386_record): Fix the bug of "0x80 ... 0x83".
* 2008-09-11 Hui Zhu <teawater@gmail.com>Hui Zhu2008-09-111-1/+1
| | | | | * record.c (record_resume): Change "record_ops.beneath->to_resume" to "record_beneath_to_resume".
* 2008-09-07 Hui Zhu <teawater@gmail.com>Hui Zhu2008-09-071-1/+10
| | | | * record.c (record_wait): Add code to deal with record_first.
* 2008-09-06 Michael Snyder <msnyder@vmware.com>Michael Snyder2008-09-071-9/+35
| | | | * record.c: Add some function header comments.
* 2008-09-06 Michael Snyder <msnyder@vmware.com>Michael Snyder2008-09-071-48/+54
| | | | * record.c: Comment and message string cleanup.
* the insn number.Hui Zhu2008-09-021-61/+110
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (record_registers_change): Call function "record_check_insn_num" check the insn number. Increase "record_insn_num" if need. (record_xfer_partial): Call function "record_check_insn_num" check the insn number. Increase "record_insn_num" if need. 2008-08-10 Hui Zhu <teawater@gmail.com> Add the real beneath function pointers for record target. * Makefile.in: Add record.h to depend of target.c. * record.c (record_beneath_to_resume, record_beneath_to_wait, record_beneath_to_prepare_to_store, record_beneath_to_xfer_partial, record_beneath_to_insert_breakpoint, record_beneath_to_remove_breakpoint): New function pointers. The real beneath function pointers. (record_resume): Change "record_ops.beneath->to_resume" to "record_beneath_to_resume". (record_wait): Change "record_ops.beneath->to_wait" to "record_beneath_to_wait". (record_prepare_to_store): Change "record_ops.beneath->to_prepare_to_store" to "record_beneath_to_prepare_to_store". (record_xfer_partial): Change "record_ops.beneath->to_xfer_partial" to "record_beneath_to_xfer_partial". (record_insert_breakpoint): Change "record_ops.beneath->to_insert_breakpoint" to "record_beneath_to_insert_breakpoint". (record_remove_breakpoint): Change "record_ops.beneath->to_remove_breakpoint" to "record_beneath_to_remove_breakpoint". * record.h (record_beneath_to_resume, record_beneath_to_wait, record_beneath_to_prepare_to_store, record_beneath_to_xfer_partial, record_beneath_to_insert_breakpoint, record_beneath_to_remove_breakpoint): Extern. * target.c: Add include of "record.h". (update_current_target): Set the real beneath function pointers.
* 2008-08-10 Hui Zhu <teawater@gmail.com>Hui Zhu2008-08-151-19/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add the real beneath function pointers for record target. * Makefile.in: Add record.h to depend of target.c. * record.c (record_beneath_to_resume, record_beneath_to_wait, record_beneath_to_prepare_to_store, record_beneath_to_xfer_partial, record_beneath_to_insert_breakpoint, record_beneath_to_remove_breakpoint): New function pointers. The real beneath function pointers. (record_resume): Change "record_ops.beneath->to_resume" to "record_beneath_to_resume". (record_wait): Change "record_ops.beneath->to_wait" to "record_beneath_to_wait". (record_prepare_to_store): Change "record_ops.beneath->to_prepare_to_store" to "record_beneath_to_prepare_to_store". (record_xfer_partial): Change "record_ops.beneath->to_xfer_partial" to "record_beneath_to_xfer_partial". (record_insert_breakpoint): Change "record_ops.beneath->to_insert_breakpoint" to "record_beneath_to_insert_breakpoint". (record_remove_breakpoint): Change "record_ops.beneath->to_remove_breakpoint" to "record_beneath_to_remove_breakpoint". * record.h (record_beneath_to_resume, record_beneath_to_wait, record_beneath_to_prepare_to_store, record_beneath_to_xfer_partial, record_beneath_to_insert_breakpoint, record_beneath_to_remove_breakpoint): Extern. * target.c: Add include of "record.h". (update_current_target): Set the real beneath function pointers.
* Support more ioctl requests in record target.Hui Zhu2008-08-071-2/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * i386-linux-tdep.c (I386_RECORD_SIZE_termios, I386_RECORD_SIZE_termios2, I386_RECORD_SIZE_pid_t, I386_RECORD_SIZE_winsize, I386_RECORD_SIZE_char, I386_RECORD_SIZE_serial_struct, I386_RECORD_SIZE_serial_icounter_struct, I386_RECORD_SIZE_hayes_esp_config): New macros. Sizes of some types in I386. (I386_RECORD_IOCTL_TCGETS, I386_RECORD_IOCTL_TCSETS, I386_RECORD_IOCTL_TCSETSW, I386_RECORD_IOCTL_TCSETSF, I386_RECORD_IOCTL_TCGETA, I386_RECORD_IOCTL_TCSETA, I386_RECORD_IOCTL_TCSETAW, I386_RECORD_IOCTL_TCSETAF, I386_RECORD_IOCTL_TCSBRK, I386_RECORD_IOCTL_TCXONC, I386_RECORD_IOCTL_TCFLSH, I386_RECORD_IOCTL_TIOCEXCL, I386_RECORD_IOCTL_TIOCNXCL, I386_RECORD_IOCTL_TIOCSCTTY, I386_RECORD_IOCTL_TIOCGPGRP, I386_RECORD_IOCTL_TIOCSPGRP, I386_RECORD_IOCTL_TIOCOUTQ, I386_RECORD_IOCTL_TIOCSTI, I386_RECORD_IOCTL_TIOCGWINSZ, I386_RECORD_IOCTL_TIOCSWINSZ, I386_RECORD_IOCTL_TIOCMGET, I386_RECORD_IOCTL_TIOCMBIS, I386_RECORD_IOCTL_TIOCMBIC, I386_RECORD_IOCTL_TIOCMSET, I386_RECORD_IOCTL_TIOCGSOFTCAR, I386_RECORD_IOCTL_TIOCSSOFTCAR, I386_RECORD_IOCTL_FIONREAD, I386_RECORD_IOCTL_TIOCINQ, I386_RECORD_IOCTL_TIOCLINUX, I386_RECORD_IOCTL_TIOCCONS, I386_RECORD_IOCTL_TIOCGSERIAL, I386_RECORD_IOCTL_TIOCSSERIAL, I386_RECORD_IOCTL_TIOCPKT, I386_RECORD_IOCTL_FIONBIO, I386_RECORD_IOCTL_TIOCNOTTY, I386_RECORD_IOCTL_TIOCSETD, I386_RECORD_IOCTL_TIOCGETD, I386_RECORD_IOCTL_TCSBRKP, I386_RECORD_IOCTL_TIOCTTYGSTRUCT, I386_RECORD_IOCTL_TIOCSBRK, I386_RECORD_IOCTL_TIOCCBRK, I386_RECORD_IOCTL_TIOCGSID, I386_RECORD_IOCTL_TCGETS2, I386_RECORD_IOCTL_TCSETS2, I386_RECORD_IOCTL_TCSETSW2, I386_RECORD_IOCTL_TCSETSF2, I386_RECORD_IOCTL_TIOCGPTN, I386_RECORD_IOCTL_TIOCSPTLCK, I386_RECORD_IOCTL_FIONCLEX, I386_RECORD_IOCTL_FIOCLEX, I386_RECORD_IOCTL_FIOASYNC, I386_RECORD_IOCTL_TIOCSERCONFIG, I386_RECORD_IOCTL_TIOCSERGWILD, I386_RECORD_IOCTL_TIOCSERSWILD, I386_RECORD_IOCTL_TIOCGLCKTRMIOS, I386_RECORD_IOCTL_TIOCSLCKTRMIOS, I386_RECORD_IOCTL_TIOCSERGSTRUCT, I386_RECORD_IOCTL_TIOCSERGETLSR, I386_RECORD_IOCTL_TIOCSERGETMULTI, I386_RECORD_IOCTL_TIOCSERSETMULTI, I386_RECORD_IOCTL_TIOCMIWAIT, I386_RECORD_IOCTL_TIOCGICOUNT, I386_RECORD_IOCTL_TIOCGHAYESESP, I386_RECORD_IOCTL_TIOCSHAYESESP, I386_RECORD_IOCTL_FIOQSIZE): New macros. Ioctl request numbers in I386. (i386_linux_init_abi): Initialize the size of some types and ioctl request numbers in linux_record_tdep. linux-record.c (record_linux_system_call): Record more ioctl requests. linux-record.h (linux_record_tdep_s): Add size of some types and ioctl request numbers. Add a cleanup in function "record_wait". * record.c (record_wait_cleanups): New function. Clean for function "record_wait". (record_wait): Add a cleanup to call function "record_wait_cleanups". i386-tdep.c (i386_record_lea_modrm): If this is not a error, output warning message of "can't get the value of the segment register" just when record_debug is set. record.c (record_message): Change output message from "pause" to "stop". linux-record.c (record_linux_system_call): Change output message from "pause" to "stop". linux-record.c (record_linux_system_call): Make query message for syscall munmap more clear. record.c (_initialize_record): Fix a little bug.
* chael Snyder <msnyder@specifix.com>Michael Snyder2008-08-011-21/+24
| | | | | | | | | | * record.c (_initialize_record): Clarify language in help strings. Fix up comment format (period must be followed by two spaces). 2008-08-01 Michael Snyder <msnyder@specifix.com> * i386-tdep.c (i386_record_lea_modrm): Spelling fix. :wq
* Change record.c (record_list_release_next) just release "record_list".Hui Zhu2008-07-301-4/+147
| | | | | Add record instructions limit. Add a cleanup for displaced stepping in function "record_message_cleanups".
* Add a cleanup in function "record_message".Hui Zhu2008-07-271-12/+14
|
* Add record target to GDB.Hui Zhu2008-07-201-0/+891