summaryrefslogtreecommitdiff
path: root/gdb
Commit message (Collapse)AuthorAgeFilesLines
* 2008-10-10 Michael Snyder <msnyder@vmware.com>reverse-20080717-branchcvs/reverse-20080717-branchMichael Snyder2008-10-102-4/+20
| | | | | | | | | | * gdbfreeplay-back.c (handle_special_case): Add support for running off the ends of the replay log ('E06'). 2008-09-10 Michael Snyder <msnyder@vmware.com> * gdbfreeplay-back.c (handle_special_case): Add support for reverse debugging.
* 2008-10-09 Michael Snyder <msnyder@vmware.com>Michael Snyder2008-10-092-4/+8
| | | | | * reverse.c (exec_reverse_once): Eliminate fixed-size buffer, use xstrprintf.
* 2008-10-08 Hui Zhu <teawater@gmail.com>Hui Zhu2008-10-092-2/+6
| | | | * record.c (record_open): Reset after push_target.
* 2008-10-08 Michael Snyder <msnyder@vmware.com>Michael Snyder2008-10-082-1/+5
| | | | * infrun.c (handle_inferior_event): Typo in comment.
* 2008-10-07 Hui Zhu <teawater@gmail.com>Hui Zhu2008-10-082-10/+7
| | | | | * inflow.c (kill_command): Remove query special for process record.
* 2008-10-07 Michael Snyder <msnyder@vmware.com>Michael Snyder2008-10-0810-175/+155
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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 Michael Snyder <msnyder@vmware.com>Michael Snyder2008-10-072-9/+10
| | | | | | * infrun.c (stepped_into_function): Rename handle_step_into_function. (stepped_into_function_backward): Rename handle_step_into_function_backward.
* 2008-10-07 Michael Snyder <msnyder@vmware.com>Michael Snyder2008-10-072-6/+17
| | | | | | * reverse.c: Update copyright. (exec_reverse_once): Add function header comment. (_initialize_reverse): Use i18n macros for set exec-direction.
* 2008-10-07 Hui Zhu <teawater@gmail.com>Hui Zhu2008-10-078-107/+114
| | | | | | | * 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-073-34/+9
| | | | | | | | * 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-06 Michael Snyder <msnyder@vmware.com>Michael Snyder2008-10-074-3/+8
| | | | | | | * breakpoint.c (breakpoint_silence): Rename to make_breakpoint_silent. * breakpoint.h: Ditto. * infcmd.c (finish_backward): Call make_breakpoint_silent instead of breakpoint_silence.
* 2008-10-06 Michael Snyder <msnyder@vmware.com>Michael Snyder2008-10-072-0/+5
| | | | * infcmd.c (finish_command): Reject async in reverse.
* 2008-10-06 Michael Snyder <msnyder@vmware.com>Michael Snyder2008-10-072-3/+4
| | | | * infcmd.c (finish_command): Use i18n macros.
* 2008-10-06 Michael Snyder <msnyder@vmware.com>Michael Snyder2008-10-062-62/+63
| | | | * infcmd.c: Minor function reordering.
* 2008-10-06 Michael Snyder <msnyder@vmware.com>Michael Snyder2008-10-062-31/+58
| | | | | | | * infrun.c (step_into_function): Rename to stepped_into_function. Split into two versions (normal (forward), and reverse). (handle_inferior_event): Call stepped_into_function or stepped_into_function_backward, depending on exec_direction.
* 2008-10-06 Michael Snyder <msnyder@vmware.com>Michael Snyder2008-10-062-1/+2
| | | | * infrun.c (handle_inferior_event): Comment rewording.
* 2008-10-06 Michael Snyder <msnyder@vmware.com>Michael Snyder2008-10-062-7/+10
| | | | | * remote.c (remote_get_exec_direction): Use i18n macros. (remote_set_exec_direction): Ditto.
* 2008-10-06 Michael Snyder <msnyder@vmware.com>Michael Snyder2008-10-062-12/+9
| | | | * infrun.c (handle_inferior_event, step_into_function): Formatting.
* 2008-10-06 Michael Snyder <msnyder@vmware.com>Michael Snyder2008-10-062-7/+11
| | | | * infrun.c (handle_inferior_event): Formatting, spelling fix.
* Add tweaks from review commentsMichael Snyder2008-10-062-1/+9
|
* 2008-10-04 Hui Zhu <teawater@gmail.com>Michael Snyder2008-10-065-20/+70
| | | | | | | | | | | | | | | | | | | | | | | | | | 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-1/+1
| | | | | * infrun.c (use_displaced_stepping): Disallow displaced stepping if using record/replay target.
* 2008-10-05 Michael Snyder <msnyder@vmware.com>Michael Snyder2008-10-062-6/+9
| | | | | * reverse.c (exec_reverse_once): Call do_cleanups explicitly. (show_exec_direction_func): Don't error, just inform.
* 2008-10-05 Michael Snyder <msnyder@vmware.com>Michael Snyder2008-10-067-47/+61
| | | | | | | * target.c, target.h: Rename execdir to exec_direction. * record.c, record.h: Ditto. * reverse.c: Ditto. * remote.c: Ditto.
* 2008-10-03 Michael Snyder <msnyder@vmware.com>Michael Snyder2008-10-052-31/+27
| | | | | * linux-record.c (record_linux_system_call): Cast sizeof in printf calls, avoid compiler warnings on 64 bit hosts.
* Fix email addressMichael Snyder2008-10-051-3/+3
|
* 2008-10-05 Michael Snyder <msnyder@promb-2s-dhcp59.eng.vmware.com>Michael Snyder2008-10-051-1/+1
| | | | * infrun.c (handle_inferior_event): Fix typo in comment.
* 2008-10-05 Michael Snyder <msnyder@promb-2s-dhcp59.eng.vmware.com>Michael Snyder2008-10-052-1/+5
| | | | * infrun.c (handle_inferior_event): Fix typo in comment.
* *** empty log message ***Michael Snyder2008-10-051-0/+5
|
* 2008-10-04 Michael Snyder <msnyder@vmware.com>Michael Snyder2008-10-042-2/+12
| | | | * reverse.c (show_exec_direction_func): Don't error, just inform.
* 2008-10-02 Michael Snyder <msnyder@vmware.com>Michael Snyder2008-10-034-6/+10
| | | | | | | * 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-222-2/+4
| | | | * record.c (trivial): Fix two commas in a comment.
* 2008-09-19 Michael Snyder <msnyder@vmware.com>Michael Snyder2008-09-222-10/+15
| | | | | * record.c (record_wait): On end of record log, return TARGET_WAITKIND_NO_HISTORY and let infrun decide what to do.
* don't need globals hex and decimalMichael Snyder2008-09-195-13/+0
|
* Regularize prepare_for_testingMichael Snyder2008-09-191-24/+3
|
* prepare_for_testing, standardizeMichael Snyder2008-09-196-11/+6
|
* remove return-reverseMichael Snyder2008-09-192-138/+0
|
* Add overlooked reverse testMichael Snyder2008-09-195-9/+36
|
* 2008-09-19 Hui Zhu <teawater@gmail.com>Hui Zhu2008-09-183-46/+44
| | | | | | | | | * 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-15 Michael Snyder <msnyder@vmware.com>Michael Snyder2008-09-172-2/+13
| | | | | * infrun.c (proceed): No need to singlestep over a breakpoint when resuming in reverse.
* 2008-09-16 Michael Snyder <msnyder@vmware.com>Michael Snyder2008-09-164-0/+275
| | | | | | * gdb.twreverse/machinestate.exp: New file. * gdb.twreverse/machinestate.c: New file. * gdb.twreverse/machinestate1.c: New file.
* 2008-09-15 Michael Snyder <msnyder@vmware.com>Michael Snyder2008-09-163-0/+152
| | | | | | * gdb.twreverse/consecutive-reverse.exp: New file. * gdb.twreverse/consecutive-reverse.c: New file. * gdb.twreverse/Makefile.in: Update for make clean.
* 2008-09-11 Hui Zhu <teawater@gmail.com>Hui Zhu2008-09-112-1/+6
| | | | | * record.c (record_resume): Change "record_ops.beneath->to_resume" to "record_beneath_to_resume".
* 2008-09-10 Michael Snyder <msnyder@vmware.com>Michael Snyder2008-09-115-1/+355
| | | | | | * gdb.twreverse/until-reverse.exp: New file. * gdb.twreverse/until-reverse.c: New file. * gdb.twreverse/until-reverse1.c: New file.
* 2008-09-09 Michael Snyder <msnyder@vmware.com>Michael Snyder2008-09-098-58/+1200
| | | | | | | | | | | | | * gdb.twreverse/return2-reverse.c: Rename to: * gdb.twreverse/finish-reverse.c: New name of file. * gdb.twreverse/*.exp: Sharpen regexps, add $gdb_prompt. 2008-09-06 Michael Snyder <msnyder@vmware.com> * gdb.twreverse/watch-reverse.exp: New file. * gdb.twreverse/watch-reverse.c: New file. * gdb.twreverse/Makefile.in: Add watch-reverse for make clean. * gdb.twreverse/step-reverse.exp: Add $gdb_prompt to regexps.
* 2008-09-09 Hui Zhu <teawater@gmail.com>Hui Zhu2008-09-092-1/+161
| | | | * i386-tdep.c (i386_record): Record the memory change of FP instructions.
* 2008-09-07 Hui Zhu <teawater@gmail.com>Hui Zhu2008-09-072-1/+14
| | | | * record.c (record_wait): Add code to deal with record_first.
* 2008-06-25 Michael Snyder <msnyder@specifix.com>Michael Snyder2008-09-0712-12/+2355
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * gdbfreeplay-back.c (frame_find_request): Rewrite loop to avoid fencepost error on last frame. 2008-06-23 Michael Snyder <msnyder@specifix.com> * gdbfreeplay.h: Replace all address values with unsigned long long. * gdbfreeplay-i386.c: Ditto. * gdbfreeplay-mips64.c: Ditto. * gdbfreeplay-back.c: Ditto. * remote-break.c: Ditto. * remote-break.h: Ditto. * configure.srv: Add configuration for mips64-linux. * gdbfreeplay-mips64.c: New file, back-end for mips64. * Makefile.in: Add rules for mips and intel back-ends. 2008-06-21 Michael Snyder <msnyder@specifix.com> * gdbfreeplay-back.c (scan_gdbreplay_file): Add support for 'W' reply (exiting), but not for 'X' (terminated). (freeplay_find_event): Make sure we always advance by at least one frame, unles it's the first or last frame. (handle_special_case): Add support for 'S' and 'C' requests. * gdbfreeplay-back.c (handle_special_case): No need to re-compose a T packet (with doctored PC) on any stop signal except SIGTRAP. Fix stepping/breakpoint off-by-one issues. * gdbfreeplay-back.c (freeplay_find_event): Fix off-by-one error on last_cached_frame. (freeplay_show_next_commands): Ditto. (handle_special_case): Ditto, plus don't pass breakpoint_p == TRUE to target_compose_T_packet if we're stopped at the end of the event cache. * gdbfreeplay-back.c (handle_special_case): Silence gcc warning. * gdbfreeplay-i386.c (target_compose_g_packet): Ditto. Add monitor gdbreplay-next command. * gdbfreeplay-back.c (freeplay_show_next_commands): New function. Echo the next set of gdb commands, in the manner of gdbreplay. (handle_special_case): Handle monitor gdbreplay-next command. (fallbacks): Catch any unhandled qRcmd requests. Add support for 'R' packet (restart). * gdbfreeplay-back.c (handle_special_case). Add support for 'R'. Remove support for "monitor gdbfreeplay-echo". Add support for 'O' packet output. * remote-breakpoint.h (PLAY_O_PACKETS): New enum const. * gdbfreeplay-back.c (StopFrame): Discard gpos, replace with Opos. (scan_gdbreplay_file): Record Opos for frame if 'O' packet found. (frame_replay_O_packets): New function. (freeplay_find_event): Call frame_replay_O_packets. (handle_special_case): Pass PLAY_O_PACKETS to freeplay_find_event. Add temporary support for "monitor gdbfreeplay-echo" command (just for testing). * gdbfreeplay-back.c: Clean up round, comments, remove #if 0 etc. * gdbfreeplay-i386.c: Ditto. * gdbfreeplay-i386.c (target_pc_from_g): Accept a char * instead of a FILE *. * gdbfreeplay.h (target_pc_from_g): Change prototype. * gdbfreeplay-back.c (scan_gdbreplay_file): Change call. * gdbfreeplay-i386.c (target_compose_T_packet): Add default return. (target_compose_g_packet): New function. * gdbfreeplay.h (target_compose_g_packet): Export. * gdbfreeplay-back.c (handle_special_case): Give correct args for target_compose_T_packet. (fallbacks): Add handling for 'G', 'M', 'X', and 'g'. * gdbfreeplay-front.c: New file. Extended gdbreplay. * gdbfreeplay-back.c: New file. * gdbfreeplay-i386.c: New file. * gdbfreeplay.h: New file. * remote-breakpoint.c: New file. * remote-breakpoint.h: New file. * Makefile.in: Add rules for gdb-freeplay. * configure.srv: Ditto. * configure.ac: Ditto. * configure: Regenerate.
* 2008-09-06 Michael Snyder <msnyder@vmware.com>Michael Snyder2008-09-072-9/+36
| | | | * record.c: Add some function header comments.
* 2008-09-06 Michael Snyder <msnyder@vmware.com>Michael Snyder2008-09-072-13/+15
| | | | * record-linux.c: Comment and message string cleanup.