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
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
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
Eli Zaretskii
26a4ddaad2
*** empty log message ***
2009-05-02 09:42:12 +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
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
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
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
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
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
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
Jerome Guitton
57a460012a
* main.c (captured_main): Move gdbinit lookups after gdb_init.
2009-04-27 10:24:08 +00:00
Jan Kratochvil
d389af10b7
gdb/
...
PR gdb/9675:
* dwarf2read.c (unsigned_int_compar, inherit_abstract_dies): New.
(read_func_scope): Call inherit_abstract_dies.
gdb/testsuite/
* gdb.cp/abstract-origin.exp, gdb.cp/abstract-origin.cc: New test.
2009-04-27 08:36:17 +00:00
Eli Zaretskii
90b9b5173a
* Makefile.in (ALLDEPFILES): Remove duplicate entries for
...
sparc-sol2-nat.c and sparc-sol2-tdep.c.
2009-04-25 10:05:22 +00:00
Eli Zaretskii
80a0ea0fef
* stack.c (_initialize_stack) <disassemble-next-line>: Doc fix.
2009-04-25 09:42:15 +00:00
Pierre Muller
5ac79d7811
ARI change: Use "/* ARI: rule */" pattern.
...
* utils.c: Update ARI patterns.
* gdb_dirent.h: Likewise.
2009-04-24 22:10:03 +00:00
Anthony Green
d7066cce3b
Add moxie-elf port.
2009-04-24 02:26:01 +00:00
Joel Brobecker
fc84d355b2
Spell my name properly in the last entry :-).
2009-04-23 22:53:54 +00:00
Joel Brobecker
72fcaa051a
* ada-lang.c: Remove an extra empty line. No code change.
2009-04-23 22:52:51 +00:00
Jan Kratochvil
217dc9e25b
gdb/
...
Fix double free on error inserting the breakpoint instruction.
* breakpoint.c (create_breakpoints): Move the
update_global_location_list call to ...
(break_command_really): ... here together with the second local call
both unified after all the cleanups.
2009-04-23 22:38:24 +00:00
Tom Tromey
b14b1491f2
gdb
...
2009-04-23 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
Tom Tromey <tromey@redhat.com>
* configure, config.in: Regenerate.
* configure.ac: Support for relocatable GDB datadir. Use
GDB_AC_WITH_DIR. Always define TARGET_SYSTEM_ROOT_RELOCATABLE.
* acinclude.m4 (GDB_AC_WITH_DIR): New defun.
* top.c (init_main): Add "set data-directory".
* defs.h (gdb_datadir): Declare.
* main.c (gdb_datadir): New global.
(captured_main): Initialize gdb_datadir. Use relocate_directory.
(relocate_path): New function.
(relocate_directory): Likewise.
(get_init_files): Use relocate_path.
(README): Mention --with-gdb-datadir.
gdb/doc
2009-04-23 Tom Tromey <tromey@redhat.com>
* gdb.texinfo (Data Files): New node.
(GDB Files): Update menu.
2009-04-23 21:28:20 +00:00
Joel Brobecker
5e7b5f74c2
* ada-tasks (task_command_1): Call target_find_new_threads.
2009-04-23 18:55:20 +00:00
Joel Brobecker
465f42bbe4
* stack.c (do_gdb_disassembly): Print the exception message if an
...
error was thrown while trying to perform the disassembly.
2009-04-23 18:49:20 +00:00
Jan Kratochvil
3038237c75
gdb/
...
* varobj.c (free_variable): Replace free_current_contents by xfree.
2009-04-22 17:50:54 +00:00
Kazu Hirata
17c1263914
* arm-linux-nat.c (fetch_register, store_register): Use
...
ARM_CPSR_GREGNUM instead of ARM_CPSR_REGNUM.
* arm-linux-tdep.c (arm_linux_supply_gregset,
arm_linux_collect_gregset): Likewise.
* arm-linux-tdep.h (ARM_CPSR_GREGNUM): New.
* arm-tdep.h (ARM_CPSR_REGNUM): Remove.
2009-04-22 15:14:59 +00:00
Hui Zhu
a362e3d3b7
* stack.c (_initialize_stack): Set the default of
...
disassemble-next-line to off.
2009-04-22 06:06:12 +00:00
Tom Tromey
d2596e2e7b
* acinclude.m4: Use AS_HELP_STRING, not AC_HELP_STRING.
...
* configure.ac: Use AS_HELP_STRING, not AC_HELP_STRING.
2009-04-22 00:17:50 +00:00
Andreas Schwab
62e4f60cdb
* configure.ac: Add quotes to not lose brackets in help text.
...
* configure: Rebuild.
2009-04-21 21:01:07 +00:00
Andreas Schwab
82cd387f60
Fix date.
2009-04-21 20:54:33 +00:00
Andreas Schwab
cfd5360553
* configure.ac: Don't postprocess Makefile in config.status.
...
Substitute GDB_NM_FILE. Don't substitute nm_h.
* Makefile.in (GDB_NM_FILE): Substitute.
(TAGS): Use $(GDB_NM_FILE) instead of $(NAT_FILE).
* configure: Regenerate.
* gnulib/Makefile.in: Regenerate.
2009-04-21 20:19:13 +00:00
Joseph Myers
26e251b603
gdb:
...
* configure.ac (--with-datarootdir, --with-docdir, --with-pdfdir,
--with-htmldir): New.
* configure: Regenerate.
gdb/doc:
* configure.ac (--with-datarootdir, --with-docdir, --with-pdfdir,
--with-htmldir): New.
* configure: Regenerate.
* Makefile.in (datarootdir, docdir): Define.
(gdb.dvi, gdb.pdf): Use same -I options as for building gdb.info
instead of $(SET_TEXINPUTS).
(gdbint.dvi, gdbint.pdf): Use same -I options as for building
gdbint.info instead of $(SET_TEXINPUTS).
(gdbint/index.html): Use same -I options as for building
gdbint.info.
(stabs.dvi, stabs.pdf): Use same -I options as for building
stabs.info instead of $(SET_TEXINPUTS).
(stabs/index.html): Use same -I options as for building
stabs.info.
(annotate.dvi, annotate.pdf): Use same -I options as for building
annotate.info instead of $(SET_TEXINPUTS).
(annotate/index.html): Use same -I options as for building
annotate.info.
2009-04-21 20:13:08 +00:00
Tom Tromey
32c1c914bc
* configure: Rebuild.
...
* configure.ac: Use lower case for start of help strings. Clean
up --with-sysroot help.
2009-04-21 18:09:11 +00:00
Tom Tromey
a1220294e5
* configure: Rebuild.
...
* acinclude.m4 (AM_ICONV): Use AC_HELP_STRING.
* configure.ac: Use AC_HELP_STRING. Use upper case for variables
in help.
2009-04-21 17:00:17 +00:00