Pedro Alves
25513619db
* procfs.c (procfs_insert_watchpoint, procfs_remove_watchpoint)
...
(procfs_region_ok_for_hw_watchpoint, procfs_use_watchpoints): New
functions.
(procfs_stopped_by_watchpoint): Made static, ptid argument
removed.
(_initialize_procfs): Register new watchpoint related target
functions.
* config/i386/nm-i386sol2.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT)
(TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT, STOPPED_BY_WATCHPOINT)
(HAVE_CONTINUABLE_WATCHPOINT): Delete.
(target_insert_watchpoint, target_remove_watchpoint): Delete.
(procfs_stopped_by_watchpoint, procfs_set_watchpoint): Delete
declarations.
* config/mips/nm-irix5.h (STOPPED_BY_WATCHPOINT)
(TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete.
(target_insert_watchpoint, target_remove_watchpoint): Delete.
(procfs_stopped_by_watchpoint, procfs_set_watchpoint): Delete
declarations.
* config/sparc/nm-sol2.h (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT)
(HAVE_CONTINUABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT): Delete.
(target_insert_watchpoint, target_remove_watchpoint): Delete.
(procfs_stopped_by_watchpoint, procfs_set_watchpoint): Delete
declarations.
2009-05-06 17:18:57 +00:00
Hui Zhu
51f4db8353
Fix the date error.
2009-05-06 11:17:52 +00:00
Hui Zhu
8408d2743c
* i386-tdep.c (i386_process_record): Change bzero to memset.
2009-05-06 11:16:40 +00:00
Hui Zhu
e7a8dbfb06
* NEWS: Add item for process record and replay.
2009-05-06 02:32:42 +00:00
Maxim Grigoriev
f6402f18d5
2009-05-05 Maxim Grigoriev <maxim2405@gmail.com>
...
* xtensa-tdep.c (xtensa_frame_cache): Use pc instead of cache->pc.
2009-05-06 00:37:22 +00:00
gdbadmin
3e6a008f65
*** empty log message ***
2009-05-06 00:00:34 +00:00
Michael Snyder
64644d9b8c
2009-05-04 Michael Snyder <msnyder@vmware.com>
...
* NEWS: Add item for reverse debugging commands.
2009-05-05 18:13:37 +00:00
Ulrich Weigand
fb14de7bbd
* inferior.h (read_pc, write_pc): Remove.
...
* regcache.c (read_pc, write_pc): Remove.
* infrun.c (displaced_step_fixup): Use regcache_read_pc instead
of read_pc.
(handle_inferior_event): Use regcache_read_pc instead of read_pc
when determining value of stop_pc. Replace subsequent uses of
read_pc by inspecting already-retrieved stop_pc value.
(keep_going): Use regcache_read_pc instead of read_pc.
* breakpoint.c (watchpoint_check): Use current frame architecture
and PC instead of current_gdbarch and read_pc ().
* tracepoint.c (set_traceframe_context): Replace PC argument
with FRAME argument.
(trace_start_command, finish_tfind_command): Update calls.
(finish_tfind_command): Compare frame IDs to identify transitions
between frames.
(trace_find_pc_command): Use regcache_read_pc instead of read_pc.
* rs6000-nat.c (exec_one_dummy_insn): Pass in regcache instead
of gdbarch. Use regcache_read_pc and regcache_write_pc instead
of read_pc and write_pc.
(store_register): Make regcache argument non-const. Update call
to exec_one_dummy_insn.
* thread.c (switch_to_thread): Use regcache_read_pc instead of read_pc.
* infcmd.c (post_create_inferior): Likewise.
* solib-darwin.c (darwin_solib_create_inferior_hook): Likewise.
* solib-pa64.c (pa64_solib_create_inferior_hook): Likewise.
* solib-sunos.c (sunos_solib_create_inferior_hook): Likewise.
* solib-svr4.c (enable_break, svr4_relocate_main_executable): Likewise.
* linux-fork.c (fork_load_infrun_state): Likewise.
* hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Likewise.
* record.c (record_wait): Likewise.
* procfs.c (procfs_wait): Likewise.
* remote-mips.c (common_open, mips_wait): Likewise.
* remote-m32r-sdi.c (m32r_resume): Likewise.
* symfile.c (generic_load): Use regcache_write_pc instead of write_pc.
* monitor.c (monitor_create_inferior, monitor_load): Likewise.
* m32r-rom.c (m32r_load, m32r_upload_command): Likewise.
* remote-m32r-sdi.c (m32r_create_inferior, m32r_load): Likewise.
* remote-mips.c (mips_create_inferior, mips_load): Likewise.
* solib-darwin.c: Include "regcache.h".
* solib-pa64.c: Include "regcache.h".
* solib-svr4.c: Include "regcache.h.".
* symfile.c: Do not mention read_pc or write_pc in comments.
* dink32-rom.c: Likewise.
* m32r-rom.c: Likewise.
* mips-tdep.c: Likewise.
2009-05-05 13:24:49 +00:00
Ulrich Weigand
f698437e4b
* fork-child.c (startup_inferior): Move setting stop_pc ...
...
* infcmd.c (post_create_inferior): ... to here.
2009-05-05 13:09:00 +00:00
gdbadmin
163ea230b5
*** empty log message ***
2009-05-05 00:00:33 +00:00
Pedro Alves
67ce33d768
* go32-nat.c (go32_stop): Delete.
...
(go32_kill_inferior): Rewrite to only call go32_mourn_inferior.
(go32_create_inferior): Don't call go32_stop or
go32_kill_inferior.
(go32_mourn_inferior): Inline go32_stop and go32_kill_inferior
here.
(init_go32_ops): Don't register go32_stop.
2009-05-04 09:54:17 +00:00
gdbadmin
16c6c40fbf
*** empty log message ***
2009-05-04 00:00:04 +00:00
gdbadmin
ac7fe9c3e4
*** empty log message ***
2009-05-03 00:00:34 +00:00
Eli Zaretskii
26a4ddaad2
*** empty log message ***
2009-05-02 09:42:12 +00:00
Eli Zaretskii
87bc73eacf
* dbxread.c (read_dbx_symtab): Avoid compiler warnings for
...
sym_name.
* infcall.c (find_function_addr): Avoid compiler warnings for
funaddr.
2009-05-02 09:41:52 +00:00
gdbadmin
80f61e9b05
*** empty log message ***
2009-05-02 00:00:34 +00:00
Jan Kratochvil
a11a141613
gdb/
...
* dictionary.c (dict_hashed_vector, dict_hashed_expandable_vector)
(dict_linear_vector, dict_linear_expandable_vector): Fix a comment typo.
2009-05-01 22:39:41 +00:00
Doug Evans
ee78f3e598
* linux-thread-db.c (thread_db_pid_to_str): Delete unused assignment
...
to thread_info.
2009-05-01 22:05:46 +00:00
Eli Zaretskii
299a410e8d
* record.c (_initialize_record): Reformat and clarify doc strings
...
for stop-at-limit and insn-number-max.
2009-05-01 17:57:31 +00:00
Eli Zaretskii
699275c920
* go32-nat.c: Add comments about dirty secrets of DJGPP debugging.
2009-05-01 17:45:43 +00:00
Jan Kratochvil
323427d1cb
gdb/
...
Make specifiable the make_function_type type memory ownership.
* gdbtypes.c (make_function_type): New parameter `objfile', use it
explicitely instead of TYPE-initialized removed local variable
`objfile'. Describe `objfile' it in the function comment.
(lookup_function_type): Update make_function_type callers.
* gdbtypes.h (make_function_type): Update the prototype.
* jv-lang.c (java_link_class_type): Update make_function_type callers.
* dwarf2read.c (read_subroutine_type): Likewise.
* stabsread.c (read_type): Likewise.
2009-05-01 14:43:21 +00:00
Eli Zaretskii
a2311334f7
* gdb.texinfo (Process Record and Replay): Improve and clarify.
...
Add index entries.
2009-05-01 09:11:25 +00:00
Eli Zaretskii
89c9c2eca0
* go32-nat.c (go32_pid_to_str): Call normal_pid_to_str instead of
...
printing a bogus "Thread <main>".
(go32_thread_alive): Don't return 1 for null_ptid.
2009-05-01 08:14:00 +00:00
Eli Zaretskii
15430fc07a
* i386-tdep.c (i386_go32_init_abi): Override the number of
...
registers due to non-support of SSE.
2009-05-01 08:09:16 +00:00
Anthony Green
c7098c4185
Link gdb with moxie sim
2009-05-01 03:20:46 +00:00
gdbadmin
399b3a158f
*** empty log message ***
2009-05-01 00:00:03 +00:00
Doug Evans
9f76782569
* inferiors.c (started_inferior_callback): New function.
...
(attached_inferior_callback): New function.
(have_started_inferiors_p, have_attached_inferiors_p): New functions.
* server.c (print_started_pid, print_attached_pid): New functions.
(detach_or_kill_for_exit): New function.
(main): Call it instead of for_each_inferior (kill_inferior_callback).
* server.h (have_started_inferiors_p): Declare.
(have_attached_inferiors_p): Declare.
2009-04-30 22:21:06 +00:00
Paul Pluzhnikov
25c2f6abe0
2009-04-30 Paul Pluzhnikov <ppluzhnikov@google.com>
...
* elfread.c (elf_symtab_read): Don't assume .data and .rodata
are present.
2009-04-30 21:59:03 +00:00
Doug Evans
5091eb23aa
* inferiors.c (remove_process): Fix memory leak, free process.
...
* linux-low.c (linux_remove_process): New function.
(linux_kill): Call it instead of remove_process.
(linux_detach, linux_wait_1): Ditto.
2009-04-30 18:35:55 +00:00
Doug Evans
dc621c3587
* gdb.threads/watchthreads2.exp: New testcase.
...
* gdb.threads/watchthreads2.c: New testcase.
2009-04-30 18:25:51 +00:00
Hui Zhu
53cc454a92
* gdb.texinfo: Add documentation for process record and replay.
2009-04-30 03:24:48 +00:00
Hui Zhu
77fcef5176
I386 Linux process record and replay support.
...
* i386-linux-tdep.c (i386_linux_record_tdep): New variable.
This struct has the argument for the function
"record_linux_system_call".
(i386_linux_intx80_sysenter_record): New function. Parse the
system call instruction and call function
"record_linux_system_call" to record execute log.
(i386_linux_init_abi): Initialize "i386_linux_record_tdep".
Set "i386_linux_intx80_sysenter_record" to
"i386_intx80_record" and "i386_sysenter_record".
2009-04-30 03:21:46 +00:00
Hui Zhu
7ad1096851
I386 architecture process record and replay support.
...
* i386-tdep.c (PREFIX_REPZ, PREFIX_REPNZ, PREFIX_LOCK,
PREFIX_DATA, PREFIX_ADDR): New macros. Help decode the i386
instruction set.
(aflag, dflag, override, modrm, mod, reg, rm, ot,
i386_record_pc): New variables. Ditto.
(i386_record_modrm, i386_record_lea_modrm_addr,
i386_record_lea_modrm): New functions. Ditto.
(i386_process_record): New function. Parse the instruction in
address "addr" and record the values of registers and memory
that will be changed by this instruction.
(i386_gdbarch_init): Set "i386_process_record" to GDBARCH
"process_record" interface.
* i386-tdep.h (gdbarch_tdep): New function pointers
"i386_intx80_record" and "i386_sysenter_record" that point to
the function that can record "intx80" and "sysenter" execute
log.
2009-04-30 03:12:17 +00:00
Hui Zhu
96429cc883
* infrun.c (use_displaced_stepping): Return false if process
...
record and replay target is used.
(proceed): Call function "record_not_record_set" if pocess
record and replay target is used.
2009-04-30 03:09:59 +00:00
Hui Zhu
b7f6bf2299
Linux process record and replay support.
...
* Makefile.in (ALLDEPFILES): Add linux-record.c.
(ALL_TARGET_OBS): Add linux-record.o.
* configure.tgt (x86_64-*-linux*): Add linux-record.o.
(i[34567]86-*-linux*): Add linux-record.o.
* linux-record.c, linux-record.h: New file.
2009-04-30 03:04:28 +00:00
Hui Zhu
69d05d3898
Process record and replay target.
...
* Makefile.in (SFILES): Add record.c.
(COMMON_OBS): Add record.o.
* record.c, record.h: New file.
2009-04-30 02:58:37 +00:00
Hui Zhu
81e64f5509
* target.h (strata): New stratum "record_stratum".
2009-04-30 02:55:27 +00:00
Hui Zhu
0407e7127b
* gdbarch.sh (process_record): This interface point to the
...
function that records the inferior execute log.
2009-04-30 02:53:45 +00:00
Hui Zhu
0508c3ec4d
GDBARCH interface for process record and replay.
...
* gdbarch.sh (process_record): This interface point to the
function that records the inferior execute log.
2009-04-30 02:52:16 +00:00
gdbadmin
00ee36855d
*** empty log message ***
2009-04-30 00:00:33 +00:00
Doug Evans
9ab4e74422
* gdb.cp/mb-ctor.exp: Add multi-line source statement test.
...
* gdb.cp/mb-ctor.cc: Ditto.
* gdb.cp/mb-inline.exp: Add multi-line source statement test.
* gdb.cp/mb-inline.h (multi_line_foo): New function.
* gdb.cp/mb-inline1.cc: Call it.
* gdb.cp/mb-inline2.cc: Ditto.
* gdb.cp/mb-templates.exp: Add multi-line source statement test.
* gdb.cp/mb-templates.cc (multi_line_foo): New template.
2009-04-29 22:45:11 +00:00
Doug Evans
c5af0dad33
* i386-nat.c (child_post_startup_inferior): Delete, unused.
2009-04-29 22:25:17 +00:00
Pedro Alves
df2b6d2de9
* breakpoint.c (print_exception_catchpoint): Access `b' directly
...
instead of `b->loc->owner'.
(print_mention_exception_catchpoint): Ditto.
2009-04-29 19:31:58 +00:00
Jan Kratochvil
484086b7e0
gdb/
...
* macrocmd.c (info_macro_command): Print -Dname=value if LINE is zero.
gdb/doc/
* gdb.texinfo (Macros): Note command-line for `info macro'. Append
a new part on command-line defined macros.
gdb/testsuite/
* gdb.base/macscp.exp: New `options' parameter `-DFROM_COMMANDLINE'.
(info_macro): Remova `decimal' declaration. New variable `nonzero'.
Replace all uses of `decimal' by `nonzero'.
(info macro FROM_COMMANDLINE): New test.
2009-04-29 07:51:33 +00:00
gdbadmin
fc34a64325
*** empty log message ***
2009-04-29 00:00:03 +00:00
Tom Tromey
379a77b548
gdb
...
* c-exp.y (yylex): Handle '[' and ']' like '(' and ')'.
gdb/testsuite
* gdb.base/printcmds.exp (test_printf): Test comma operator in [].
2009-04-28 01:03:24 +00:00
gdbadmin
0c19b345c9
*** empty log message ***
2009-04-28 00:00:33 +00:00
Doug Evans
b92b73c2f6
* gdb.threads/watchthreads.c (main): Initialize args before starting
...
the threads. Plus formatting cleanup.
* gdb.threads/watchthreads.exp: Avoid errant failures due to
biased scheduling of one thread.
2009-04-27 15:38:43 +00:00
Jerome Guitton
945a118de0
* gdb.cp/templates.cc (GetMax): New template.
...
(main): Declare two instances of GetMax.
* gdb.cp/templates.exp: Add new test.
2009-04-27 12:14:09 +00:00
Jerome Guitton
aad80b2683
* symtab.c (append_exact_match_to_sals): New function, extracted
...
from expand_line_sal.
(expand_line_sal): Use append_exact_match_to_sals to append exact
matches. If none found, append all best items.
2009-04-27 11:57:46 +00:00