binutils-gdb.git
12 years ago * ld-elf/linkoncerdiff.d: Don't run for hppa64-hpux.
Alan Modra [Tue, 14 Feb 2012 01:02:04 +0000 (01:02 +0000)]
* ld-elf/linkoncerdiff.d: Don't run for hppa64-hpux.
* ld-elf/pr11304a.s: Always have whitespace before directives.
* ld-elf/pr11304b.s: Likewise.
* ld-selective/selective.exp: Test m68hc1* variant of m6811, m6812.
* lib/ld-lib.exp: Likewise, and vice versa.

12 years ago * gas/elf/bad-group.s: Add section attributes.
Alan Modra [Tue, 14 Feb 2012 01:01:30 +0000 (01:01 +0000)]
* gas/elf/bad-group.s: Add section attributes.
* gas/elf/elf.exp (groupautoa, groupautob): Don't run for hppa64-hpux.
(ifunc-1, type): Don't run for hpux.
* gas/elf/type-noifunc.e: Accept ANSI_COM.
* gas/elf/section7.s: Always have whitespace before directives.
* gas/elf/warn-2.s: Likewise.
* gas/i386/ifunc-3.s: Move .size directive.

12 years ago * binutils-all/dw2-decodedline.S: Always have whitespace before
Alan Modra [Tue, 14 Feb 2012 01:00:50 +0000 (01:00 +0000)]
* binutils-all/dw2-decodedline.S: Always have whitespace before
directives.
* binutils-all/version.s: Likewise.
* binutils-all/objdump.exp (dw2-decodedline): Don't run for
hppa64*-*-hpux*, i370-*-*, i960-*-*.

12 years ago*** empty log message ***
gdbadmin [Tue, 14 Feb 2012 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

12 years agodaily update
Alan Modra [Mon, 13 Feb 2012 23:00:05 +0000 (23:00 +0000)]
daily update

12 years ago * deffilep.y (find_export_in_list): Set is_indent for
Kai Tietz [Mon, 13 Feb 2012 20:42:07 +0000 (20:42 +0000)]
    * deffilep.y (find_export_in_list): Set is_indent for
        first or last element, if identical.
        (find_import_in_list): Likewise.

12 years agogdb/doc/
Pedro Alves [Mon, 13 Feb 2012 18:09:59 +0000 (18:09 +0000)]
gdb/doc/
2012-02-13  Pedro Alves  <palves@redhat.com>

* gdb.texinfo (MIPS boards): Refer to mips-elf instead of
mips-idt-ecoff.

gdb/testsuite/
2012-02-13  Pedro Alves  <palves@redhat.com>

* config/mips-idt.exp: Delete.
* gdb.base/a2-run.exp: Remove mips-idt xfails.
* gdb.base/bitfields.exp: Remove mips-idt restarts.
* gdb.base/break.exp: Remove mips-idt references.
* gdb.base/chng-syms.exp: Ditto.
* gdb.base/default.exp: Ditto.
* gdb.base/funcargs.exp (funcargs_reload): Delete.
(top level): Don't call it.
* gdb.base/opaque.exp: Remove mips-idt restarts.
* gdb.base/ptype.exp: Remove mips-idt xfails.
* gdb.base/scope.exp: Remove mips-idt restarts.
* gdb.base/sepdebug.exp: Remove mips-idt references.
* gdb.base/watchpoint.exp (maybe_clean_restart)
(maybe_reinitialize): Delete.
(test_disabling_watchpoints, test_disabling_watchpoints)
(test_watchpoint_triggered_in_syscall)
(test_watchpoint_and_breakpoint, test_inaccessible_watchpoint):
Don't call them.

12 years agoPR ld/13621
Richard Henderson [Mon, 13 Feb 2012 18:08:51 +0000 (18:08 +0000)]
PR ld/13621

bfd/
* linker.c (fix_syms): Force symbols outside any section into
bfd_abs_section_ptr.
ld/testsuite/
* ld-elf/warn2.d: Expect ABS section for Foo.
* ld-elf/zerosize1.d, zerosize1.s: New test.

12 years agorevert premature delta
Alan Modra [Mon, 13 Feb 2012 04:10:56 +0000 (04:10 +0000)]
revert premature delta

12 years ago * ld-m68hc11/m68hc11.exp: Run for m68hc11-*-* and m68hc12-*-*.
Alan Modra [Mon, 13 Feb 2012 02:31:53 +0000 (02:31 +0000)]
* ld-m68hc11/m68hc11.exp: Run for m68hc11-*-* and m68hc12-*-*.
* ld-m68hc11/adj-brset.d: Remove redundant #target line.  Add
-m m68hc11elf to ld invocation.
* ld-m68hc11/adj-jump.d: Likewise.
* ld-m68hc11/bug-1403.d: Likewise.
* ld-m68hc11/bug-1417.d: Likewise.
* ld-m68hc11/bug-3331.d: Likewise.
* ld-m68hc11/relax-direct.d: Likewise.
* ld-m68hc11/relax-group.d: Likewise.
* ld-m68hc11/far-hc11.d: Remove redundant #target line.  Adjust for
changed addresses.
* ld-m68hc11/far-hc12.d: Remove redundant #target line.
* ld-m68hc11/link-hcs12.d: Likewise, and adjust for header changes.

12 years ago * gas/all/gas.exp (redef2): xfail m6811 and m6812.
Alan Modra [Mon, 13 Feb 2012 02:31:18 +0000 (02:31 +0000)]
* gas/all/gas.exp (redef2): xfail m6811 and m6812.
* gas/elf/elf.exp: Use is_elf_format.
* gas/symver/symver.exp: Likewise.
* gas/m68hc11/m68hc11.exp: Simplify target test.
Add -m68hc11 to error tests that pass for hc12.

12 years ago * elf32-m68hc1x.c (elf32_m68hc11_merge_symbol_attribute): New function.
Alan Modra [Mon, 13 Feb 2012 02:29:51 +0000 (02:29 +0000)]
* elf32-m68hc1x.c (elf32_m68hc11_merge_symbol_attribute): New function.
* elf32-m68hc1x.h (elf32_m68hc11_merge_symbol_attribute): Declare.
* elf32-m68hc11.c (elf_backend_merge_symbol_attribute): Define.
* elf32-m68hc12.c (elf_backend_merge_symbol_attribute): Define.

12 years ago*** empty log message ***
gdbadmin [Mon, 13 Feb 2012 00:00:34 +0000 (00:00 +0000)]
*** empty log message ***

12 years agodaily update
Alan Modra [Sun, 12 Feb 2012 23:00:07 +0000 (23:00 +0000)]
daily update

12 years agogdb/
Jan Kratochvil [Sun, 12 Feb 2012 19:25:29 +0000 (19:25 +0000)]
gdb/
* ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
compilation warning.

12 years agogdb/
Jan Kratochvil [Sun, 12 Feb 2012 19:15:01 +0000 (19:15 +0000)]
gdb/
Fix crash on loaded shlibs without loaded exec_bfd.
* exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
(set_section_command): Replace exec_bfd by p->bfd.

gdb/testsuite/
* gdb.server/server-exec-info.exp: New file.

12 years agogas:
Iain Sandoe [Sun, 12 Feb 2012 15:47:17 +0000 (15:47 +0000)]
gas:

* config/obj-macho.c (obj_mach_o_indirect_symbol): Force promotion of
any local symbol used as an indirect.

12 years ago*** empty log message ***
gdbadmin [Sun, 12 Feb 2012 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

12 years agodaily update
Alan Modra [Sat, 11 Feb 2012 23:00:06 +0000 (23:00 +0000)]
daily update

12 years agoChangeLog binutils
Kai Tietz [Sat, 11 Feb 2012 20:02:03 +0000 (20:02 +0000)]
ChangeLog binutils

2012-02-11  Kai Tietz  <ktietz@redhat.com>

PR binutils/13657
* defparse.y (%union): New type id_const.
(opt_name2): New rule.
(keyword_as_name): New rule.
(opt_name): Adjust rule.
(opt_import_name): Likewise.
(opt_equal_name): Likewise.

ChangeLog binutils/testsuite

2012-02-11  Kai Tietz  <ktietz@redhat.com>

* binutils-all/version.def: New file.
* binutils-all/dlltool.exp: Add version-dll test.

ChangeLog ld

2012-02-11  Kai Tietz  <ktietz@redhat.com>

* deffilep.y (%union): New type id_const.
(opt_name2): New rule.
(keyword_as_name): New rule.
(dot_name): Replaced by opt_name2 rule.
(opt_name): Adjust rule.
(opt_equal_name): Likewise.

12 years ago * pe-dll.c (auto_export): Use bsearch to speed up scan of exports
Nick Clifton [Sat, 11 Feb 2012 19:25:12 +0000 (19:25 +0000)]
* pe-dll.c (auto_export): Use bsearch to speed up scan of exports
table.
(process_def_file_and_drectve): Maintain sorting of exports table
after stripping leading @ signs.

12 years ago PR binutils/13297
Kai Tietz [Sat, 11 Feb 2012 15:15:34 +0000 (15:15 +0000)]
PR binutils/13297
* resrc.c (write_rc_dialog_control): Omit text dump for
EDITTEXT, COMBOBOX, LISTBOX, and SCROLLBAR.

12 years ago * gas/i386/disp32.d: Adjust lable-pattern.
Kai Tietz [Sat, 11 Feb 2012 15:12:56 +0000 (15:12 +0000)]
    * gas/i386/disp32.d: Adjust lable-pattern.

12 years agobfd/
Jan Kratochvil [Sat, 11 Feb 2012 15:10:12 +0000 (15:10 +0000)]
bfd/
* oasys.c (oasys_write_header): Fix compilation warning on zero-sized
memset.

12 years agogdb/gdbserver/
Yao Qi [Sat, 11 Feb 2012 13:36:41 +0000 (13:36 +0000)]
gdb/gdbserver/
* server.c: (handle_monitor_command): Add a new parameter
`own_buf'.
(handle_query): Update caller.

12 years ago*** empty log message ***
gdbadmin [Sat, 11 Feb 2012 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

12 years agodaily update
Alan Modra [Fri, 10 Feb 2012 23:00:06 +0000 (23:00 +0000)]
daily update

12 years ago * linespec.c (decode_line_internal): Skip symtabs_from_filename
Tom Tromey [Fri, 10 Feb 2012 17:31:34 +0000 (17:31 +0000)]
* linespec.c (decode_line_internal): Skip symtabs_from_filename
when we have a C++ qualified name.

12 years ago2012-02-10 Pedro Alves <palves@redhat.com>
Pedro Alves [Fri, 10 Feb 2012 16:06:50 +0000 (16:06 +0000)]
2012-02-10  Pedro Alves  <palves@redhat.com>

* gdb.base/break-interp.exp (test_attach_gdb): Assume $file is
always non-empty.
(test_attach): Always pass $exec to test_attach_gdb.

12 years ago2012-02-10 Pedro Alves <palves@redhat.com>
Pedro Alves [Fri, 10 Feb 2012 14:23:52 +0000 (14:23 +0000)]
2012-02-10  Pedro Alves  <palves@redhat.com>

* inferior.c (inferior_pid_to_str): New.
(print_inferior, inferior_command): Use it.

12 years ago2012-02-10 Pedro Alves <palves@redhat.com>
Pedro Alves [Fri, 10 Feb 2012 13:57:59 +0000 (13:57 +0000)]
2012-02-10  Pedro Alves  <palves@redhat.com>

* configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
the test CFLAGS.
* configure: Regenerate.

12 years agogdb/
Jan Kratochvil [Fri, 10 Feb 2012 13:27:04 +0000 (13:27 +0000)]
gdb/
* linespec.c (decode_line_internal): Fix comment correctness.

12 years agogas:
Iain Sandoe [Fri, 10 Feb 2012 13:12:55 +0000 (13:12 +0000)]
gas:

* config/obj-macho.c (obj_mach_o_make_or_get_sect): Always fill in
stub size when provided.  (obj_mach_o_section): Flag that stub-size
has been provided.

12 years agobfd:
Iain Sandoe [Fri, 10 Feb 2012 11:24:44 +0000 (11:24 +0000)]
bfd:

* mach-o.c (bfd_mach_o_build_seg_command): Count zerofill section
vma additions in their logical, rather than physical order.

12 years agocorrect some mach-o section specification nits.
Iain Sandoe [Fri, 10 Feb 2012 11:07:33 +0000 (11:07 +0000)]
correct some mach-o section specification nits.

bfd:

* mach-o.c (mach_o_section_name_xlat): Correct eh-frame section
parameters.
* mach-o-x86-64.c (text_section_names_xlat): New.
(mach_o_x86_64_segsec_names_xlat): New.
(bfd_mach_o_tgt_seg_table): Define to mach_o_x86_64_segsec_names_xlat.
* mach-o-i386.c (text_section_names_xlat): Correct section parameters.

12 years ago2012-02-10 Tristan Gingold <gingold@adacore.com>
Tristan Gingold [Fri, 10 Feb 2012 10:09:14 +0000 (10:09 +0000)]
2012-02-10  Tristan Gingold  <gingold@adacore.com>

* elfnn-ia64.c (elfNN_vms_object_p): Change comparison operator
to avoid infinite loop.  Add comments.

12 years agogdb/doc/
Yao Qi [Fri, 10 Feb 2012 01:24:58 +0000 (01:24 +0000)]
gdb/doc/
* gdb.texinfo (Symbols In Python): Add missing `@end defvar'.

12 years ago*** empty log message ***
gdbadmin [Fri, 10 Feb 2012 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

12 years agodaily update
Alan Modra [Thu, 9 Feb 2012 23:00:06 +0000 (23:00 +0000)]
daily update

12 years agoDon't use multi byte nop instructions for i386
H.J. Lu [Thu, 9 Feb 2012 22:51:58 +0000 (22:51 +0000)]
Don't use multi byte nop instructions for i386

bfd/

2012-02-09  H.J. Lu  <hongjiu.lu@intel.com>

PR ld/13675
* cpu-i386.c (bfd_arch_i386_fill): Updated to support multi byte
nop instructions.
(bfd_arch_i386_short_nop_fill): New.
(bfd_arch_i386_long_nop_fill): Likewise.
Use bfd_arch_i386_short_nop_fill in 32bit bfd_arch_info
initializers.  Use bfd_arch_i386_long_nop_fill on 64bit
bfd_arch_info initializers.

* cpu-k1om.c (bfd_arch_i386_fill): Renamed to ...
(bfd_arch_i386_short_nop_fill): This.
Update bfd_arch_info initializers.
* cpu-l1om.c: Likewise.

ld/testsuite/

2012-02-09  H.J. Lu  <hongjiu.lu@intel.com>

PR ld/13675
* ld-i386/tlsnopic.dd: Update no-op padding.
* ld-i386/tlspic.dd: Likewise.

12 years ago[gdbserver] return ENOSYS if readlink not supported.
Joel Brobecker [Thu, 9 Feb 2012 17:29:34 +0000 (17:29 +0000)]
[gdbserver] return ENOSYS if readlink not supported.

This reproduces on the GDBserver side what GDB does when readlink is
not supported.

gdb/gdbserver/ChangeLog:

        * configure.ac: Add readlink to AC_CHECK_FUNCS list.
        * configure, config.in: Regenerate.
        * hostio.c: Provide an alternate implementation if HAVE_READLINK
        is not defined.

12 years ago2012-02-09 Valery Khromov <valery.khromov@gmail.com>
Pedro Alves [Thu, 9 Feb 2012 16:06:44 +0000 (16:06 +0000)]
2012-02-09  Valery Khromov  <valery.khromov@gmail.com>

PR gdb/12953
* Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
* amd64bsd-nat.c: Add support for debug registers (adapted from
i386bsd-nat.c).
[HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
(amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
(amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
(amd64bsd_dr_get_control): New functions.
* amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
* amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
[HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
watchpoints initialization.
* config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.

12 years agogdb/
Jan Kratochvil [Thu, 9 Feb 2012 15:14:46 +0000 (15:14 +0000)]
gdb/
* gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
flds_bnds.fields.
(StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.

12 years agogdb/
Jan Kratochvil [Thu, 9 Feb 2012 08:20:03 +0000 (08:20 +0000)]
gdb/
* breakpoint.c (bp_location_compare): Fix comment.  Reindent the code.

12 years ago * ldgram.y (input_section_spec_no_keep): Don't ignore sect_flags.
Alan Modra [Thu, 9 Feb 2012 05:26:13 +0000 (05:26 +0000)]
* ldgram.y (input_section_spec_no_keep): Don't ignore sect_flags.

12 years ago * sysdep.h: Include sys/stat.h here.
Alan Modra [Thu, 9 Feb 2012 04:51:44 +0000 (04:51 +0000)]
* sysdep.h: Include sys/stat.h here.
* ar.c: Don't include headers already included by sysdep.h.
* bucomm.c: Likewise.
* budbg.h: Likewise.
* dlltool.h: Likewise.
* elfedit.c: Likewise.
* nlmconv.c: Likewise.
* objcopy.c: Likewise.
* objdump.c: Likewise.
* objdump.h: Likewise.
* readelf.c: Likewise.
* rename.c: Likewise.
* resrc.c: Likewise.
* strings.c: Likewise.
* windres.c: Likewise.
* od-macho.c: Ensure #include sysdep.h is first.
* od-xcoff.c: Likewise.
* dllwrap.c: Remove alloca pragma handled by sysdep.h, and
remove duplicate headers.
* dlltool.c: Likewise and ensure #include sysdep.h is first.

12 years ago*** empty log message ***
gdbadmin [Thu, 9 Feb 2012 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

12 years agodaily update
Alan Modra [Wed, 8 Feb 2012 23:00:05 +0000 (23:00 +0000)]
daily update

12 years ago * gdb.python/py-symbol.exp: Use lookup_global_symbol for tests
Tom Tromey [Wed, 8 Feb 2012 19:58:25 +0000 (19:58 +0000)]
* gdb.python/py-symbol.exp: Use lookup_global_symbol for tests
before inferior is started.

12 years agoRename la_get_symbol_name_match_p into la_get_symbol_name_cmp
Joel Brobecker [Wed, 8 Feb 2012 19:54:37 +0000 (19:54 +0000)]
Rename la_get_symbol_name_match_p into la_get_symbol_name_cmp

The la_get_symbol_name_match_p language hook was poorly named, as
it suggested that the function should return nonzero if the names
match, whereas it is the exact opposite.  This patch therefore
renames the hook and associated typedef, as well some of the code
that uses that hook.

gdb/ChangeLog:

        * language.h (symbol_name_cmp_ftype): Renames
        symbol_name_match_p_ftype.
        (struct language_defn)[la_get_symbol_name_cmp]: Renames
        la_get_symbol_name_match_p.
        * ada-lang.c (ada_get_symbol_name_cmp): Renames
        ada_get_symbol_name_match_p.  Update comment.
        (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
        * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
        Renames symbol_name_match_p.  Update field type.
        (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
        * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
        opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
        "la_get_symbol_name_cmp" in comments.
        * language.c: Likewise.

12 years ago * gas/i386/x86-64-disp32.d: Fix lable-pattern.
Kai Tietz [Wed, 8 Feb 2012 18:46:11 +0000 (18:46 +0000)]
    * gas/i386/x86-64-disp32.d: Fix lable-pattern.

12 years agoImplement Intel Transactional Synchronization Extensions
H.J. Lu [Wed, 8 Feb 2012 18:20:41 +0000 (18:20 +0000)]
Implement Intel Transactional Synchronization Extensions

gas/

2012-02-08  H.J. Lu  <hongjiu.lu@intel.com>

* config/tc-i386.c (HLE_PREFIX): New.
(check_hle): Likewise.
(_i386_insn): Add have_hle.
(cpu_arch): Add .hle and .rtm.
(md_assemble): Call check_hle if i.have_hle isn't zero.
(parse_insn): Set i.have_hle to 1 for HLE prefix.
(output_jump): Support up to 2 byte opcode.

* doc/c-i386.texi: Document hle/.hle and rtm/.rtm.

gas/testsuite/

2012-02-08  H.J. Lu  <hongjiu.lu@intel.com>

* gas/i386/hle-intel.d: New.
* gas/i386/hle.d: Likewise.
* gas/i386/hle.s: Likewise.
* gas/i386/hlebad.l: Likewise.
* gas/i386/hlebad.s: Likewise.
* gas/i386/rtm-intel.d: Likewise.
* gas/i386/rtm.d: Likewise.
* gas/i386/rtm.s: Likewise.
* gas/i386/x86-64-hle-intel.d: Likewise.
* gas/i386/x86-64-hle.d: Likewise.
* gas/i386/x86-64-hle.s: Likewise.
* gas/i386/x86-64-hlebad.l: Likewise.
* gas/i386/x86-64-hlebad.s: Likewise.
* gas/i386/x86-64-rtm-intel.d: Likewise.
* gas/i386/x86-64-rtm.d: Likewise.
* gas/i386/x86-64-rtm.s: Likewise.

* gas/i386/i386.exp: Run hle, hle-intel, hlebad x86-64-hle, rtm,
rtm-intel, x86-64-hle-intel, x86-64-hlebad, x86-64-rtm and
x86-64-rtm-intel.

include/opcode/

2012-02-08  H.J. Lu  <hongjiu.lu@intel.com>

* i386.h (XACQUIRE_PREFIX_OPCODE): New.
(XRELEASE_PREFIX_OPCODE): Likewise.

opcodes/

2012-02-08  H.J. Lu  <hongjiu.lu@intel.com>

* i386-dis.c (HLE_Fixup1): New.
(HLE_Fixup2): Likewise.
(HLE_Fixup3): Likewise.
(Ebh1): Likewise.
(Evh1): Likewise.
(Ebh2): Likewise.
(Evh2): Likewise.
(Ebh3): Likewise.
(Evh3): Likewise.
(MOD_C6_REG_7): Likewise.
(MOD_C7_REG_7): Likewise.
(RM_C6_REG_7): Likewise.
(RM_C7_REG_7): Likewise.
(XACQUIRE_PREFIX): Likewise.
(XRELEASE_PREFIX): Likewise.
(dis386): Use Ebh1/Evh1 on add, adc, and, btc, btr, bts,
cmpxchg, dec, inc, neg, not, or, sbb, sub, xor and xadd. Use
Ebh2/Evh2 on xchg.  Use Ebh3/Evh3 on mov.
(reg_table): Use Ebh1/Evh1 on add, adc, and, dec, inc, neg,
not, or, sbb, sub and xor.  Use Ebh3/Evh3 on mov.  Use
MOD_C6_REG_7 and MOD_C7_REG_7.
(mod_table): Add MOD_C6_REG_7 and MOD_C7_REG_7.
(rm_table): Add RM_C6_REG_7 and RM_C7_REG_7.  Add xend and
xtest.
(prefix_name): Handle XACQUIRE_PREFIX and XRELEASE_PREFIX.
(CMPXCHG8B_Fixup): Handle HLE prefix on cmpxchg8b.

* i386-gen.c (cpu_flag_init): Add CPU_HLE_FLAGS and
CPU_RTM_FLAGS.
(cpu_flags): Add CpuHLE and CpuRTM.
(opcode_modifiers): Add HLEPrefixOk.

* i386-opc.h (CpuHLE): New.
(CpuRTM): Likewise.
(HLEPrefixOk): Likewise.
(i386_cpu_flags): Add cpuhle and cpurtm.
(i386_opcode_modifier): Add hleprefixok.

* i386-opc.tbl: Add HLEPrefixOk=3 to mov.  Add HLEPrefixOk to
add, adc, and, btc, btr, bts, cmpxchg, dec, inc, neg, not, or,
sbb, sub, xor and xadd.  Add HLEPrefixOk=2 to xchg with memory
operand.  Add xacquire, xrelease, xabort, xbegin, xend and
xtest.
* i386-init.h: Regenerated.
* i386-tbl.h: Likewise.

12 years ago * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
Rainer Orth [Wed, 8 Feb 2012 14:38:25 +0000 (14:38 +0000)]
* amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
%eflags offset.
* i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
(amd64_sol2_gregset32_reg_offs): Likewise.

12 years ago * elflink.c (_bfd_elf_gc_mark_rsec): Mark weakdef syms too.
Alan Modra [Wed, 8 Feb 2012 10:12:20 +0000 (10:12 +0000)]
* elflink.c (_bfd_elf_gc_mark_rsec): Mark weakdef syms too.
(_bfd_elf_fix_symbol_flags): When a weakdef is def_regular, clear
the correct h->u.weakdef.

12 years ago2012-02-08 Joel Brobecker <brobecker@adacore.com>
Tristan Gingold [Wed, 8 Feb 2012 09:17:41 +0000 (09:17 +0000)]
2012-02-08  Joel Brobecker  <brobecker@adacore.com>

* solib-darwin.c (darwin_bfd_open): Make sure that the filename
of the returned BFD is allocated by GDB.

12 years ago*** empty log message ***
gdbadmin [Wed, 8 Feb 2012 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

12 years agodaily update
Alan Modra [Tue, 7 Feb 2012 23:00:05 +0000 (23:00 +0000)]
daily update

12 years ago PR python/12027:
Tom Tromey [Tue, 7 Feb 2012 19:47:16 +0000 (19:47 +0000)]
PR python/12027:
* python/python-internal.h (frame_object_type): Declare.
* python/py-symbol.c (sympy_needs_frame): New function.
(sympy_value): New function.
(symbol_object_getset): Add "needs_frame".
(symbol_object_methods): Add "value".
* python/py-frame.c (frame_object_type): No longer static.
gdb/doc
* gdb.texinfo (Symbols In Python): Document Symbol.needs_frame and
Symbol.value.
gdb/testsuite
* gdb.python/py-symbol.exp: Test Symbol.needs_frame and
Symbol.value.
* gdb.python/py-symbol.c (qq): Set default value.

12 years ago PR python/13599:
Tom Tromey [Tue, 7 Feb 2012 19:42:27 +0000 (19:42 +0000)]
PR python/13599:
* python/py-symbol.c (sympy_line): New function.
(symbol_object_getset): Add "line".
gdb/doc
* gdb.texinfo (Symbols In Python): Document Symbol.line.
gdb/testsuite
* gdb.python/py-symbol.c (qq): New global.
* gdb.python/py-symbol.exp: Add test for frame-less
lookup_symbol.
* gdb.python/py-symtab.exp: Fix line number.

12 years ago * charset.c (find_charset_names): Check 'in' against NULL.
Tom Tromey [Tue, 7 Feb 2012 15:42:39 +0000 (15:42 +0000)]
* charset.c (find_charset_names): Check 'in' against NULL.

12 years ago * elf.c (elf_find_function): Don't use internal_elf_sym.
Alan Modra [Tue, 7 Feb 2012 07:04:04 +0000 (07:04 +0000)]
* elf.c (elf_find_function): Don't use internal_elf_sym.
(_bfd_elf_maybe_function_sym): Likewise.  Replace elf_symbol_type
parameter with asymbol.
* elf64-ppc.c (ppc64_elf_maybe_function_sym): Likewise.
* elf-bfd.h (_bfd_elf_maybe_function_sym): Update prototype.
(struct elf_backend_data <maybe_function_sym>): Likewise.

12 years ago * gdbtypes.h (struct main_type): Change type of name,tag_name,
Doug Evans [Tue, 7 Feb 2012 04:48:23 +0000 (04:48 +0000)]
* gdbtypes.h (struct main_type): Change type of name,tag_name,
and fields.name members from char * to const char *.  All uses updated.
(struct cplus_struct_type): Change type of fn_fieldlists.name member
from char * to const char *.  All uses updated.
(type_name_no_tag): Update.
(lookup_unsigned_typename, lookup_signed_typename): Update.
* gdbtypes.c (type_name_no_tag): Change result type
from char * to const char *.  All callers updated.
(lookup_unsigned_typename, lookup_signed_typename): Change type of
name parameter from char * to const char *.
* symtab.h (struct cplus_specific): Change type of demangled_name
member from char * to const char *.  All uses updated.
(struct general_symbol_info): Change type of name and
mangled_lang.demangled_name members from char * to const char *.
All uses updated.
(symbol_get_demangled_name, symbol_natural_name): Update.
(symbol_demangled_name, symbol_search_name): Update.
* symtab.c (symbol_get_demangled_name): Change result type
from char * to const char *.  All callers updated.
(symbol_natural_name, symbol_demangled_name): Ditto.
(symbol_search_name): Ditto.
(completion_list_add_name): Change type of symname,sym_text,
text,word parameters from char * to const char *.
(completion_list_objc_symbol): Change type of sym_text,
text,word parameters from char * to const char *.
* ada-lang.c (find_struct_field): Change type of name parameter
from char * to const char *.
(encoded_ordered_before): Similarly for N0,N1 parameters.
(old_renaming_is_invisible): Similarly for function_name parameter.
(ada_type_name): Change result type from char * to const char *.
All callers updated.
* ada-lang.h (ada_type_name): Update.
* buildsym.c (hashname): Change type of name parameter
from char * to const char *.
* buildsym.h (hashname): Update.
* dbxread.c (end_psymtab): Change type of include_list parameter
from char ** to const char **.
* dwarf2read.c (determine_prefix): Change result type
from char * to const char *.  All callers updated.
* f-lang.c (find_common_for_function): Change type of name, funcname
parameters from char * to const char *.
* f-lang.c (find_common_for_function): Update.
* f-valprint.c (list_all_visible_commons): Change type of funcname
parameters from char * to const char *.
* gdbarch.sh (static_transform_name): Change type of name parameter
and result from char * to const char *.
* gdbarch.c: Regenerate.
* gdbarch.h: Regenerate.
* i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
of name parameter from char * to const char *.
* jv-lang.c (java_primitive_type_from_name): Ditto.
(java_demangled_signature_length): Similarly for signature parameter.
(java_demangled_signature_copy): Ditto.
(java_demangle_type_signature): Ditto.
* jv-lang.h (java_primitive_type_from_name): Update.
(java_demangle_type_signature): Update.
* objc-lang.c (specialcmp): Change type of a,b parameters
from char * to const char *.
* p-lang.c (is_pascal_string_type): Change type of arrayname parameter
from char * to const char *.  All callers updated.
* p-lang.h (is_pascal_string_type): Update.
* solib-frv.c (find_canonical_descriptor_in_load_object): Change type
of name parameter from char * to const char *.
* sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
* utils.c (fprintf_symbol_filtered): Ditto.
* defs.h (fprintf_symbol_filtered): Update.
* sparc-tdep.h (sparc_sol2_static_transform_name): Update.
* stabsread.h (end_psymtab): Update.
* stack.c (find_frame_funname): Change type of funname parameter
from char ** to const char **.
* stack.h (find_frame_funname): Update.
* typeprint.c (type_print): Change type of varstring parameter
from char * to const char *.
* value.h (type_print): Update.
* xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
from char * to const char *.  All callers updated.
(xcoff_end_psymtab): Change type of include_list parameter
from char ** to const char **.  All callers updated.
(swap_sym): Similarly for name parameter.  All callers updated.
* coffread.c (patch_type): Add (char*) cast to xfree parameter.
Use xstrdup.
(process_coff_symbol): Use xstrdup.
* stabsread.c (stabs_method_name_from_physname): Renamed from
update_method_name_from_physname.  Change result type from void
to char *.  All callers updated.
(read_member_functions): In has_destructor case, store name in objfile
obstack instead of malloc space.  In !has_stub case, fix mem leak.

12 years ago*** empty log message ***
gdbadmin [Tue, 7 Feb 2012 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

12 years agodaily update
Alan Modra [Mon, 6 Feb 2012 23:00:06 +0000 (23:00 +0000)]
daily update

12 years ago2012-02-06 Luca Pizzamiglio <luca.pizzamiglio@gmail.com>
Tom Tromey [Mon, 6 Feb 2012 19:33:10 +0000 (19:33 +0000)]
2012-02-06  Luca Pizzamiglio  <luca.pizzamiglio@gmail.com>

* configure: Rebuild.
* configure.ac: Put -L../bfd and -L../libiberty at the front of
LDFLAGS.

12 years ago * po/sr.po: New Serbian translation.
Nick Clifton [Mon, 6 Feb 2012 13:42:32 +0000 (13:42 +0000)]
* po/sr.po: New Serbian translation.
* configure.in (ALL_LINGUAS): Add sr.
* configure: Regenerate.

12 years ago*** empty log message ***
gdbadmin [Mon, 6 Feb 2012 00:00:02 +0000 (00:00 +0000)]
*** empty log message ***

12 years agodaily update
Alan Modra [Sun, 5 Feb 2012 23:00:05 +0000 (23:00 +0000)]
daily update

12 years ago*** empty log message ***
gdbadmin [Sun, 5 Feb 2012 00:00:02 +0000 (00:00 +0000)]
*** empty log message ***

12 years agodaily update
Alan Modra [Sat, 4 Feb 2012 23:00:06 +0000 (23:00 +0000)]
daily update

12 years agoAdd support to GDB for the Renesas rl78 architecture.
Kevin Buettner [Sat, 4 Feb 2012 06:05:50 +0000 (06:05 +0000)]
Add support to GDB for the Renesas rl78 architecture.

12 years ago*** empty log message ***
gdbadmin [Sat, 4 Feb 2012 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

12 years agodaily update
Alan Modra [Fri, 3 Feb 2012 23:00:06 +0000 (23:00 +0000)]
daily update

12 years agoThe remote stub can implement monitor commands which are not
Philippe Waroquiers [Fri, 3 Feb 2012 22:52:32 +0000 (22:52 +0000)]
The remote stub can implement monitor commands which are not
known by gdb. Such monitor commands can take a long time
to execute. An example of this is the "leak_search" monitor
command implemented in the Valgrind gdbserver.

Currently, gdb will timeout on such a monitor command.
The remote stub however will continue to execute the
command and send the output later. Gdb and the remote
stub can then be desynchronised : gdb sends a packet,
and the reply read from the stub is a previous packet.

The change committed uses getpkt_sane to detect a timeout.
In this case, it continues the loop.
A QUIT; is inserted in the loop to allow the user
to stop handling the current command. possibly
still creating a desynchronisation between gdb and the stub
but that will be upon user request.

12 years ago2012-02-03 Doug Kwan <dougkwan@google.com>
Doug Kwan [Fri, 3 Feb 2012 20:01:01 +0000 (20:01 +0000)]
2012-02-03  Doug Kwan  <dougkwan@google.com>

* arm.cc (Arm_relocate_functions::abs8,
Arm_relocate_functions::abs16): Use
Bits::has_signed_unsigned_overflow32.
(Arm_relocate_functions::thm_abs8): Correct range of
overflow check.
* reloc.h (Bits class): Change minimum number of bits from 0 to 1
in assertions.

12 years ago PR gdb/13596:
Tom Tromey [Fri, 3 Feb 2012 15:19:37 +0000 (15:19 +0000)]
PR gdb/13596:
* solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
bfd_lookup_symbol_from_symtab.
* solib-pa64.c (pa64_solib_create_inferior_hook): Use
gdb_bfd_lookup_symbol_from_symtab.

12 years agoGDB/MI: crash printing "_task" (Ada) argument
Joel Brobecker [Fri, 3 Feb 2012 07:32:40 +0000 (07:32 +0000)]
GDB/MI: crash printing "_task" (Ada) argument

In GDB/MI mode, trying to print the arguments of the frame corresponding
to the body of a task ("-stack-list-arguments 1") causes the debugger to
crash.

This is because the compiler adds an implicit argument to that task body
called "_task". mi/mi-cmd-stack.c:list_args_or_locals, which is
responsible for printing the value of our arguments, finds that our
"_task" symbol is an argument, and thus tries to fing the non-argument
equivalent:

              if (SYMBOL_IS_ARGUMENT (sym))
                sym2 = lookup_symbol (SYMBOL_NATURAL_NAME (sym),
                                      block, VAR_DOMAIN,
                                      (int *) NULL);

Unfortunately, it tries using the natural name, which doesn't always
work for Ada parameters, in particular those who are internally-
generated. In our case, The "_task" parameter's natural name is
"<_task>", and that symbol does not exist.  So sym2 is NULL, thus
causing the crash a little later on when trying to dereference it.
We should be using the symbol linkage name in this case, the same
way iterate_over_block_arg_vars already does.

gdb/ChangeLog:

        * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
        use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
        symbol.  Add assertion that sym2 is never NULL.

gdb/testsuite/ChangeLog:

        * gdb.ada/mi_task_arg: New testcase.

12 years ago*** empty log message ***
gdbadmin [Fri, 3 Feb 2012 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

12 years agodaily update
Alan Modra [Thu, 2 Feb 2012 23:00:06 +0000 (23:00 +0000)]
daily update

12 years ago2012-02-02 Doug Kwan <dougkwan@google.com>
Doug Kwan [Thu, 2 Feb 2012 20:21:17 +0000 (20:21 +0000)]
2012-02-02  Doug Kwan  <dougkwan@google.com>

* arm.cc (Reloc_stub::stub_type_for_reloc): Use PIC stubs in all
position independent outputs, not just shared objects.

12 years ago * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
Doug Evans [Thu, 2 Feb 2012 20:19:17 +0000 (20:19 +0000)]
* blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
"name" parameter to const char ** from char **.  All callers updated.
(find_pc_partial_function): Ditto.
(cache_pc_function_name): Change type to const char * from char *.
* symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
(find_pc_partial_function): Update.
* alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
type of "name" parameter to const char * from char *.
All uses updated.
* arch-utils.c (generic_in_solib_return_trampoline): Change
type of "name" parameter to const char * from char *.
* arch-utils.h (generic_in_solib_return_trampoline): Update.
* frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
type of "name" parameter to const char * from char *.
* gdbarch.sh (in_solib_return_trampoline): Ditto.
* gdbarch.c: Regenerate.
* gdbarch.h: Regenerate.
* hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
* rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
* m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
type of "name" parameter to const char * from char *.
* skip.c (skip_function_pc): Ditto.
* sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
* sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
* sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
* sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
* sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
* sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
* sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
* nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
* nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.

12 years ago2012-02-02 Pedro Alves <palves@redhat.com>
Pedro Alves [Thu, 2 Feb 2012 18:10:07 +0000 (18:10 +0000)]
2012-02-02  Pedro Alves  <palves@redhat.com>

* gdb.reverse/until-precsave.exp: Also put "record save" under the
extended timeout.

12 years ago2012-02-02 Pedro Alves <palves@redhat.com>
Pedro Alves [Thu, 2 Feb 2012 18:09:07 +0000 (18:09 +0000)]
2012-02-02  Pedro Alves  <palves@redhat.com>

* gdb.gdb/complaints.exp: Skip if gdb,noinferiorio is set.
* gdb.gdb/selftest.exp (test_with_self): Handle gdb,noinferiorio.

12 years ago2012-02-02 Pedro Alves <palves@redhat.com>
Pedro Alves [Thu, 2 Feb 2012 18:07:58 +0000 (18:07 +0000)]
2012-02-02  Pedro Alves  <palves@redhat.com>

* gdb.base/term.exp: Rewrite.
* gdb.base/term.c: New.

12 years ago2012-02-02 Pedro Alves <palves@redhat.com>
Pedro Alves [Thu, 2 Feb 2012 18:06:40 +0000 (18:06 +0000)]
2012-02-02  Pedro Alves  <palves@redhat.com>

Try SIGKILL first, then PTRACE_KILL.
* linux-low.c (linux_kill_one_lwp): New.
(linux_kill_one_lwp): Rename to ...
(kill_one_lwp_callback): ... this.  Use the new
linux_kill_one_lwp.

12 years ago2012-02-02 Pedro Alves <palves@redhat.com>
Pedro Alves [Thu, 2 Feb 2012 18:05:35 +0000 (18:05 +0000)]
2012-02-02  Pedro Alves  <palves@redhat.com>

* gdb.base/default.exp (run "r" abbreviation, run): Add
extended-remote expected output.

12 years agogdbserver/
Pedro Alves [Thu, 2 Feb 2012 18:04:29 +0000 (18:04 +0000)]
gdbserver/
2012-02-02  Pedro Alves  <palves@redhat.com>

* tracepoint.c (cmd_qtminftpilen): Return 0 if there's no current
inferior.

gdb/
2012-02-02  Pedro Alves  <palves@redhat.com>

* remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
the current inferior has no execution.  Make sure the current
remote process matches gdb's current inferior.

12 years ago2012-02-02 Vidya Praveen (vidya.praveen@atmel.com)
Eric B. Weddington [Thu, 2 Feb 2012 18:02:10 +0000 (18:02 +0000)]
2012-02-02  Vidya Praveen (vidya.praveen@atmel.com)

PR bfd/13410
* bfd/elf32-avr.c (elf32_avr_relax_section): Correct the
condition that qualifies the candidates for relaxation.

12 years ago PR gdb/13405:
Tom Tromey [Thu, 2 Feb 2012 16:22:21 +0000 (16:22 +0000)]
PR gdb/13405:
* tui/tui-win.c (parse_scrolling_args): Don't write to possibly
read-only memory.

12 years ago2012-02-02 Tristan Gingold <gingold@adacore.com>
Tristan Gingold [Thu, 2 Feb 2012 15:36:44 +0000 (15:36 +0000)]
2012-02-02  Tristan Gingold  <gingold@adacore.com>

* bfdio.c (real_fopen): Remove unused vms_modes variable.

12 years ago PR gdb/9307:
Tom Tromey [Thu, 2 Feb 2012 14:58:33 +0000 (14:58 +0000)]
PR gdb/9307:
* symtab.c (lookup_language_this): Set block_found.
gdb/testsuite
* gdb.cp/dispcxx.exp: New file.
* gdb.cp/dispcxx.cc: New file.

12 years agobfd/
Tristan Gingold [Thu, 2 Feb 2012 11:55:43 +0000 (11:55 +0000)]
bfd/
2012-02-02  Tristan Gingold  <gingold@adacore.com>

* mach-o.c (bfd_mach_o_read_header): Silent uninitialized
variable warning.

gas/
2012-02-02  Tristan Gingold  <gingold@adacore.com>

* config/obj-macho.c (obj_mach_o_zerofill): Silent
uninitialized variable warning.

12 years ago2012-02-02 Tristan Gingold <gingold@adacore.com>
Tristan Gingold [Thu, 2 Feb 2012 11:35:31 +0000 (11:35 +0000)]
2012-02-02  Tristan Gingold  <gingold@adacore.com>

* archive.c (bfd_slurp_armap): Fix thinko in cast.

12 years ago PR gas/13224
Nick Clifton [Thu, 2 Feb 2012 09:26:04 +0000 (09:26 +0000)]
PR gas/13224
* config/obj-elf.c (obj_elf_parse_section_letters): Rename 'clone'
to 'is_clone' to avoid shadowing a gloabl.
(obj_elf_section): Likewise.

12 years ago * binutils-all/readelf.n: Add #pass to cope with targets that add
Nick Clifton [Thu, 2 Feb 2012 08:45:03 +0000 (08:45 +0000)]
* binutils-all/readelf.n: Add #pass to cope with targets that add
their own notes.

12 years ago*** empty log message ***
gdbadmin [Thu, 2 Feb 2012 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

12 years agodaily update
Alan Modra [Wed, 1 Feb 2012 23:00:06 +0000 (23:00 +0000)]
daily update

12 years ago PR gdb/13431:
Tom Tromey [Wed, 1 Feb 2012 20:21:22 +0000 (20:21 +0000)]
PR gdb/13431:
* jit.c (struct jit_inferior_data): Rewrite.
(struct jit_objfile_data): New.
(get_jit_objfile_data): New function.
(add_objfile_entry): Update.
(jit_read_descriptor): Return int.  Replace descriptor_addr
argument with inf_data.  Update.  Don't call error.
(jit_breakpoint_re_set_internal): Reorder logic.  Update.  Look up
descriptor here.
(jit_inferior_init): Don't look up descriptor.  Don't call error.
(jit_reset_inferior_data_and_breakpoints)
(jit_inferior_created_observer): Remove.
(jit_inferior_exit_hook): Update.
(jit_executable_changed_observer): Remove.
(jit_event_handler): Update.
(free_objfile_data): Reset inferior data if needed.
(_initialize_jit): Update.
gdb/testsuite
* gdb.base/jit-simple.exp: New file.
* gdb.base/jit-simple.c: New file.

12 years ago * jit.c (bfd_open_from_target_memory): Move higher in file.
Tom Tromey [Wed, 1 Feb 2012 20:16:24 +0000 (20:16 +0000)]
* jit.c (bfd_open_from_target_memory): Move higher in file.

12 years ago PR binutils/13493
Nick Clifton [Wed, 1 Feb 2012 16:49:26 +0000 (16:49 +0000)]
PR binutils/13493
* ar.c (ranlib_main): Process --plugin option.
* doc/binutils.texi: Document --plugin support for ranlib.