Pedro Alves
a9840291c6
Make hardware breakpoints work for process repord.
...
* record.c (record_wait): Only adjust PC on software breakpoints
hits.
2009-11-22 15:47:31 +00:00
Pedro Alves
9093389c0f
Make hardware watchpoints work for process record.
...
* breakpoint.c (hardware_watchpoint_inserted_in_range): New.
* breakpoint.h (hardware_watchpoint_inserted_in_range): Declare.
* record.c (record_beneath_to_stopped_by_watchpoint)
(record_beneath_to_stopped_data_address, record_hw_watchpoint):
New globals.
(record_exec_insn): Check for watchpoint hits.
(tmp_to_stopped_by_watchpoint, tmp_to_stopped_data_address): New
globals.
(record_open): Set tmp_to_stopped_by_watchpoint,
tmp_to_stopped_data_address,
record_beneath_to_stopped_by_watchpoint and
record_beneath_to_stopped_data_address.
(record_wait): Report watchpoint hits to the core. Update and
extend comments.
(record_stopped_by_watchpoint): New.
(record_stopped_data_address): New.
(init_record_ops): Install them.
(init_record_core_ops): Ditto.
2009-11-22 15:38:59 +00:00
gdbadmin
815368956e
*** empty log message ***
2009-11-22 00:00:03 +00:00
Alan Modra
d5f1459580
daily update
2009-11-21 23:00:05 +00:00
Pedro Alves
2d134ed3d5
* breakpoint.c (update_watchpoint): Skip creating locations and
...
reading the selected frame if there's no execution.
(bpstat_stop_status): Use is_hardware_watchpoint. If not
stopping, update watchpoints and the global location list, instead
of removing and inserting all breakpoints.
(breakpoint_address_is_meaningful): Hardware watchpoints also have
a meaningful target address.
(watchpoint_locations_match): New.
(breakpoint_locations_match): New.
(watch_command_1): Create the watchpoint breakpoint without any
location initially. Use update_watchpoint to create the
watchpoint locations.
(update_global_location_list): Use breakpoint_locations_match, so
watchpoint locations are handled too. Also detect duplicate
watchpoint locations.
2009-11-21 21:37:21 +00:00
Pedro Alves
f6bc200880
gdb/
...
* breakpoint.h (struct breakpoint) <watchpoint_thread>: New field.
* breakpoint.c (watchpoint_in_thread_scope): New.
(update_watchpoint): Skip if the local watchpoint's thread doesn't
match the current thread, or if the current thread is running.
(watchpoint_check): Ditto.
(watch_command_1): Set the watchpoint's watchpoint_thread field.
gdb/testsuite/
* gdb.threads/local-watch-wrong-thread.c,
gdb.threads/local-watch-wrong-thread.exp: New files.
2009-11-21 21:17:17 +00:00
Pedro Alves
8c2fb5deb3
* gdb.cp/cplusfuncs.exp (info_func_regexp, print_addr): Don't
...
assume new `regsub' syntax available.
2009-11-21 05:17:41 +00:00
gdbadmin
fdfc554616
*** empty log message ***
2009-11-21 00:00:33 +00:00
Alan Modra
4b6775d10d
daily update
2009-11-20 23:00:04 +00:00
Jan Kratochvil
494cfb0f14
gdb/
...
* breakpoint.c (bp_location_compare): Change parameter a to ap and b to
bp. New variables a and b.
(bp_location_compare_for_qsort): Remove.
(update_global_location_list): Use now bp_location_compare.
2009-11-20 20:01:08 +00:00
Jan Kratochvil
a79d3c27d1
gdb/
...
Fix repeated rwatch output.
* amd64-linux-nat.c (amd64_linux_dr_set, amd64_linux_dr_set_control)
(amd64_linux_dr_set_addr, amd64_linux_dr_reset_addr)
(amd64_linux_dr_get_status): New comments.
(amd64_linux_dr_unset_status): New function.
(_initialize_amd64_linux_nat): Install it.
* i386-linux-nat.c (i386_linux_dr_get, i386_linux_dr_set)
(i386_linux_dr_set_control, i386_linux_dr_set_addr)
(i386_linux_dr_reset_addr, i386_linux_dr_get_status): New comments.
(i386_linux_dr_unset_status): New function.
(_initialize_i386_linux_nat): Install it.
* i386-nat.c (I386_DR_WATCH_MASK): New macro.
(I386_DR_WATCH_HIT): Use I386_DR_WATCH_MASK.
(i386_insert_aligned_watchpoint): Call i386_dr_low.unset_status.
* i386-nat.h (struct i386_dr_low_type): Extend comments for
set_control, set_addr, reset_addr and get_status. New unset_status.
* breakpoint.c (update_watchpoint): Extend the comment.
gdb/testsuite/
* gdb.base/watchpoint-hw-hit-once.exp,
gdb.base/watchpoint-hw-hit-once.c: New.
2009-11-20 19:57:29 +00:00
Pedro Alves
ebec9a0f77
gdb/
...
2009-11-20 Jan Kratochvil <jan.kratochvil@redhat.com>
Pedro Alves <pedro@codesourcery.com>
Fix reordered watchpoints triggered in other threads during all-stop.
* linux-nat.c (resume_callback, linux_nat_resume): Clear
stopped_by_watchpoint.
(save_sigtrap, linux_nat_stopped_by_watchpoint)
(linux_nat_stopped_data_address): New.
(stop_wait_callback, linux_nat_filter_event): Call save_sigtrap.
(linux_nat_add_target): Install linux_nat_stopped_by_watchpoint
and linux_nat_stopped_data_address.
* linux-nat.h (struct lwp_info): New fields stopped_by_watchpoint,
stopped_data_address_p and stopped_data_address.
gdb/testsuite/
2009-11-20 Jan Kratochvil <jan.kratochvil@redhat.com>
* gdb.base/watchthreads-reorder.exp,
gdb.base/watchthreads-reorder.c: New.
2009-11-20 19:52:08 +00:00
Michael Snyder
6b04bdb74a
2009-10-25 Michael Snyder <msnyder@vmware.com>
...
* target.h (struct target_ops): New methods to_get_bookmark
and to_goto_bookmark.
(target_get_bookmark): New macro.
(target_goto_bookmark): New macro.
* target.c (dummy_get_bookmark): New function, default implementation.
(dummy_goto_bookmark): New function, default implementation.
(update_current_target): Inherit new methods.
* record.c (record_get_bookmark): New function.
(record_goto_bookmark): New function.
(init_record_ops): Set to_get_bookmark and to_goto_bookmark methods.
* reverse.c (struct bookmark): New type.
(save_bookmark_command): New function (command).
(delete_bookmark_command): New function (command).
(goto_bookmark_command): New function (command).
(bookmarks_info): New function (command).
(_initialize_reverse): Add new bookmark commands.
* command.h (enum command_class): Add class_bookmark.
* NEWS: Mention bookmark commands.
2009-11-20 17:23:38 +00:00
Nick Clifton
c29aca4a95
* readelf.c: Include xc16x.h.
...
(dump_relocations): Handle relocations for the xc16x target.
(get_machine_name): Accept EM_C166 for xc16x targets.
(is_32bit_abs_reloc): Add support for xc16c 32-bit absolute reloc.
(is_16bit_abs_reloc): Add support for xc16c 16-bit absolute reloc.
(is_none_reloc): Add support for xc16c null reloc.
2009-11-20 15:13:17 +00:00
Thomas Schwinge
ce5181b407
ld/
...
2009-11-20 Thomas Schwinge <thomas@codesourcery.com>
* emulparams/armelf.sh (OTHER_READONLY_SECTIONS)
<__exidx_start, __exidx_end>: Use PROVIDE_HIDDEN.
* emulparams/armelf_linux_eabi.sh (OTHER_READONLY_SECTIONS)
<__exidx_start, __exidx_end>: Likewise.
* emulparams/armsymbian.sh (OTHER_READONLY_SECTIONS)
<.ARM.exidx$$Base, __exidx_start, __exidx_end, .ARM.exidx$$Limit>:
Likewise.
ld/testsuite/
2009-11-20 Thomas Schwinge <thomas@codesourcery.com>
* ld-arm/arm-dyn.ld: Adapt to main linker script changes.
* ld-arm/arm-lib.ld: Likewise.
* ld-arm/armthumb-lib.sym: : Adjust expected results.
* ld-arm/farcall-mixed-app-v5.d: Likewise.
* ld-arm/farcall-mixed-app.d: Likewise.
* ld-arm/farcall-mixed-app.sym: Likewise.
* ld-arm/farcall-mixed-lib.d: Likewise.
* ld-arm/mixed-app-v5.d: Likewise.
* ld-arm/mixed-app.d: Likewise.
* ld-arm/mixed-app.sym: Likewise.
* ld-arm/mixed-lib.sym: Likewise.
* ld-arm/preempt-app.sym: Likewise.
* ld-arm/tls-app.d: Likewise.
2009-11-20 15:04:51 +00:00
Pedro Alves
c7d46a38b6
* breakpoint.c (update_global_location_list): Fix duplicate
...
locations detection.
2009-11-20 14:51:47 +00:00
Pedro Alves
db82e815be
* infrun.c (handle_inferior_event): Hardware hatchpoint traps are
...
never random signals.
* breakpoint.c (update_global_location_list): Always delete
immediately delete hardware watchpoint locations and other
locations whose target address isn't meaningful. Update comment
explaining the hazard of moribund locations.
2009-11-20 13:08:16 +00:00
Paolo Bonzini
eb6cdd53bf
sync config with gcc:
...
2009-10-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
* acx.m4 (ACX_CHECK_CYGWIN_CAT_WORKS): Use = with test.
2009-11-20 10:12:01 +00:00
Paolo Bonzini
e12dec02a9
2009-11-20 Paolo Bonzini <bonzini@gnu.org>
...
* config.guess: Sync with upstream and gcc.
* config.sub: Sync with upstream and gcc.
2009-11-20 10:10:09 +00:00
Ben Elliston
6ee4cb2db4
* Makefile.am (syslex.o): Use $(NO_WERROR) not -Wno-error.
...
(sysinfo.o): Likewise.
* Makefile.in: Regenerate.
2009-11-20 00:30:01 +00:00
gdbadmin
3c768833f3
*** empty log message ***
2009-11-20 00:00:33 +00:00
Alan Modra
37cfb82003
daily update
2009-11-19 23:00:05 +00:00
Joel Brobecker
872f033780
* ada-lang.c (discrete_type_p): TYPE_CODE_BOOL is also a discrete type.
2009-11-19 22:45:56 +00:00
Joel Brobecker
2d9c5cff78
* completer.c (complete_line_internal): Make sure the command
...
completer is not NULL before calling it.
2009-11-19 22:44:34 +00:00
Joel Brobecker
ad82864c29
* ada-lang.c (packed_array_type): Rename to...
...
(constrained_packed_array_type): ...and update comment.
(decode_packed_array, decode_constrained_packed_array): Ditto.
(decode_packed_array_type, decode_constrained_packed_array_type):
Ditto.
(ada_is_constrained_packed_array_type): New function.
(ada_is_unconstrained_packed_array_type): New function.
(decode_packed_array_bitsize): New function, extracted from
decode_packed_array_type.
(ada_type_of_array): Add support for unconstrained packed arrays.
(ada_coerce_to_simple_array_ptr, ada_coerce_to_simple_array)
(ada_array_bound_from_type, ada_array_bound, ada_array_length)
(ada_prefer_type, to_fixed_array_type, ada_evaluate_subexp): Resync.
* ada-lang.h (ada_is_packed_array_type,
ada_is_constrained_packed_array_type): Renaming.
* ada-valprint.c (ada_val_print_1): Resync.
* ada-typeprint.c (print_array_type, ada_print_type): Resync.
2009-11-19 22:42:48 +00:00
Joel Brobecker
5b3d5b7dfc
Wrong function used to perform address addition/subtraction.
...
* ada-lang.c (ada_type_match): Stop making TYPE_CODE_VOID
a wildcard matching any type. For types that we don't already
handle specifically, make sure that both types have the same code.
2009-11-19 22:37:35 +00:00
Joel Brobecker
a10967fa49
* ada-lang.c (ada_decode): Add handling of "TB" suffixes for
...
task bodies.
2009-11-19 22:36:05 +00:00
Joel Brobecker
69fadcdff1
* ada-lang.c (ada_remove_Xbn_suffix): New function.
...
(find_old_style_renaming_symbol): Add handling for function suffixes
present in the name of various procedures.
Do not overwrite the function symbol's name.
2009-11-19 22:34:50 +00:00
Ben Elliston
17f99e29c5
* pex-unix.c (pex_child_error): Define writeerr macro to avoid
...
unused result warnings from write(3) calls. Undefine writeerr
after all uses.
2009-11-19 21:17:04 +00:00
Pedro Alves
c561c2760c
* breakpoint.c (breakpoint_address_bits): Visit all locations'
...
gdbarchs, not the breakpoint's gdbarch.
2009-11-19 17:02:46 +00:00
H.J. Lu
18d0c96eb9
Allow lock on cmpxch16b.
...
gas/testsuite/
2009-11-19 H.J. Lu <hongjiu.lu@intel.com>
* gas/i386/lock-1.s: Add cmpxchg16b test.
* gas/i386/lock-1-intel.d: Updated.
* gas/i386/lock-1.d: Likewise.
opcodes/
2009-11-19 H.J. Lu <hongjiu.lu@intel.com>
* i386-opc.tbl: Add IsLockable to cmpxch16b.
* i386-tbl.h: Regenerated.
2009-11-19 15:26:42 +00:00
Nick Clifton
945ee43039
PR binutils/10924
...
* gas/arm/arch4t-eabi.d: Restore previous expected dissambly of
instructions using Immediate Offset addressing with an offset of
zero.
* gas/arm/arch4t.d: Likewise.
* gas/arm/arm7t.d: Likewise.
* gas/arm/xscale.d: Likewise.
* gas/arm/wince-inst.d: Remove 'p' suffix from cmp, cmn, teq and
tst instructions.
PR binutils/10924
* arm-dis.c (print_insn_arm): Do not print an offset of zero when
decoding Immediaate Offset addressing.
2009-11-19 14:07:11 +00:00
Tristan Gingold
ac96f0c73d
2009-11-19 Tristan Gingold <gingold@adacore.com>
...
* coff-rs6000.c (rs6000coff_vec): Use generic routines instead of
hard-coded casts.
(pmac_xcoff_vec): Ditto.
* coff64-rs6000.c (rs6000coff64_vec): Ditto.
(aix5coff64_vec): Ditto.
2009-11-19 10:06:03 +00:00
Jan Beulich
f08e1e197a
gas/
...
2009-11-19 Jan Beulich <jbeulich@novell.com>
* read.c (pseudo_set): Also call copy_symbol_attributes() for
undefined target symbol.
2009-11-19 08:41:27 +00:00
Sebastian Pop
41effecb2d
2009-11-18 Sebastian Pop <sebastian.pop@amd.com>
...
opcodes/
PR binutils/10973
* i386-dis.c (get_vex_imm8): Do not increment codep.
Avoid incrementing bytes_before_imm when OP_E_memory
has already forwarded the codep pointer.
(OP_EX_VexW): Increment codep to skip mod/rm byte.
gas/testsuite/
* gas/i386/x86-64-xop.d: Update patterns.
2009-11-19 07:08:39 +00:00
Alan Modra
7984f34977
PR ld/9863
...
* emulparams/armelf_linux.sh (DATA_START_SYMBOLS): Use PROVIDE
with __data_start.
2009-11-19 07:01:40 +00:00
Ben Elliston
cfdf38f2b4
binutils/
...
* arlex.l: Enable noinput, nounput flex options.
* syslex.l: Likewise.
ld/
* ldlex.l: Enable nounput flex option.
2009-11-19 05:06:35 +00:00
gdbadmin
f66cfbed9a
*** empty log message ***
2009-11-19 00:00:03 +00:00
Alan Modra
6a6ff7e229
daily update
2009-11-18 23:00:05 +00:00
Vladimir Prus
3630a92dd7
* cli/cli-script.c (process_next_line): Recognize 'end'
...
even when the line has leading space and we're not parsing
commands.
2009-11-18 20:42:38 +00:00
Sebastian Pop
f0ae4a24b0
2009-11-18 Sebastian Pop <sebastian.pop@amd.com>
...
gas/
* config/tc-i386.c (cpu_arch): Remove cvt16.
(md_show_usage): Same.
* doc/c-i386.texi: Same.
gas/testsuite/
* gas/i386/cvt16.d: Removed.
* gas/i386/cvt16.s: Removed.
* gas/i386/x86-64-cvt16.d: Removed.
* gas/i386/x86-64-cvt16.s: Removed.
* gas/i386/i386.exp: Remove cvt16 and x86-64-cvt16 tests.
opcodes/
* i386-dis.c (VEX_LEN_XOP_08_A0): Removed.
(VEX_LEN_XOP_08_A1): Removed.
(xop_table): Remove entries for VEX_LEN_XOP_08_A0 and
VEX_LEN_XOP_08_A1.
(vex_len_table): Same.
* i386-gen.c (CPU_CVT16_FLAGS): Removed.
(cpu_flags): Remove field for CpuCVT16.
* i386-opc.h (CpuCVT16): Removed.
(i386_cpu_flags): Remove bitfield cpucvt16.
(i386-opc.tbl): Remove CVT16 instructions.
* i386-init.h: Regenerated.
* i386-tbl.h: Regenerated.
2009-11-18 20:28:59 +00:00
H.J. Lu
d72de478df
Remove suffix on fxsave.
...
2009-11-18 H.J. Lu <hongjiu.lu@intel.com>
* gas/i386/rex.d: Remove suffix on fxsave.
2009-11-18 20:04:47 +00:00
Nick Clifton
fad84867f9
* ld-elf/extract-symbol-1sec.d: Expect to fail for the RX target.
...
* ld-scripts/overlay-size.d: Likewise.
* ld-scripts/rgn-at1.d: Likewise.
* ld-scripts/rgn-at2.d: Likewise.
* ld-scripts/rgn-at3.d: Likewise.
* ld-scripts/rgn-at4.d: Likewise.
* ld-scripts/rgn-over8-ok.d: Likewise.
2009-11-18 16:37:56 +00:00
Tom Tromey
72dcaf823d
* symtab.c (symbol_set_names): Correctly set 'name' on symbol when
...
lookup name differs.
2009-11-18 16:28:42 +00:00
Paul Brook
ada65aa377
2009-11-18 Paul Brook <paul@codesourcery.com>
...
gas/
* config/tc-arm.c (arm_fpus): Add fpv4-sp-d16.
(aeabi_set_public_attributes): Correctly mark VFPv3xD.
include/opcode/
* arm.h (FPU_VFP_V4_SP_D16, FPU_ARCH_VFP_V4_SP_D16): Define.
2009-11-18 15:48:59 +00:00
Tristan Gingold
ab7e10a0c4
2009-11-18 Tristan Gingold <gingold@adacore.com>
...
* machoread.c (macho_oso_symfile): Fix typo. Add comments.
2009-11-18 14:10:47 +00:00
Alan Modra
2d0f389600
bfd/
...
* bfd-in.h (_bfd_elf_ppc_at_tls_transform): Declare.
* bfd-in2.h: Regenerate.
* elf64-ppc.c (ppc64_elf_relocate_section): Move code for R_PPC64_TLS
insn optimisation to..
* elf32-ppc.c (_bfd_elf_ppc_at_tls_transform): ..here. New function.
(ppc_elf_relocate_section): Use it.
gas/
* config/tc-ppc.c (md_assemble): Report error on invalid @tls operands
and opcode.
2009-11-18 12:42:52 +00:00
Alan Modra
8cddccd3f1
* targets.c: Don't include alloca-conf.h.
...
(bfd_get_target_info): Don't use alloca.
2009-11-18 12:14:00 +00:00
Alan Modra
3cb4feec44
* alloca-conf.h: Clarify comment.
2009-11-18 11:57:44 +00:00
Sebastian Pop
5dd85c9970
2009-11-17 Sebastian Pop <sebastian.pop@amd.com>
...
Quentin Neill <quentin.neill@amd.com>
gas/
* config/tc-i386.c (cpu_arch): Added .xop and .cvt16.
(build_vex_prefix): Handle xop08.
(md_assemble): Don't special case the constant 3 for insns using MODRM.
(build_modrm_byte): Handle vex2sources.
(md_show_usage): Add xop and cvt16.
* doc/c-i386.texi: Document fma4, xop, and cvt16.
gas/testsuite/
* gas/i386/i386.exp: Run xop and cvt16 in 32-bit mode.
Run x86-64-xop and x86-64-cvt16 in 64-bit mode.
* gas/i386/lwp.d: Update name of the testcase.
* gas/i386/x86-64-xop.d: New.
* gas/i386/x86-64-xop.s: New.
* gas/i386/xop.d: New.
* gas/i386/xop.s: New.
* gas/i386/cvt16.d: New.
* gas/i386/cvt16.s: New.
opcodes/
* i386-dis.c (OP_Vex_2src_1): New.
(OP_Vex_2src_2): New.
(Vex_2src_1): New.
(Vex_2src_2): New.
(XOP_08): Added.
(VEX_LEN_XOP_08_A0): Added.
(VEX_LEN_XOP_08_A1): Added.
(VEX_LEN_XOP_09_80): Added.
(VEX_LEN_XOP_09_81): Added.
(xop_table): Added an entry for XOP_08. Handle xop instructions.
(vex_len_table): Added entries for VEX_LEN_XOP_08_A0,
VEX_LEN_XOP_08_A1, VEX_LEN_XOP_09_80, VEX_LEN_XOP_09_81.
(get_valid_dis386): Handle XOP_08.
(OP_Vex_2src): New.
* i386-gen.c (cpu_flag_init): Add CPU_XOP_FLAGS and CPU_CVT16_FLAGS.
(cpu_flags): Add CpuXOP and CpuCVT16.
(opcode_modifiers): Add XOP08, Vex2Sources.
* i386-opc.h (CpuXOP): Added.
(CpuCVT16): Added.
(i386_cpu_flags): Add cpuxop and cpucvt16.
(XOP08): Added.
(Vex2Sources): Added.
(i386_opcode_modifier): Add xop08, vex2sources.
* i386-opc.tbl: Add entries for XOP and CVT16 instructions.
* i386-init.h: Regenerated.
* i386-tbl.h: Regenerated.
2009-11-18 04:04:17 +00:00