platform/upstream/binutils.git
12 years agodaily update
Alan Modra [Sat, 2 Jun 2012 00:00:02 +0000 (00:00 +0000)]
daily update

12 years agogdb/
Jan Kratochvil [Fri, 1 Jun 2012 18:20:18 +0000 (18:20 +0000)]
gdb/
* configure.ac (development): Define new variable.
Call AC_CHECK_LIB for mcheck if $development.
(ERROR_ON_WARNING): Enable it by default only if $development.
* config.in: Regenerate.
* configure: Regenerate.

12 years agogdb/gdbserver/
Jan Kratochvil [Fri, 1 Jun 2012 16:50:11 +0000 (16:50 +0000)]
gdb/gdbserver/
Fix gcc -flto compilation warning.
* server.c (main): Make variable multi_mode and attach volatile.

12 years agobfd/
Jan Kratochvil [Fri, 1 Jun 2012 16:37:59 +0000 (16:37 +0000)]
bfd/
* bfd-in.h (bfd_elf_bfd_from_remote_memory): Make LEN argument
of target_read_memory as size_t.
* bfd-in2.h: Regenerate.
* elf-bfd.h (elf_backend_bfd_from_remote_memory): Make LEN
argument of target_read_memory as size_t.
(_bfd_elf32_bfd_from_remote_memory): Likewise.
(_bfd_elf64_bfd_from_remote_memory): Likewise.
* elf.c (bfd_elf_bfd_from_remote_memory): Likewise.
* elfcode.h (NAME(_bfd_elf,bfd_from_remote_memory)): Likewise.

gdb/
* target.c (target_read_memory): Make LEN argument as size_t.
* target.h (target_read_memory): Likewise.

12 years agogdb/
Jan Kratochvil [Fri, 1 Jun 2012 14:43:30 +0000 (14:43 +0000)]
gdb/
* tilegx-linux-tdep.c (tilegx_l): Use ULL for 64-bit values.

12 years ago PR binutils/13897
Alan Modra [Fri, 1 Jun 2012 12:26:55 +0000 (12:26 +0000)]
PR binutils/13897
* elf64-ppc.c (opd_entry_value): Rewrite cache code.

12 years agoRevert the last change
H.J. Lu [Fri, 1 Jun 2012 02:28:32 +0000 (02:28 +0000)]
Revert the last change

12 years ago * addr2line.c (translate_addresses): Truncate input addresses to
Alan Modra [Fri, 1 Jun 2012 01:04:29 +0000 (01:04 +0000)]
* addr2line.c (translate_addresses): Truncate input addresses to
arch_size bits.  Avoid undefined shift.  Print '?' for zero line.

12 years ago*** empty log message ***
gdbadmin [Fri, 1 Jun 2012 00:00:04 +0000 (00:00 +0000)]
*** empty log message ***

12 years agodaily update
Alan Modra [Fri, 1 Jun 2012 00:00:03 +0000 (00:00 +0000)]
daily update

12 years agogas/
Sean Keys [Thu, 31 May 2012 22:10:53 +0000 (22:10 +0000)]
gas/
    * tc-xgate.c (md_begin): Refactored code.

12 years ago* ppc-linux-nat.c (have_ptrace_booke_interface): Disable ptrace
Edjunior Barbosa Machado [Thu, 31 May 2012 22:07:31 +0000 (22:07 +0000)]
* ppc-linux-nat.c (have_ptrace_booke_interface): Disable ptrace
BookE interface for PowerPC server processors if not available
in the Linux Kernel.

12 years ago * linespec.c (decode_objc): Add cleanup to free
Keith Seitz [Thu, 31 May 2012 18:44:50 +0000 (18:44 +0000)]
* linespec.c (decode_objc): Add cleanup to free
INFO.FILE_SYMTABS.
(find_linespec_symbols): Add cleanup to free CLASSES.
* symfile.c (find_separate_debug_file_by_debuglink): Add
cleanup to free DEBUGLINK.
* ui-out.c (clear_header_list): No need to check if
HEADER_NEXT.COLHDR is NULL.
Free HEADER_NEXT.COL_NAME.

12 years agoMove linker test entry to ld/testsuite/ChangeLog
H.J. Lu [Thu, 31 May 2012 18:21:37 +0000 (18:21 +0000)]
Move linker test entry to ld/testsuite/ChangeLog

12 years agoAdd missing "foo" after ".global"
H.J. Lu [Thu, 31 May 2012 17:16:54 +0000 (17:16 +0000)]
Add missing "foo" after ".global"

2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>

* ld-ifunc/ifunc-13a-x86-64.s: Add missing "foo" after ".global".
* ld-ifunc/ifunc-15-x86-64.s: Likewise.

12 years agoFix ChangeLog entry
H.J. Lu [Thu, 31 May 2012 17:03:18 +0000 (17:03 +0000)]
Fix ChangeLog entry

12 years ago * gdb/ada-lang.c (standard_lookup): Prevent uninitialized variable
Matthew Gretton-Dann [Thu, 31 May 2012 09:34:40 +0000 (09:34 +0000)]
* gdb/ada-lang.c (standard_lookup): Prevent uninitialized variable
warning.

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

12 years ago * linux-low.c (get_r_debug): Disable code using DT_MIPS_RLD_MAP
Thiago Jung Bauermann [Wed, 30 May 2012 19:51:38 +0000 (19:51 +0000)]
* linux-low.c (get_r_debug): Disable code using DT_MIPS_RLD_MAP
if the platform doesn't know about it.

12 years ago2012-05-30 Jeff Kenton <jkenton@tilera.com>
Pedro Alves [Wed, 30 May 2012 19:43:15 +0000 (19:43 +0000)]
2012-05-30  Jeff Kenton  <jkenton@tilera.com>

* Makefile.in (SFILES): Add linux-tile-low.c.
(linux-tile-low.o, reg-tilegx.o, reg-tilegx.c): New rules.
* configure.srv: Handle tilegx-*-linux*.
* linux-tile-low.c: New file.

12 years ago2012-05-30 Jeff Kenton <jkenton@tilera.com>
Pedro Alves [Wed, 30 May 2012 19:41:34 +0000 (19:41 +0000)]
2012-05-30  Jeff Kenton  <jkenton@tilera.com>

* configure.host (gdb_host_cpu): Handle tilegx*.
(gdb_host): Handle tilegx-*-linux*.
* tilegx-linux-nat.c: New file.
* config/tilegx/linux.mh: New file.

12 years ago2012-05-30 Jeff Kenton <jkenton@tilera.com>
Pedro Alves [Wed, 30 May 2012 19:31:44 +0000 (19:31 +0000)]
2012-05-30  Jeff Kenton  <jkenton@tilera.com>

* Makefile.in (ALL_TARGET_OBJS): Add tilegx-tdep.o and
tilegx-linux-tdep.o.
(ALLDEPFILES): Add tilegx-linux-nat.c, tilegx-tdep.c and
tilegx-linux-tdep.c.
* configure.tgt: Handle tilegx-*-linux*.
* tilegx-tdep.h: New file.
* tilegx-tdep.c: New file.
* tilegx-linux-tdep.c: New file.
* regformats/reg-tilegx.dat: New file.

12 years ago * readelf.c (process_section_headers): Correct bug in previous
Nick Clifton [Wed, 30 May 2012 14:33:12 +0000 (14:33 +0000)]
* readelf.c (process_section_headers): Correct bug in previous
delta - display full section type in wide mode.

* ld-tic6x/shlib-1b.rd: Revert previous delta.
* ld-tic6x/shlib-1rb.rd: Likewise.
* ld-tic6x/shlib-1.rd: Likewise.
* ld-tic6x/shlib-1r.rd: Likewise.
* ld-tic6x/shlib-app-1b.rd: Likewise.
* ld-tic6x/shlib-app-1rb.rd: Likewise.
* ld-tic6x/shlib-app-1.rd: Likewise.
* ld-tic6x/shlib-app-1r.rd: Likewise.
* ld-tic6x/shlib-noindex.rd: Likewise.
* ld-tic6x/static-app-1b.rd: Likewise.
* ld-tic6x/static-app-1rb.rd: Likewise.
* ld-tic6x/static-app-1.rd: Likewise.
* ld-tic6x/static-app-1r.rd: Likewise.

12 years ago* ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): fix
Edjunior Barbosa Machado [Wed, 30 May 2012 13:37:17 +0000 (13:37 +0000)]
* ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): fix
accounting of hw watchpoints on ppc.

12 years ago * ldlang.h (lang_output_section_statement_type): Rename
Alan Modra [Wed, 30 May 2012 04:19:11 +0000 (04:19 +0000)]
* ldlang.h (lang_output_section_statement_type): Rename
"section_relative_symbol" field to "update_dot".
* ldlang.c: Update all uses.
(strip_excluded_output_sections): Don't test update_dot_tree here..
(lang_leave_overlay): ..set update_dot here.

12 years ago * source.c (openp): Expand tilde in path entries.
Thiago Jung Bauermann [Wed, 30 May 2012 03:42:21 +0000 (03:42 +0000)]
* source.c (openp): Expand tilde in path entries.

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

12 years agodaily update
Alan Modra [Wed, 30 May 2012 00:00:03 +0000 (00:00 +0000)]
daily update

12 years ago * buildsym.c (block_compar): Fix comment.
Doug Evans [Tue, 29 May 2012 20:23:17 +0000 (20:23 +0000)]
* buildsym.c (block_compar): Fix comment.
(end_symtab): Fix and clarify some comments.

12 years ago * stabsread.h (cleanup_undefined_stabs_types): Renamed from
Doug Evans [Tue, 29 May 2012 18:54:50 +0000 (18:54 +0000)]
* stabsread.h (cleanup_undefined_stabs_types): Renamed from
cleanup_undefined_types.
* stabsread.c (cleanup_undefined_stabs_types): Ditto.
All callers updated.

12 years agogas/
Roland McGrath [Tue, 29 May 2012 16:32:11 +0000 (16:32 +0000)]
gas/
* read.c [HANDLE_BUNDLE] (bundle_lock_depth): New variable.
(read_a_source_file) [HANDLE_BUNDLE]: Reset it.
[HANDLE_BUNDLE] (s_bundle_lock, s_bundle_unlock): Allow nested
pairs.

gas/testsuite/
* gas/i386/bundle-bad.s: Remove nested .bundle_lock case.
* gas/i386/bundle-bad.l: Remove expected error line.
* gas/i386/bundle-lock.s: Add nested .bundle_lock case.
* gas/i386/bundle-lock.d: Update expectations.

12 years agoResync config/ from GCC.
Joseph Myers [Tue, 29 May 2012 15:58:15 +0000 (15:58 +0000)]
Resync config/ from GCC.

12 years ago * ld-tic6x/shlib-1b.rd: Update expected readelf output.
Nick Clifton [Tue, 29 May 2012 15:48:18 +0000 (15:48 +0000)]
* ld-tic6x/shlib-1b.rd: Update expected readelf output.
* ld-tic6x/shlib-1rb.rd: Likewise.
* ld-tic6x/shlib-1.rd: Likewise.
* ld-tic6x/shlib-1r.rd: Likewise.
* ld-tic6x/shlib-app-1b.rd: Likewise.
* ld-tic6x/shlib-app-1rb.rd: Likewise.
* ld-tic6x/shlib-app-1.rd: Likewise.
* ld-tic6x/shlib-app-1r.rd: Likewise.
* ld-tic6x/shlib-noindex.rd: Likewise.
* ld-tic6x/static-app-1b.rd: Likewise.
* ld-tic6x/static-app-1rb.rd: Likewise.
* ld-tic6x/static-app-1.rd: Likewise.
* ld-tic6x/static-app-1r.rd: Likewise.

12 years agobfd/
Tom Tromey [Tue, 29 May 2012 14:23:40 +0000 (14:23 +0000)]
bfd/
* opncls.c (bfd_fopen): Always close fd on failure.
(bfd_fdopenr): Likewise.
gdb/
* symfile.c (symfile_bfd_open): Don't close desc if bfd_fopen
fails.
* solib.c (solib_bfd_fopen): Don't close fd if bfd_fopen fails.
* exec.c (exec_file_attach): Don't close scratch_chan if bfd_fopen
fails.
* dwarf2read.c (try_open_dwo_file): Don't close fd if bfd_fopen
fails.

12 years ago2012-05-29 Tristan Gingold <gingold@adacore.com>
Tristan Gingold [Tue, 29 May 2012 12:59:53 +0000 (12:59 +0000)]
2012-05-29  Tristan Gingold  <gingold@adacore.com>

* solib-darwin.c (dyld_all_image_addr, dyld_all_image): Move into...
(struct darwin_info): ... New struct.
(solib_darwin_pspace_data): New variable.
(darwin_pspace_data_cleanup): New function.
(get_darwin_info): Likewise.
(darwin_dyld_version_ok, darwin_load_image_infos)
(darwin_solib_get_all_image_info_addr_at_init)
(darwin_solib_read_all_image_info_addr): Add info argument.
Adjust code.
(darwin_current_sos): Use per pspace structure.
(darwin_solib_create_inferior_hook): Likewise.
(darwin_clear_solib): Likewise.
(_initialize_darwin_solib): Initialize solib_darwin_pspace_data.

12 years ago*** empty log message ***
gdbadmin [Tue, 29 May 2012 00:00:04 +0000 (00:00 +0000)]
*** empty log message ***

12 years agodaily update
Alan Modra [Tue, 29 May 2012 00:00:03 +0000 (00:00 +0000)]
daily update

12 years ago2012-05-28 Pedro Alves <palves@redhat.com>
Pedro Alves [Mon, 28 May 2012 20:43:26 +0000 (20:43 +0000)]
2012-05-28  Pedro Alves  <palves@redhat.com>

* infrun.c (wait_for_inferior): Move ecss and ecs locals to the
block that uses them.  Clear ecss before handling each event.

12 years agogdb/
Jan Kratochvil [Mon, 28 May 2012 20:37:29 +0000 (20:37 +0000)]
gdb/
* solib-svr4.c (svr4_current_sos): New comment on
svr4_current_sos_via_xfer_libraries fall back.

gdb/gdbserver/
* linux-low.c (linux_qxfer_libraries_svr4): Return -1 if R_DEBUG is -1.

gdb/testsuite/
* gdb.server/solib-list-lib.c: New file.
* gdb.server/solib-list-main.c: New file.
* gdb.server/solib-list.exp: New file.

12 years ago * read.c (read_symbol_name): New function. Reads a symbol names.
Nick Clifton [Mon, 28 May 2012 14:20:19 +0000 (14:20 +0000)]
* read.c (read_symbol_name): New function.  Reads a symbol names.
Allows escape codes in names.
(s_comm_internal): Use read_symbol_name.
(s_globl, s_lsym, s_set, s_weakref): Likewise.
* doc/as.texinfo: Document support for multibyte characters in
symbol names.

* gas/elf/syms.s: New test - checks the generation of multibyte
symbol names.
* gas/elf/syms.d: New file - expected readelf output.
* gas/elf/elf.exp: Add syms.

* readelf.c (print_symbol): Display multibyte characters in symbol
names.
(process_section_headers): Use print_symbol.

* ld-ifunc/ifunc-13a-i386.s: Fix use of .global directive.
* ld-ifunc/ifunc-15a-i385.s: Likewise.

12 years ago PR ld/14170
Alan Modra [Mon, 28 May 2012 04:08:53 +0000 (04:08 +0000)]
PR ld/14170
* ld-elf/pr14170a.s: Put foo, bar address in .data.
* ld-elf/elf.exp: Don't run pr14170 test on hppa64-hpux.  Ignore
tic6x warnings.

12 years ago*** empty log message ***
gdbadmin [Mon, 28 May 2012 00:00:32 +0000 (00:00 +0000)]
*** empty log message ***

12 years agodaily update
Alan Modra [Mon, 28 May 2012 00:00:03 +0000 (00:00 +0000)]
daily update

12 years agoAdd a test for PR ld/14170
H.J. Lu [Sun, 27 May 2012 14:45:41 +0000 (14:45 +0000)]
Add a test for PR ld/14170

PR ld/14170
* ld-elf/elf.exp: Add a test for PR ld/14170.

* ld-elf/pr14170a.s: New file.
* ld-elf/pr14170b.s: Likewise.
* ld-elf/pr14170b.s: Likewise.

12 years ago PR ld/14170
Alan Modra [Sun, 27 May 2012 13:55:45 +0000 (13:55 +0000)]
PR ld/14170
* elflink.c (_bfd_elf_merge_symbol): When a symbol defined in
a dynamic library finds a new instance with non-default
visibility in a regular object, correctly handle symbols
already on the undefs list and undo dynamic symbol state when
the new symbol is hidden or internal.

12 years ago*** empty log message ***
gdbadmin [Sun, 27 May 2012 00:00:32 +0000 (00:00 +0000)]
*** empty log message ***

12 years agodaily update
Alan Modra [Sun, 27 May 2012 00:00:03 +0000 (00:00 +0000)]
daily update

12 years agold/
Alan Modra [Sat, 26 May 2012 11:13:20 +0000 (11:13 +0000)]
ld/
* ldlex.h (enum option_values): Move from..
* lexsup.c: ..here.
* emultempl/ppc32elf.em: Include ldlex.h.
(PARSE_AND_LIST_ARGS_CASES): Disable optimisations when
--traditional-format.
* emultempl/ppc64elf.em: Likewise.
ld/testsuite/
* ld-srec/srec.exp: Remove powerpc64 flag setting.

12 years agodaily update
Alan Modra [Sat, 26 May 2012 00:00:04 +0000 (00:00 +0000)]
daily update

12 years ago*** empty log message ***
gdbadmin [Sat, 26 May 2012 00:00:02 +0000 (00:00 +0000)]
*** empty log message ***

12 years ago2012-05-25 Sriraman Tallam <tmsriram@google.com>
Sriraman Tallam [Fri, 25 May 2012 22:53:52 +0000 (22:53 +0000)]
2012-05-25  Sriraman Tallam  <tmsriram@google.com>

* symtab.cc (Symbol_table::define_special_symbol):
Initialize *poldsym to prevent uninitialized variable errors.

12 years ago * gdb.trace/unavailable.exp (gdb_collect_globals_test): Update
Maciej W. Rozycki [Fri, 25 May 2012 21:54:16 +0000 (21:54 +0000)]
* gdb.trace/unavailable.exp (gdb_collect_globals_test): Update
for 'set print symbol' change.

12 years agoDon't use dynamic_sec_flags on PLT .eh_frame section
H.J. Lu [Fri, 25 May 2012 16:20:15 +0000 (16:20 +0000)]
Don't use dynamic_sec_flags on PLT .eh_frame section

* elf32-i386.c (elf_i386_create_dynamic_sections): Don't use
dynamic_sec_flags to create PLT .eh_frame section.
* elf64-x86-64.c (elf_x86_64_create_dynamic_sections): Likewise.

12 years ago PR ld/13909
Alan Modra [Fri, 25 May 2012 01:13:59 +0000 (01:13 +0000)]
PR ld/13909
* emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Handle
multiple .eh_frame sections attached to bfd.

12 years ago PR ld/13909
Alan Modra [Fri, 25 May 2012 01:12:20 +0000 (01:12 +0000)]
PR ld/13909
* elf-eh-frame.c (_bfd_elf_eh_frame_present): New function.
(_bfd_elf_maybe_strip_eh_frame_hdr): Use it here.
* elf-bfd.h (_bfd_elf_eh_frame_present): Declare.
* elflink.c (bfd_elf_size_dynamic_sections): Let the backend
size dynamic sections before stripping eh_frame_hdr.
(bfd_elf_gc_sections): Handle multiple .eh_frame sections.
* elf32-ppc.c (ppc_elf_size_dynamic_sections): Drop glink_eh_frame
if no other .eh_frame sections exist.
* elf64-ppc.c (ppc64_elf_size_stubs): Likewise.
* elf32-i386.c (elf_i386_create_dynamic_sections): Don't size
or alloc plt_eh_frame here..
(elf_i386_size_dynamic_sections): ..do it here instead.  Don't
specially keep sgotplt, iplt, tgotplt, sdynbss for symbols.
(elf_i386_finish_dynamic_sections): Check plt_eh_frame->contents
before writing plt offset.
* elf64-x86-64.c (elf_x86_64_create_dynamic_sections): Don't size
or alloc plt_eh_frame here..
(elf_x86_64_size_dynamic_sections): ..do it here instead.
(elf_x86_64_finish_dynamic_sections): Check plt_eh_frame->contents
before writing plt offset.

12 years agodaily update
Alan Modra [Fri, 25 May 2012 00:00:04 +0000 (00:00 +0000)]
daily update

12 years ago*** empty log message ***
gdbadmin [Fri, 25 May 2012 00:00:02 +0000 (00:00 +0000)]
*** empty log message ***

12 years agogdb/
Jan Kratochvil [Thu, 24 May 2012 22:14:36 +0000 (22:14 +0000)]
gdb/
* psymtab.c (lookup_symbol_aux_psymtabs): New variable stab_best.  Use
it as a fallback for TYPE_IS_OPAQUE.
* symfile.h (struct quick_symbol_functions): Mention TYPE_OPAQUE
symbols for lookup_symbol.

gdb/testsuite/
* gdb.dwarf2/dw2-icc-opaque.S: Add debug_info_seg3 and
.debug_abbrev_seg3.

12 years agogdb/
Jan Kratochvil [Thu, 24 May 2012 22:09:21 +0000 (22:09 +0000)]
gdb/
PR symtab/13277: Resolving opaque structures in ICC generated binaries.
* dwarf2read.c (struct dwarf2_cu) <producer_is_icc>: New field.
(producer_is_gxx_lt_4_6): Move the checking and caching to...
(check_producer): ... this new function, which also checks for ICC
and caches the result.
(producer_is_icc): New function.
(read_structure_type): Don't set TYPE_STUB_SUPPORTED if the
producer was ICC.

gdb/testsuite/
PR symtab/13277: Resolving opaque structures in ICC generated binaries.
* gdb.dwarf2/dw2-icc-opaque.S: New file.
* gdb.dwarf2/dw2-icc-opaque.exp: New file.

12 years ago2012-05-24 Pedro Alves <palves@redhat.com>
Pedro Alves [Thu, 24 May 2012 17:38:54 +0000 (17:38 +0000)]
2012-05-24  Pedro Alves  <palves@redhat.com>

* sim-signal.h (sim_signal_to_target): Rename to ...
(sim_signal_to_gdb_signal): ... this.
* sim-signal.c (sim_signal_to_target): Rename to ...
(sim_signal_to_gdb_signal): ... this.
* sim-reason.c (sim_stop_reason): Adjust to rename.

12 years ago2012-05-24 Pedro Alves <palves@redhat.com>
Pedro Alves [Thu, 24 May 2012 17:03:28 +0000 (17:03 +0000)]
2012-05-24  Pedro Alves  <palves@redhat.com>

PR gdb/7205

* arch-utils.c (default_gdb_signal_to_host): Rename to ...
(default_gdb_signal_to_target): ... this.  Add comment.
(default_gdb_signal_from_host): Rename to ...
(default_gdb_signal_from_target): ... this.  Add comment.
* arch-utils.h (default_gdb_signal_to_host): Rename to ...
(default_gdb_signal_to_target): ... this.
(default_gdb_signal_from_host): Rename to ...
(default_gdb_signal_from_target): ... this.
* corelow.c (core_open): Adjust to naming change.  Replace comment.
* gdbarch.sh (gdb_signal_from_host): Rename to ...
(gdb_signal_from_target): ... this.  Adjust to
default_gdb_signal_from_host naming change.  Extend comment.
(gdb_signal_to_host): Rename to ...
(gdb_signal_to_target): ... this.  Adjust to
default_gdb_signal_to_host naming change.
* gdbarch.h, gdbarch.c: Renegerate.

12 years agogdb/
Pedro Alves [Thu, 24 May 2012 16:51:47 +0000 (16:51 +0000)]
gdb/
2012-05-24  Pedro Alves  <palves@redhat.com>

PR gdb/7205

        Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.

gdb/gdbserver/
2012-05-24  Pedro Alves  <palves@redhat.com>

PR gdb/7205

        Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.

include/gdb/
2012-05-24  Pedro Alves  <palves@redhat.com>

PR gdb/7205

        * gdb/signals.def: Replace TARGET_SIGNAL_ with GDB_SIGNAL_
throughout.

sim/arm/
2012-05-24  Pedro Alves  <palves@redhat.com>

PR gdb/7205

        Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.

sim/avr/
2012-05-24  Pedro Alves  <palves@redhat.com>

PR gdb/7205

        Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.

sim/common/
2012-05-24  Pedro Alves  <palves@redhat.com>

PR gdb/7205

        Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.

sim/cr16/
2012-05-24  Pedro Alves  <palves@redhat.com>

PR gdb/7205

        Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.

sim/d10v/
2012-05-24  Pedro Alves  <palves@redhat.com>

PR gdb/7205

        Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.

sim/erc32/
2012-05-24  Pedro Alves  <palves@redhat.com>

PR gdb/7205

        Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.

sim/m32c/
2012-05-24  Pedro Alves  <palves@redhat.com>

PR gdb/7205

        Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.

sim/ppc/
2012-05-24  Pedro Alves  <palves@redhat.com>

PR gdb/7205

        Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.

sim/rl78/
2012-05-24  Pedro Alves  <palves@redhat.com>

PR gdb/7205

        Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.

sim/rx/
2012-05-24  Pedro Alves  <palves@redhat.com>

PR gdb/7205

        Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.

12 years agogdb/
Pedro Alves [Thu, 24 May 2012 16:39:15 +0000 (16:39 +0000)]
gdb/
2012-05-24  Pedro Alves  <palves@redhat.com>

PR gdb/7205

Replace target_signal with gdb_signal throughout.

gdb/gdbserver/
2012-05-24  Pedro Alves  <palves@redhat.com>

PR gdb/7205

Replace target_signal with gdb_signal throughout.

include/gdb/
2012-05-24  Pedro Alves  <palves@redhat.com>

PR gdb/7205

Replace target_signal with gdb_signal throughout.

sim/common/
2012-05-24  Pedro Alves  <palves@redhat.com>

PR gdb/7205

Replace target_signal with gdb_signal throughout.

12 years ago2012-05-24 Pedro Alves <palves@redhat.com>
Pedro Alves [Thu, 24 May 2012 15:54:57 +0000 (15:54 +0000)]
2012-05-24  Pedro Alves  <palves@redhat.com>

PR tui/14159

* tui/tui-hooks.c (tui_query_hook): Pre-compute the question
string, instead of reusing the va_list argument.

12 years ago * gas/lns/lns-big-delta.s: Add nops.
Alan Modra [Thu, 24 May 2012 15:36:33 +0000 (15:36 +0000)]
* gas/lns/lns-big-delta.s: Add nops.
* gas/lns/lns-big-delta.d: Update.

12 years ago * cp-support.h (cp_finalize_namespace, cp_initialize_namespace):
Tom Tromey [Thu, 24 May 2012 14:31:01 +0000 (14:31 +0000)]
* cp-support.h (cp_finalize_namespace, cp_initialize_namespace):
Remove.

12 years ago PR ld/14158
Alan Modra [Thu, 24 May 2012 06:20:52 +0000 (06:20 +0000)]
PR ld/14158
* elf64-ppc.c (ppc64_elf_size_stubs): Round up glink_eh_frame
size to output section alignment.
(ppc64_elf_build_stubs): Likewise, and extend last FDE to cover.

12 years ago * symtab.c (search_symbols): Formatting fixes.
Doug Evans [Thu, 24 May 2012 02:51:48 +0000 (02:51 +0000)]
* symtab.c (search_symbols): Formatting fixes.
(print_symbol_info): Formatting fixes.

12 years ago * dwarf2-frame.c (execute_cfa_program): Update to handle long long ->
Doug Evans [Thu, 24 May 2012 01:26:15 +0000 (01:26 +0000)]
* dwarf2-frame.c (execute_cfa_program): Update to handle long long ->
int64_t change to leb128 API.
(read_encoded_value, decode_frame_entry_1): Ditto.
* dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Ditto.
(dwarf_block_to_dwarf_reg, dwarf_block_to_dwarf_reg_deref): Ditto.
(dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
(execute_stack_op): Ditto.
* dwarf2expr.h (gdb_read_uleb128, gdb_read_sleb128): Ditto.
(safe_read_uleb128, safe_read_sleb128): Ditto.
* dwarf2loc.c (decode_debug_loc_dwo_addresses): Ditto.
(dwarf2_compile_expr_to_ax): Ditto.
(locexpr_describe_location_piece): Ditto.
(disassemble_dwarf_expression): Ditto.
(locexpr_describe_location_1): Ditto.

12 years ago * leb128.h: #include stdint.h, inttypes.h.
Doug Evans [Thu, 24 May 2012 01:18:15 +0000 (01:18 +0000)]
* leb128.h: #include stdint.h, inttypes.h.
(read_uleb128_to_uint64): Renamed from read_uleb128_to_ull.
Change to take a uint64_t * argument instead of unsigned long long.
(read_sleb128_to_uint64): Renamed from read_sleb128_to_ll.
Change to take an int64_t * argument instead of long long.

12 years agold/
Cary Coutant [Thu, 24 May 2012 01:04:53 +0000 (01:04 +0000)]
ld/
* scripttempl/armbpabi.sc: Match .data.rel.ro.* sections more
carefully.  Fix typo where .rela.data.rel.ro matches
.rel.data.rel.ro.
* scripttempl/mep.sc: Likewise.
* scripttempl/elf.sc: Match .data.rel.ro.* sections more carefully.
* scripttempl/elf64hppa.sc: Likewise.
* scripttempl/elfxtensa.sc: Likewise.

12 years agogold/
Cary Coutant [Thu, 24 May 2012 01:02:15 +0000 (01:02 +0000)]
gold/
* layout.cc (Layout::section_name_mapping): Add rules to handle
exact match on .data.rel.ro.local or .data.rel.ro.
(Layout::output_section_name): Check for exact matches.

12 years ago2012-05-23 Stan Shebs <stan@codesourcery.com>
Stan Shebs [Thu, 24 May 2012 00:33:47 +0000 (00:33 +0000)]
2012-05-23  Stan Shebs  <stan@codesourcery.com>
    Kwok Cheung Yeung  <kcy@codesourcery.com>

* Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-info.o.
(SUBDIR_MI_SRCS): Add mi-cmd-info.c.
(mi-cmd-info.o): New rule.
* osdata.h (info_osdata_command): New declaration.
* osdata.c (info_osdata_command): Change to non-static.
* mi/mi-cmds.h (mi_cmd_info_os): New declaration.
* mi/mi-cmds.c (mi_cmds): Add -info-os MI command.
* mi/mi-cmd-info.c: New file.

* gdb.texinfo (Miscellaneous GDB/MI Commands): Document -info-os.

* gdb.mi/mi-info-os.exp: New file.

12 years ago * symtab.c (search_symbols): Pass NULL for file_matcher to
Doug Evans [Thu, 24 May 2012 00:23:13 +0000 (00:23 +0000)]
* symtab.c (search_symbols): Pass NULL for file_matcher to
expand_symtabs_matching if there are no files to match.

12 years ago*** empty log message ***
gdbadmin [Thu, 24 May 2012 00:00:32 +0000 (00:00 +0000)]
*** empty log message ***

12 years agodaily update
Alan Modra [Thu, 24 May 2012 00:00:04 +0000 (00:00 +0000)]
daily update

12 years ago * gdbtypes.c (lookup_typename): Simplify.
Doug Evans [Wed, 23 May 2012 23:45:09 +0000 (23:45 +0000)]
* gdbtypes.c (lookup_typename): Simplify.

12 years agogold/
Cary Coutant [Wed, 23 May 2012 20:54:37 +0000 (20:54 +0000)]
gold/
* layout.cc (Layout::section_name_mapping): Match .data.rel.ro.*
more carefully.

12 years ago * gdb.trace/stap-trace.exp: If compile_stap_bin fails,
Keith Seitz [Wed, 23 May 2012 18:21:34 +0000 (18:21 +0000)]
* gdb.trace/stap-trace.exp: If compile_stap_bin fails,
return -1 to suppress the rest of the tests.
(compile_stap_bin): Return boolean success value.

12 years ago2012-05-23 Pedro Alves <palves@redhat.com>
Pedro Alves [Wed, 23 May 2012 11:34:56 +0000 (11:34 +0000)]
2012-05-23  Pedro Alves  <palves@redhat.com>

* arch-utils.h (default_target_signal_to_host): Delete.
* arch-utils.c (default_target_signal_to_host): Delete.
* gdbarch.sh (target_signal_to_host): Remove.
* gdbarch.h, gdbarch.c: Regenerate.

12 years ago * elf-eh-frame.c (_bfd_elf_maybe_strip_eh_frame_hdr): Handle
Alan Modra [Wed, 23 May 2012 04:38:08 +0000 (04:38 +0000)]
* elf-eh-frame.c (_bfd_elf_maybe_strip_eh_frame_hdr): Handle
        BFDs with multiple .eh_frame sections.

12 years ago PR ld/13909
Alan Modra [Wed, 23 May 2012 04:35:31 +0000 (04:35 +0000)]
PR ld/13909
* elflink.c (bfd_elf_discard_info): Don't ignore dynamic BFDs.

12 years ago*** empty log message ***
gdbadmin [Wed, 23 May 2012 00:00:02 +0000 (00:00 +0000)]
*** empty log message ***

12 years agogold/
Cary Coutant [Tue, 22 May 2012 23:50:52 +0000 (23:50 +0000)]
gold/

* symtab.cc (Symbol::should_add_dynsym_entry): Check for relocatable
object before exporting symbol.

12 years ago * linux-low.c (linux_store_registers): Avoid the copying sequence
Maciej W. Rozycki [Tue, 22 May 2012 23:17:51 +0000 (23:17 +0000)]
* linux-low.c (linux_store_registers): Avoid the copying sequence
when no data has been retrieved by ptrace.

12 years agoDon't skip ld-elf/eh[1-4].d for x32
H.J. Lu [Tue, 22 May 2012 21:52:07 +0000 (21:52 +0000)]
Don't skip ld-elf/eh[1-4].d for x32

* ld-elf/eh1.d: Don't skip x86_64-*-linux-gnux32.
* ld-elf/eh2.d: Likewise.
* ld-elf/eh3.d: Likewise.
* ld-elf/eh4.d: Likewise.

12 years agoAdjust ld-x86-64/ilp32-11.s for NACL
H.J. Lu [Tue, 22 May 2012 21:42:50 +0000 (21:42 +0000)]
Adjust ld-x86-64/ilp32-11.s for NACL

* ld-x86-64/ilp32-11.s Add ".space 0x1000" before func.
(func): Make it global and hidden.
* ld-x86-64/ilp32-11.d: Updated.

12 years ago * dwarf2-frame.c (struct dwarf2_cie): Make initial_instructions, end
Doug Evans [Tue, 22 May 2012 18:45:22 +0000 (18:45 +0000)]
* dwarf2-frame.c (struct dwarf2_cie): Make initial_instructions, end
"const gdb_byte *".
(struct dwarf2_fde): Make instructions, end "const gdb_byte *".
(execute_cfa_program): Update to match API of leb128 functions.
(read_1_byte, read_4_bytes, read_8_bytes): Make buf parameter
"const gdb_byte *".
(read_unsigned_leb128, read_signed_leb128): Delete.
(read_initial_length): Change type of buf argument to
"const gdb_byte *".
(read_encoded_value): Update to match API of leb128 functions.
(decode_frame_entry): Change result to "const gdb_byte *", and
similarly for "start" parameter.
(decode_frame_entry_1): Ditto.  Use new leb128 reader functions.
(dwarf2_build_frame_info): Change local frame_ptr to
"const gdb_byte *".
* dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Replaces
read_uleb128, read_sleb128.  All callers updated.
(safe_skip_leb128): New function.
(dwarf_block_to_dwarf_reg): Update to match API of leb128 functions.
Call gdb_read_uleb128, gdb_skip_leb128 instead of read_uleb128.
(dwarf_block_to_dwarf_reg_deref): Update to match API of leb128
functions.  Call gdb_read_uleb128, gdb_read_sleb128 instead of
read_uleb128, read_sleb128.
(dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
(execute_stack_op): Update to match API of leb128 functions.
* dwarf2expr.h: #include "leb128.h".
(read_uleb128, read_sleb128): Delete.
(gdb_read_uleb128, gdb_read_sleb128, gdb_skip_leb128): New functions.
(safe_read_uleb128, safe_read_sleb128, safe_skip_leb128): Declare.
* dwarf2loc.c (debug_loc_kind): New enum.
(decode_debug_loc_addresses): New function.
(decode_debug_loc_dwo_addresses): New function.
(dwarf2_find_location_expression): Rewrite.
(dwarf2_compile_expr_to_ax): Update to match API of leb128 functions.
(locexpr_describe_location_piece): Ditto.
(disassemble_dwarf_expression): Ditto.
(locexpr_describe_location_1): Ditto.
(loclist_describe_location): Rewrite.
* dwarf2loc.h (dwarf2_loclist_baton): New member "from_dwo".
* dwarf2read.c (die_reader_specs): New member "buffer_end".
(dwarf2_section_buffer_overflow_complaint): Renamed from
dwarf2_macros_too_long_complaint.  All callers updated.
(skip_leb128): Delete.
(init_cu_die_reader): Initialize reader->buffer_end.
(skip_one_die): Replace call to skip_leb128 with safe_skip_leb128.
(skip_form_bytes): New arg buffer_end.  All callers updated.
Replace call to skip_leb128 with gdb_skip_leb128.
(skip_unknown_opcode): New arg mac_end.  All callers updated.
(fill_in_loclist_baton): Initialize baton->from_dwo.

12 years agold/testsuite/
Roland McGrath [Tue, 22 May 2012 18:42:37 +0000 (18:42 +0000)]
ld/testsuite/
* ld-elf/eh4.d: Revert last change.
Loosen CFI-matching regexps so they match x86_64-*-nacl* variant too.

12 years agold/testsuite/
Roland McGrath [Tue, 22 May 2012 18:22:03 +0000 (18:22 +0000)]
ld/testsuite/
* ld-x86-64/pr12570a.d (name): Distinguish it from pr12570b.d case.
Loosen CFI-matching regexp so it matches x86_64-*-nacl* variant too.
* ld-x86-64/pr12570b.d: Likewise.
* ld-x86-64/x86-64.exp: Revert last change.

12 years ago * mips-linux-nat.c (mips_linux_read_description): Use a more
Maciej W. Rozycki [Tue, 22 May 2012 18:12:13 +0000 (18:12 +0000)]
* mips-linux-nat.c (mips_linux_read_description): Use a more
verbose error message.

12 years agomerge from gcc
DJ Delorie [Tue, 22 May 2012 18:05:41 +0000 (18:05 +0000)]
merge from gcc

12 years ago * NEWS: Add MIPS/Linux DSP support.
Maciej W. Rozycki [Tue, 22 May 2012 17:12:07 +0000 (17:12 +0000)]
* NEWS: Add MIPS/Linux DSP support.
* mips-linux-tdep.c: Document post-2.6.12 o32 sigcontext layout.
(SIGCONTEXT_DSPCTL): New macro.
(SIGCONTEXT_HI1, SIGCONTEXT_LO1): Likewise.
(SIGCONTEXT_HI2, SIGCONTEXT_LO2): Likewise.
(SIGCONTEXT_HI3, SIGCONTEXT_LO3): Likewise.
(N64_SIGCONTEXT_HI1, N64_SIGCONTEXT_HI2): Likewise.
(N64_SIGCONTEXT_HI3): Likewise.
(N64_SIGCONTEXT_LO1, N64_SIGCONTEXT_LO2): Likewise.
(N64_SIGCONTEXT_LO3): Likewise.
(N64_SIGCONTEXT_DSPCTL): Likewise.
(N64_SIGCONTEXT_FPCSR): Clarify definition.
(mips_linux_o32_sigframe_init): Handle DSP registers.
(mips_linux_n32n64_sigframe_init): Likewise.

12 years agoSkip/xfail x86_64-*-nacl* for eh4/pr12570a tests
H.J. Lu [Tue, 22 May 2012 16:57:51 +0000 (16:57 +0000)]
Skip/xfail x86_64-*-nacl* for eh4/pr12570a tests

* ld-elf/eh4.d: Skip x86_64-*-nacl*.

* ld-x86-64/x86-64.exp: Xfail pr12570a for x86_64-*-nacl*.

12 years ago * common/buffer.c (buffer_grow): ARI fix: Remove unneeded
Pierre Muller [Tue, 22 May 2012 15:55:30 +0000 (15:55 +0000)]
* common/buffer.c (buffer_grow): ARI fix: Remove unneeded
call to abort.

12 years agoRevert the change for PR ld/r13909
H.J. Lu [Tue, 22 May 2012 15:55:01 +0000 (15:55 +0000)]
Revert the change for PR ld/r13909

bfd/

PR ld/13909
* elf32-i386.c (elf_i386_create_dynamic_sections): Revert the
last change.
* elf64-x86-64.c (elf_x86_64_create_dynamic_sections): Likewise.

ld/testsuite/

2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>

PR ld/13909
* ld-i386/i386.exp: Revert the last change.
* ld-x86-64/x86-64.exp: Likewise.

* ld-i386/dummy.s: Removed.
* ld-i386/pr13909.d: Likewise.
* ld-x86-64/pr13909.d: Likewise.

12 years ago2012-05-22 Pedro Alves <palves@redhat.com>
Pedro Alves [Tue, 22 May 2012 15:04:57 +0000 (15:04 +0000)]
2012-05-22  Pedro Alves  <palves@redhat.com>

* target.h (store_waitstatus): Move declaration ...
* inf-child.h (store_waitstatus): ... here.
* target.c: Move inclusion of gdb_wait.h, and ...
(store_waitstatus): ... this ...
* inf-child.c: ... here.
* linux-nat.c: Include inf-child.h.
* rs6000-nat.c: Include inf-child.h.
* spu-linux-nat.c: Include inf-child.h.

12 years ago * elflink.c (bfd_elf_discard_info): Look for next .eh_frame if
Alan Modra [Tue, 22 May 2012 14:58:15 +0000 (14:58 +0000)]
* elflink.c (bfd_elf_discard_info): Look for next .eh_frame if
first one is zero size or discarded.
* elf32-ppc.c (ppc_elf_size_dynamic_sections): Set most of
glink_eh_frame contents here..
(ppc_elf_finish_dynamic_sections): ..rather than here.  Just set
offset to .glink.

12 years agoCreate PLT eh_frame section if there is .eh_frame section
H.J. Lu [Tue, 22 May 2012 14:46:44 +0000 (14:46 +0000)]
Create PLT eh_frame section if there is .eh_frame section

bfd/

PR ld/13909
* elf32-i386.c (elf_i386_create_dynamic_sections): Create PLT
eh_frame section if there is an input .eh_frame section.
* elf64-x86-64.c (elf_x86_64_create_dynamic_sections): Likewise.

ld/testsuite/

PR ld/13909
* ld-i386/i386.exp: Run pr13909.
* ld-x86-64/x86-64.exp: Likewise.

* ld-i386/dummy.s: New file.
* ld-i386/pr13909.d: Likewise.
* ld-x86-64/pr13909.d: Likewise.

12 years agoAlways create PLT eh_frame section for i386/x86-64
H.J. Lu [Tue, 22 May 2012 14:05:21 +0000 (14:05 +0000)]
Always create PLT eh_frame section for i386/x86-64

bfd/

2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>

PR ld/14105
* elf32-i386.c (elf_i386_create_dynamic_sections): Always
create PLT eh_frame section with SEC_LINKER_CREATED.
* elf64-x86-64.c (elf_x86_64_create_dynamic_sections): Likewise.

ld/testsuite/

2012-05-20  H.J. Lu  <hongjiu.lu@intel.com>

PR ld/14105
* ld-elf/eh4.d: Add PLT eh_frame.

* ld-i386/i386.exp: Run pr12570a and pr12570b.
* ld-x86-64/x86-64.exp: Likewise.

* ld-i386/pr12570a.d: New file.
* ld-i386/pr12570a.s: Likewise.
* ld-i386/pr12570b.s: Likewise.
* ld-i386/pr12570b.s: Likewise.
* ld-x86-64/pr12570a.d: Likewise.
* ld-x86-64/pr12570a.s: Likewise.
* ld-x86-64/pr12570b.d: Likewise.
* ld-x86-64/pr12570b.s: Likewise.