Iain Sandoe [Fri, 17 Feb 2012 11:23:44 +0000 (11:23 +0000)]
support 16 sect-diffs for mach-o
bfd:
* mach-o-i386.c (i386_howto_table): Add support for 16 bit
sect-diffs.
(bfd_mach_o_i386_swap_reloc_in): Handle 16bit sect-diffs.
(bfd_mach_o_i386_swap_reloc_out): Likewise.
Iain Sandoe [Fri, 17 Feb 2012 10:57:33 +0000 (10:57 +0000)]
add LOCAL SECDIFF relocation for m32 mach-o
bfd:
* reloc.c (BFD_RELOC_MACH_O_LOCAL_SECTDIFF):
* libbfd.h: Regenerated.
* bfd-in2.h: Likewise.
* mach-o-i386.c (i386_howto_table): Include local sectdiff.
(bfd_mach_o_i386_swap_reloc_in): Update for local sectdiff.
(bfd_mach_o_i386_swap_reloc_out): Likewise.
Thomas Schwinge [Fri, 17 Feb 2012 08:39:57 +0000 (08:39 +0000)]
* sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
TYPE_CALLING_CONVENTION annotation.
Andreas Krebbel [Fri, 17 Feb 2012 08:38:06 +0000 (08:38 +0000)]
2012-02-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
* elf32-s390.c (elf_s390_relocate_section): Support basr in the
GD->LE and LD->LE optimizations.
gdbadmin [Fri, 17 Feb 2012 00:00:34 +0000 (00:00 +0000)]
*** empty log message ***
Kevin Buettner [Thu, 16 Feb 2012 23:39:37 +0000 (23:39 +0000)]
* MAINTAINERS: Add rx to target ISA section.
* Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
(ALLDEPFILES): Add rx-tdep.c.
Kevin Buettner [Thu, 16 Feb 2012 23:17:27 +0000 (23:17 +0000)]
Update sim_fetch_register, sim_store_register for sh and mn10300.
Fix compile warnings for sh built on 64-bit hosts.
Tom Tromey [Thu, 16 Feb 2012 21:07:20 +0000 (21:07 +0000)]
* symfile.c (symbol_file_add_main_1): Use inferior's
symfile_flags.
* solib.c (solib_read_symbols): Use inferior's symfile_flags.
* linux-nat.c (linux_child_follow_fork): Set symfile_flags on
inferior.
* infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
inferior.
(follow_exec): Use inferior's symfile_flags.
* inferior.h (struct inferior) <symfile_flags>: New field.
Cary Coutant [Thu, 16 Feb 2012 19:37:34 +0000 (19:37 +0000)]
* testsuite/Makefile.am (initpri2): Add --ctors-in-init-array option.
* testsuite/Makefile.in: Regenerate.
Mike Frysinger [Thu, 16 Feb 2012 18:30:43 +0000 (18:30 +0000)]
gdb: sim: check return value of sim_create_inferior
The current gdbsim_create_inferior func doesn't check the return value
of sim_create_inferior which can be problematic when that func doesn't
return success. So, if it fails, call error() and be done.
Reported-by: Richard Stuckey <richard.stuckey@arc.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Tristan Gingold [Thu, 16 Feb 2012 14:57:02 +0000 (14:57 +0000)]
2012-02-16 Josh Matthews <josh@joshmatthews.net>
* machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
Tom Tromey [Thu, 16 Feb 2012 14:42:51 +0000 (14:42 +0000)]
* gdb.base/inferior-died.c: Don't include stdio.h.
Tom Tromey [Thu, 16 Feb 2012 14:35:00 +0000 (14:35 +0000)]
PR c++/13653:
* thread.c (struct current_thread_cleanup) <was_removable>: New
field.
(do_restore_current_thread_cleanup): Restore 'removable' field.
(restore_current_thread_cleanup_dtor): Likewise.
(make_cleanup_restore_current_thread): Initialize new field.
testsuite/gdb
* gdb.base/inferior-died.c: New file.
* gdb.base/inferior-died.exp: New file.
Yao Qi [Thu, 16 Feb 2012 10:38:15 +0000 (10:38 +0000)]
gdb/gdbserver/
* inferiors.c: Move code to ...
* dll.c: .... here. New.
* server.h: Declare clear_dlls.
* Makefile.in (SFILES): Add dll.c.
(OBS): Add dll.o
(dll.o): New rule.
Alan Modra [Thu, 16 Feb 2012 07:40:23 +0000 (07:40 +0000)]
PR binutils/13355
* elf32-rx.c (elf32_rx_relax_section): Correct width check.
gdbadmin [Thu, 16 Feb 2012 00:00:35 +0000 (00:00 +0000)]
*** empty log message ***
Alan Modra [Wed, 15 Feb 2012 23:00:07 +0000 (23:00 +0000)]
daily update
Kevin Buettner [Wed, 15 Feb 2012 22:17:02 +0000 (22:17 +0000)]
* MAINTAINERS: Add rl78 to target ISA section.
* Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
(ALLDEPFILES): Add rl78-tdep.c.
* NEWS: Mention rl78 as a new target.
Aleksandar Ristovski [Wed, 15 Feb 2012 19:27:59 +0000 (19:27 +0000)]
* frame.c (find_frame_sal): Initialize sal->pspace field from frame
data.
* stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
testuite:
* gdb.base/break-inline.exp: New file.
* gdb.base/break-inline.c: New file.
Tom Tromey [Wed, 15 Feb 2012 19:13:14 +0000 (19:13 +0000)]
PR gdb/12659:
* infcmd.c (registers_info): Print just the current register's
name.
gdb/testsuite
* gdb.base/pc-fp.exp: Add "info register" tests.
Tom Tromey [Wed, 15 Feb 2012 18:49:27 +0000 (18:49 +0000)]
* gdb.base/regs.exp: Remove.
Cary Coutant [Wed, 15 Feb 2012 18:32:30 +0000 (18:32 +0000)]
* dwarf.c (dwarf_vmatoa64): New function.
(read_and_display_attr_value): Print 8-byte forms as single hex
numbers.
(process_debug_info): Print type signatures as single hex numbers.
* elfcomm.c (byte_get_64): New function.
* elfcomm.h (byte_get_64): New function.
Pedro Alves [Wed, 15 Feb 2012 18:09:20 +0000 (18:09 +0000)]
2012-02-15 Pedro Alves <palves@redhat.com>
* gdb.trace/backtrace.exp: Issue UNSUPPORTED instead of PASS when
the target doesn't support tracepoints.
* gdb.trace/circ.exp: Ditto.
* gdb.trace/collection.exp: Ditto.
* gdb.trace/packetlen.exp: Ditto.
* gdb.trace/passc-dyn.exp: Ditto.
* gdb.trace/report.exp: Ditto.
* gdb.trace/tfind.exp: Ditto.
* gdb.trace/tspeed.exp: Ditto.
* gdb.trace/tsv.exp: Ditto.
* gdb.trace/unavailable.exp: Ditto.
* gdb.trace/while-dyn.exp: Ditto.
Tom Tromey [Wed, 15 Feb 2012 17:51:04 +0000 (17:51 +0000)]
* python/py-symbol.c (sympy_value): Use _().
Pedro Alves [Wed, 15 Feb 2012 17:20:07 +0000 (17:20 +0000)]
2012-02-15 Pedro Alves <palves@redhat.com>
* gdb.trace/circ.exp (trace_buffer_normal): Rewrite using
gdb_test_multiple, and call unsupported instead of fail, if the
remote side does not support the request.
Pedro Alves [Wed, 15 Feb 2012 12:51:17 +0000 (12:51 +0000)]
2012-02-15 Pedro Alves <palves@redhat.com>
* gdb.server/ext-attach.exp: Make sure gdb is disconnected.
* gdb.server/ext-run.exp: Make sure gdb is disconnected.
* gdb.server/file-transfer.exp: Make sure gdb is disconnected.
* gdb.server/server-mon.exp: Make sure gdb is disconnected.
* gdb.server/server-run.exp: Make sure gdb is disconnected.
* lib/gdbserver-support.exp (gdbserver_start_extended): Only
prepend "extended-" to $gdbserver_protocol if $gdbserver_protocol
doesn't start with "extended-" already.
Pedro Alves [Wed, 15 Feb 2012 12:48:55 +0000 (12:48 +0000)]
gdb/
2012-02-15 Pedro Alves <palves@redhat.com>
* remote.c (remote_detach_1, extended_remote_attach_1): Tweak
output to be like native targets'.
(remote_pid_to_str): Special case the null ptid.
gdb/testsuite/
2012-02-15 Pedro Alves <palves@redhat.com>
Support extended-remote. Avoid cascading timeouts.
* gdb.base/attach.exp (do_attach_tests): Add expected output for
the extended-remote target. If attaching with no file fails, load
the file manually.
* gdb.server/ext-attach.exp: Adjust expected attach/detach output.
Cary Coutant [Wed, 15 Feb 2012 00:56:16 +0000 (00:56 +0000)]
* options.cc (General_options::finalize): Disallow -pie and -static.
gdbadmin [Wed, 15 Feb 2012 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***
Stan Shebs [Tue, 14 Feb 2012 23:28:15 +0000 (23:28 +0000)]
2012-02-14 Stan Shebs <stan@codesourcery.com>
* NEWS: Mention enable count command.
* breakpoint.h (struct breakpoint): New field enable_count.
* breakpoint.c (enable_breakpoint_disp): Add count argument.
(enable_breakpoint): Add arg to call.
(struct disp_data): New struct.
(do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
(do_map_enable_once_breakpoint): Create a struct and pass it.
(do_map_enable_delete_breakpoint): Ditto.
(do_map_enable_count_breakpoint): New function.
(enable_count_command): New function.
(bpstat_stop_status): Decrement enable_count.
(print_one_breakpoint_location): Report enable count.
(_initialize_breakpoint): Add enable count command.
* gdb.texinfo (Disabling Breakpoints): Document enable count.
* gdb.base/ena-dis-br.exp: Add enable count test.
Alan Modra [Tue, 14 Feb 2012 23:00:05 +0000 (23:00 +0000)]
daily update
Richard Henderson [Tue, 14 Feb 2012 20:43:26 +0000 (20:43 +0000)]
PR ld/13621
* ld-elf/zerosize1.d, ld-elf/zerosize1.s: New test.
Kevin Buettner [Tue, 14 Feb 2012 20:15:44 +0000 (20:15 +0000)]
rl78-tdep.c: Rearrange order in which registers are displayed.
Kevin Buettner [Tue, 14 Feb 2012 20:07:26 +0000 (20:07 +0000)]
* rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
the name parameter being passed to find_pc_partial_function().
Jan Kratochvil [Tue, 14 Feb 2012 14:42:12 +0000 (14:42 +0000)]
gdb/
* MAINTAINERS: Step down from being ia64 target maintainer.
Alan Modra [Tue, 14 Feb 2012 02:40:39 +0000 (02:40 +0000)]
* binutils-all/dlltool.exp: Add setup_xfail.
Alan Modra [Tue, 14 Feb 2012 01:25:47 +0000 (01:25 +0000)]
Regenerate
Alan Modra [Tue, 14 Feb 2012 01:24:35 +0000 (01:24 +0000)]
Regenerate.
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.
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.
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-*-*.
gdbadmin [Tue, 14 Feb 2012 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***
Alan Modra [Mon, 13 Feb 2012 23:00:05 +0000 (23:00 +0000)]
daily update
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.
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.
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.
Alan Modra [Mon, 13 Feb 2012 04:10:56 +0000 (04:10 +0000)]
revert premature delta
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.
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.
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.
gdbadmin [Mon, 13 Feb 2012 00:00:34 +0000 (00:00 +0000)]
*** empty log message ***
Alan Modra [Sun, 12 Feb 2012 23:00:07 +0000 (23:00 +0000)]
daily update
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.
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.
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.
gdbadmin [Sun, 12 Feb 2012 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***
Alan Modra [Sat, 11 Feb 2012 23:00:06 +0000 (23:00 +0000)]
daily update
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.
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.
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.
Kai Tietz [Sat, 11 Feb 2012 15:12:56 +0000 (15:12 +0000)]
* gas/i386/disp32.d: Adjust lable-pattern.
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.
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.
gdbadmin [Sat, 11 Feb 2012 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***
Alan Modra [Fri, 10 Feb 2012 23:00:06 +0000 (23:00 +0000)]
daily update
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.
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.
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.
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.
Jan Kratochvil [Fri, 10 Feb 2012 13:27:04 +0000 (13:27 +0000)]
gdb/
* linespec.c (decode_line_internal): Fix comment correctness.
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.
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.
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.
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.
Yao Qi [Fri, 10 Feb 2012 01:24:58 +0000 (01:24 +0000)]
gdb/doc/
* gdb.texinfo (Symbols In Python): Add missing `@end defvar'.
gdbadmin [Fri, 10 Feb 2012 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***
Alan Modra [Thu, 9 Feb 2012 23:00:06 +0000 (23:00 +0000)]
daily update
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.
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.
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.
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.
Jan Kratochvil [Thu, 9 Feb 2012 08:20:03 +0000 (08:20 +0000)]
gdb/
* breakpoint.c (bp_location_compare): Fix comment. Reindent the code.
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.
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.
gdbadmin [Thu, 9 Feb 2012 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***
Alan Modra [Wed, 8 Feb 2012 23:00:05 +0000 (23:00 +0000)]
daily update
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.
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.
Kai Tietz [Wed, 8 Feb 2012 18:46:11 +0000 (18:46 +0000)]
* gas/i386/x86-64-disp32.d: Fix lable-pattern.
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.
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.
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.
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.
gdbadmin [Wed, 8 Feb 2012 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***
Alan Modra [Tue, 7 Feb 2012 23:00:05 +0000 (23:00 +0000)]
daily update
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.
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.
Tom Tromey [Tue, 7 Feb 2012 15:42:39 +0000 (15:42 +0000)]
* charset.c (find_charset_names): Check 'in' against NULL.
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.
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.