external/binutils.git
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.

12 years ago2012-05-22 Will Deacon <will.deacon@arm.com>
Matthew Gretton-Dann [Tue, 22 May 2012 13:50:50 +0000 (13:50 +0000)]
2012-05-22  Will Deacon  <will.deacon@arm.com>

* linux-low (__UCLIBC__ && !(__UCLIBC_HAS_MMU__ || __ARCH_HAS_MMU__)):
Include asm/ptrace.h.
(PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define only if not
already defined.

12 years ago * elflink.c (bfd_elf_discard_info): Handle multiple .eh_frame
Alan Modra [Tue, 22 May 2012 12:09:26 +0000 (12:09 +0000)]
* elflink.c (bfd_elf_discard_info): Handle multiple .eh_frame
sections attached to a BFD.
* section.c (bfd_get_section_by_name): Rewrite description.
(bfd_get_next_section_by_name): New function.
* bfd-in2.h: Regenerate.

12 years ago * tracepoint.c (start_tracing): Add missing i18n markup.
Pierre Muller [Tue, 22 May 2012 08:45:56 +0000 (08:45 +0000)]
* tracepoint.c (start_tracing): Add missing i18n markup.
(stop_tracing, set_trace_user): Ditto.
(set_trace_notes, set_trace_stop_notes): Ditto.

12 years agogas: mips: fix segfault with invalid default cpu strings
Mike Frysinger [Tue, 22 May 2012 01:55:16 +0000 (01:55 +0000)]
gas: mips: fix segfault with invalid default cpu strings

If you configure gas for a mips32el-* target, the default cpu calculation
gets mangled, and we end up passing and invalid value as the default cpu.

If you try executing gas after that, it segfaults.  This is because it
assumes that the default cpu value is always valid.
$ ./gas/as-new
Assembler messages:
Error: Bad value (2) for default CPU
Segmentation fault (core dumped)

I'm not debating that the target tuple is valid, just that gas shouldn't
crash.  So add a friendly assert to avoid that.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
12 years agodaily update
Alan Modra [Tue, 22 May 2012 00:00:04 +0000 (00:00 +0000)]
daily update

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

12 years ago * linux-low.c (linux_store_registers): Don't re-retrieve data
Maciej W. Rozycki [Mon, 21 May 2012 23:50:25 +0000 (23:50 +0000)]
* linux-low.c (linux_store_registers): Don't re-retrieve data
with ptrace that has already been obtained from /proc.  Always
copy any data retrieved with ptrace to the buffer supplied.

12 years ago PR c++/7173:
Tom Tromey [Mon, 21 May 2012 19:47:54 +0000 (19:47 +0000)]
PR c++/7173:
* gnu-v3-abi.c (gnuv3_baseclass_offset): Return early for Java
types.
* value.h (value_cast_pointers): Update.
* valops.c (value_cast_pointers): Add 'subclass_check' argument.
(value_cast): Update.
(update_search_result): New function.
(do_search_struct_field): New, from search_struct_field.  Check
for ambiguous results.
(search_struct_field): Rewrite.
* infcall.c (value_arg_coerce): Update.
* eval.c (evaluate_subexp_standard) <STRUCTOP_MEMBER>: Use
value_cast_pointers.
* ada-lang.c (ada_convert_actual): Update.
testsuite
* gdb.cp/inherit.exp (test_print_mi_members): Expect errors.
Remove kfails.
(test_print_mi_member_types): Likewise.

12 years ago * gdb.base/callfuncs.exp (do_function_calls): Update for 'set
Tom Tromey [Mon, 21 May 2012 16:52:42 +0000 (16:52 +0000)]
* gdb.base/callfuncs.exp (do_function_calls): Update for 'set
print symbol' change.

12 years agoInclude "config.h" first
H.J. Lu [Mon, 21 May 2012 16:52:38 +0000 (16:52 +0000)]
Include "config.h" first

* testsuite/tls_test.cc: Include "config.h" first.
* testsuite/tls_test_c.c: Likewise.

12 years ago * macroexp.c (macro_stringify): Terminate the string.
Tom Tromey [Mon, 21 May 2012 15:27:24 +0000 (15:27 +0000)]
* macroexp.c (macro_stringify): Terminate the string.

12 years ago* elf32-m68k.c (elf_m68k_grok_prstatus): New function.
Andreas Schwab [Mon, 21 May 2012 08:17:15 +0000 (08:17 +0000)]
* elf32-m68k.c (elf_m68k_grok_prstatus): New function.
(elf_m68k_grok_psinfo): New function.
(elf_backend_grok_prstatus): Define.
(elf_backend_grok_psinfo): Define.

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

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

12 years agogdb/
Jan Kratochvil [Sun, 20 May 2012 20:35:19 +0000 (20:35 +0000)]
gdb/
* NEWS (--with-auto-load-dir): Prepend $debugdir to the default path.
Describe it.
* auto-load.c (auto_load_expand_dir_vars): New function.
(auto_load_safe_path_vec_update): Use it, remove the
substitute_path_component call thanks to it.
(auto_load_objfile_script): Remove the debug_file_directory processing.
Use auto_load_expand_dir_vars, remove the substitute_path_component
call thanks to it.
* configure: Regenerate.
* configure.ac (--with-auto-load-dir): Prepend $debugdir to the default
path.  Escape $ also for $debugdir.
(--with_auto_load_safe_path): Escape $ also for $debugdir.
* utils.c (substitute_path_component): Accept also DIRNAME_SEPARATOR.

gdb/doc/
* gdb.texinfo (Separate Debug Files): New anchor debug-file-directory.
Mention also --with-separate-debug-dir.
(Auto-loading): Prepend $debugdir in the sample output.
(Auto-loading safe path): Likewise.  Mention also $debugdir for the
auto-load safe-path variable.
(objfile-gdb.py file): Remove the extra debug-file-directory paragraph.
Mention also $debugdir for 'set auto-load scripts-directory'.

12 years ago * dwarf2read.c (recursively_find_pc_sect_symtab): Initialize "s"
Doug Evans [Sun, 20 May 2012 17:15:29 +0000 (17:15 +0000)]
* dwarf2read.c (recursively_find_pc_sect_symtab): Initialize "s"
before use.  Check for symtab->includes == NULL before scanning it.

12 years ago PR 14072
Hans-Peter Nilsson [Sun, 20 May 2012 05:34:23 +0000 (05:34 +0000)]
PR 14072
* interp.c: Include config.h before system header files.

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

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

12 years ago * elf64-mips.c (elf_backend_got_header_size): Correct definition.
Maciej W. Rozycki [Sat, 19 May 2012 19:30:45 +0000 (19:30 +0000)]
* elf64-mips.c (elf_backend_got_header_size): Correct definition.
* elfxx-mips.c (_bfd_mips_elf_adjust_dynamic_symbol): Use the ELF
backend's GOT header size instead of hardcoding it.

12 years ago * elf32-vax.c (elf_vax_relocate_section)
Maciej W. Rozycki [Sat, 19 May 2012 19:27:01 +0000 (19:27 +0000)]
* elf32-vax.c (elf_vax_relocate_section)
<R_VAX_8, R_VAX_16, R_VAX_32>: Don't check if info->shared again.

12 years ago * elf32-vax.c (elf_vax_relocate_section)
Maciej W. Rozycki [Sat, 19 May 2012 19:23:24 +0000 (19:23 +0000)]
* elf32-vax.c (elf_vax_relocate_section)
<R_VAX_8, R_VAX_16, R_VAX_32>: Use section flags rather than
its name as the check for text sections.

12 years ago * elf64-mips.c (mips_elf64_be_swap_reloc_out): Also make sure
Maciej W. Rozycki [Sat, 19 May 2012 19:13:56 +0000 (19:13 +0000)]
* elf64-mips.c (mips_elf64_be_swap_reloc_out): Also make sure
the third reloc offset is the same as the first.

12 years ago PR 14072
Nick Clifton [Sat, 19 May 2012 16:46:16 +0000 (16:46 +0000)]
PR 14072
* wrapper.c: Include config.h before system header files.

* callback.c: Include config.h before system header files.
* cgen-trace.c: Likewise.
* cgen-utils.c: Likewise.
* gentmap.c: Likewise.

* sim-if.c: Include config.h before system header files.

* compile.c: Include config.h before system header files.
* sim-main.h: Likewise.

* gdb-if.c: Include config.h before system header files.
* load.c: Likewise.
* syscalls.c: Likewise.
* trace.c: Likewise.

* interp.c: Include config.h before system header files.

12 years ago * ld-elf/elf.exp (note-3.so): xfail tic6x due to non-pic warnings.
Alan Modra [Sat, 19 May 2012 10:39:07 +0000 (10:39 +0000)]
* ld-elf/elf.exp (note-3.so): xfail tic6x due to non-pic warnings.

12 years ago * gas/tic6x/unwind-1.d: Update for readelf changes.
Alan Modra [Sat, 19 May 2012 10:37:46 +0000 (10:37 +0000)]
* gas/tic6x/unwind-1.d: Update for readelf changes.
* gas/tic6x/unwind-2.d: Likewise.
* gas/tic6x/unwind-3.d: Likewise.

12 years ago * config/obj-elf.c (obj_elf_section): Cater for TC_KEEP_OPERAND_SPACES
Alan Modra [Sat, 19 May 2012 10:36:32 +0000 (10:36 +0000)]
* config/obj-elf.c (obj_elf_section): Cater for TC_KEEP_OPERAND_SPACES
targets when checking for "comdat".

12 years agoUse @acronym{MIPS} where appropriate.
Eli Zaretskii [Sat, 19 May 2012 08:50:59 +0000 (08:50 +0000)]
Use @acronym{MIPS} where appropriate.
See http://sourceware.org/ml/gdb-patches/2012-04/threads.html#01091 and
http://sourceware.org/ml/gdb-patches/2012-05/threads.html#00731 for the
related discussions.

* gdb.texinfo (Continuing and Stepping, Selection, Byte Order)
(MIPS Embedded, MIPS, MIPS Register packet Format)
(Target Descriptions, MIPS Features): Use @acronym{MIPS} where
appropriate.

12 years agobfd/
Alan Modra [Sat, 19 May 2012 06:58:48 +0000 (06:58 +0000)]
bfd/
* elf32-ppc.h (has_vle_insns, is_ppc_vle): Delete.
(has_tls_reloc, has_tls_get_addr_call): Move back to..
* elf32-ppc.c: ..here.
(ppc_elf_section_flags, elf_backend_section_flags): Delete.
(ppc_elf_modify_segment_map): Use ELF sh_flags to detect VLE sections.
opcodes/
* ppc-dis.c: Don't include elf32-ppc.h, do include elf/ppc.h.
(get_powerpc_dialect): Detect VLE sections from ELF sh_flags.
ld/testsuite/
* ld-powerpc/vle.ld: New.
* ld-powerpc/powerpc.exp (vle reloc tests): Link using vle.ld.

12 years ago * gdb.python/py-prompt.exp: Quit if the target is remote.
Thiago Jung Bauermann [Sat, 19 May 2012 01:05:38 +0000 (01:05 +0000)]
* gdb.python/py-prompt.exp: Quit if the target is remote.

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

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

12 years ago * mips-tdep.c (mips_reg3_to_reg): Optimize storage.
Maciej W. Rozycki [Fri, 18 May 2012 23:53:19 +0000 (23:53 +0000)]
* mips-tdep.c (mips_reg3_to_reg): Optimize storage.

12 years ago gdb/
Maciej W. Rozycki [Fri, 18 May 2012 23:46:40 +0000 (23:46 +0000)]
gdb/
* NEWS: Add microMIPS support and "set mips compression",
"show mips compression" commands.
* mips-tdep.h (mips_isa): New enum.
(gdbarch_tdep): Add mips_isa.
(mips_pc_is_mips16): Update prototype.
(mips_pc_is_mips, mips_pc_is_micromips): New prototypes.
* mips-tdep.c (mips_compression_mips16): New variable.
(mips_compression_micromips): Likewise.
(mips_compression_strings): Likewise.
(mips_compression_string): Likewise.
(is_mips16_isa, is_micromips_isa): New functions.
(is_mips16_addr): Rename to...
(is_compact_addr): ... this.
(unmake_mips16_addr): Likewise to...
(unmake_compact_addr): ... this.
(make_mips16_addr): Likewise to...
(make_compact_addr): ... this.
(is_mips_addr, is_mips16_addr, is_micromips_addr): New
functions.
(mips_elf_make_msymbol_special): Handle microMIPS code.
(msymbol_is_special): Rename to...
(msymbol_is_mips16): ... this.
(mips_make_symbol_special, mips_pc_is_mips16): Update
accordingly.
(msymbol_is_mips, msymbol_is_micromips): New functions.
(mips16_to_32_reg): Rename to...
(mips_reg3_to_reg): ... this.
(mips_pc_is_mips, mips_pc_is_micromips): New functions.
(mips_pc_isa): Likewise.
(mips_read_pc, mips_unwind_pc, mips_write_pc): Handle microMIPS
code.
(mips_fetch_instruction): Pass return status instead of printing
an error message if requested.  Handle microMIPS code.  Bail out
on an invalid ISA.
(micromips_op): New macro.
(b0s4_imm, b0s5_imm, b0s5_reg, b0s7_imm, b0s10_imm): Likewise.
(b1s9_imm, b2s3_cc, b4s2_regl, b5s5_op, b5s5_reg): Likewise.
(b6s4_op, b7s3_reg): Likewise.
(b0s6_op, b0s11_op, b0s12_imm, b0s16_imm, b0s26_imm): Likewise.
(b6s10_ext, b11s5_reg, b12s4_op): Likewise.
(mips_insn_size): New function.
(mips32_next_pc): Update mips_fetch_instruction call.
(micromips_relative_offset7): New function.
(micromips_relative_offset10): Likewise.
(micromips_relative_offset16): Likewise.
(micromips_pc_insn_size): Likewise.
(micromips_bc1_pc): Likewise.
(micromips_next_pc): Likewise.
(unpack_mips16): Update mips_fetch_instruction call.
(extended_mips16_next_pc): Update according to change to
mips16_to_32_reg.
(mips_next_pc): Update mips_pc_is_mips16 call.  Handle microMIPS
code.
(mips16_scan_prologue): Update mips_fetch_instruction call.
Update according to change to mips16_to_32_reg.
(mips_insn16_frame_sniffer): Update mips_pc_is_mips16 call.
(mips_insn16_frame_base_sniffer): Likewise.
(micromips_decode_imm9): New function.
(micromips_scan_prologue): Likewise.
(mips_micro_frame_cache): Likewise.
(mips_micro_frame_this_id): Likewise.
(mips_micro_frame_prev_register): Likewise.
(mips_micro_frame_sniffer): Likewise.
(mips_micro_frame_unwind): New variable.
(mips_micro_frame_base_address): New function.
(mips_micro_frame_base): New variable.
(mips_micro_frame_base_sniffer): New function.
(mips32_scan_prologue): Update mips_fetch_instruction call.
(mips_insn32_frame_sniffer): Check for the standard MIPS ISA
rather than for MIPS16.
(mips_insn32_frame_base_sniffer): Likewise.
(mips_addr_bits_remove): Handle microMIPS code.
(deal_with_atomic_sequence): Rename to...
(mips_deal_with_atomic_sequence): ... this.  Update the type
of the variable used to hold an instruction.  Remove the ISA bit
check.  Update mips_fetch_instruction call.
(micromips_deal_with_atomic_sequence): New function.
(deal_with_atomic_sequence): Likewise.
(mips_about_to_return): Handle microMIPS code.  Update
mips_fetch_instruction call.
(heuristic_proc_start): Check for the standard MIPS ISA rather
than for MIPS16.  Update mips_pc_is_mips16 and
mips_fetch_instruction calls.  Handle microMIPS code.
(mips_push_dummy_code): Handle microMIPS code.
(mips_eabi_push_dummy_call): Likewise.
(mips_o32_return_value): Update mips_pc_is_mips16 call.
(mips_o64_push_dummy_call): Handle microMIPS code.
(mips_o64_return_value): Update mips_pc_is_mips16 call.
(is_delayed): Remove function.
(mips_single_step_through_delay): Replace the call to is_delayed
with mips32_instruction_has_delay_slot.  Correct MIPS16 handling.
Handle microMIPS code.
(mips_skip_prologue): Update mips_pc_is_mips16 call.  Handle
microMIPS code.
(mips32_in_function_epilogue_p): Update mips_fetch_instruction
call.
(micromips_in_function_epilogue_p): New function.
(mips16_in_function_epilogue_p): Update mips_fetch_instruction
call.
(mips_in_function_epilogue_p): Update mips_pc_is_mips16 call.
Handle microMIPS.
(gdb_print_insn_mips): Likewise.
(mips_breakpoint_from_pc): Likewise.
(mips_remote_breakpoint_from_pc): New function.
(mips32_instruction_has_delay_slot): Simplify making use of the
updated mips_fetch_instruction interface.
(micromips_instruction_has_delay_slot): New function.
(mips16_instruction_has_delay_slot): Simplify making use of the
updated mips_fetch_instruction interface.
(mips_adjust_breakpoint_address): Check for the standard MIPS
ISA rather than for MIPS16 ISA.  Update for unmake_compact_addr
calls.  Handle microMIPS code.
(mips_get_mips16_fn_stub_pc): Update mips_fetch_instruction call.
(mips_skip_trampoline_code): Handle microMIPS code.
(global_mips_compression): New function.
(mips_gdbarch_init): Handle the compressed ISA setting from ELF
file flags.  Register the microMIPS remote breakpoint handler
and heuristic frame unwinder.
(show_mips_compression): New function.
(_initialize_mips_tdep): Add the "set mips compression" and
"show mips compression" commands.

gdb/doc/
* gdb.texinfo (MIPS): Document "set mips compression" and "show
mips compression".
(MIPS Breakpoint Kinds): New subsubsection.

12 years agoFix typo.
Maciej W. Rozycki [Fri, 18 May 2012 23:45:13 +0000 (23:45 +0000)]
Fix typo.

12 years ago * config/tc-dlx.c (s_proc): Don't use asprintf.
Alan Modra [Fri, 18 May 2012 23:21:49 +0000 (23:21 +0000)]
* config/tc-dlx.c (s_proc): Don't use asprintf.

12 years ago * gdb.texinfo (Architecture-Specific Protocol Details): Define
Maciej W. Rozycki [Fri, 18 May 2012 23:12:31 +0000 (23:12 +0000)]
* gdb.texinfo (Architecture-Specific Protocol Details): Define
nodes for subsections.  Add @acronym mark-ups and adjust
formatting.

12 years agoDon't make _DYNAMIC/_GLOBAL_OFFSET_TABLE_ absolute
H.J. Lu [Fri, 18 May 2012 22:26:18 +0000 (22:26 +0000)]
Don't make _DYNAMIC/_GLOBAL_OFFSET_TABLE_ absolute

bfd/

* elf32-i386.c (elf_i386_finish_dynamic_symbol): Don't make
_DYNAMIC nor _GLOBAL_OFFSET_TABLE_ absolute.
* elf64-x86-64.c (elf_x86_64_finish_dynamic_symbol): Likewise.

ld/testsuite/

* ld-i386/tlsdesc-nacl.rd: Update for dynamic sym changes.
* ld-i386/tlsdesc.rd: Likewise.
* ld-i386/tlsgdesc-nacl.rd: Likewise.
* ld-i386/tlsgdesc.rd: Likewise.
* ld-i386/tlsnopic-nacl.rd: Likewise.
* ld-i386/tlsnopic.rd: Likewise.
* ld-i386/tlspic-nacl.rd: Likewise.
* ld-i386/tlspic.rd: Likewise.
* ld-x86-64/tlsdesc-nacl.rd: Likewise.
* ld-x86-64/tlsdesc.rd: Likewise.
* ld-x86-64/tlsgdesc-nacl.rd: Likewise.
* ld-x86-64/tlsgdesc.rd: Likewise.
* ld-x86-64/tlspic-nacl.rd: Likewise.
* ld-x86-64/tlspic.rd: Likewise.

12 years ago2012-05-18 Sergio Durigan Junior <sergiodj@redhat.com>
Sergio Durigan Junior [Fri, 18 May 2012 21:02:52 +0000 (21:02 +0000)]
2012-05-18  Sergio Durigan Junior  <sergiodj@redhat.com>

* ada-lang.c:
* ada-tasks.c:
* ada-varobj.c:
* amd64-darwin-tdep.c:
* arm-symbian-tdep.c:
* arm-tdep.c:
* avr-tdep.c:
* ax-gdb.c:
* bfin-linux-tdep.c:
* breakpoint.c:
* c-valprint.c:
* cli/cli-cmds.c:
* coffread.c:
* cp-support.c:
* cris-tdep.c:
* dwarf2-frame-tailcall.c:
* dwarf2-frame.c:
* dwarf2expr.c:
* dwarf2loc.c:
* dwarf2read.c:
* elfread.c:
* eval.c:
* expprint.c:
* f-valprint.c:
* frv-tdep.c:
* h8300-tdep.c:
* hppa-hpux-tdep.c:
* hppa-tdep.c:
* hppanbsd-tdep.c:
* i386-nto-tdep.c:
* i386-tdep.c:
* i387-tdep.c:
* ia64-tdep.c:
* jit.c:
* linespec.c:
* linux-tdep.c:
* lm32-tdep.c:
* m2-valprint.c:
* m32c-tdep.c:
* m32r-rom.c:
* m32r-tdep.c:
* m68k-tdep.c:
* m68klinux-tdep.c:
* mi/mi-main.c:
* microblaze-tdep.c:
* mips-linux-tdep.c:
* mips-tdep.c:
* mn10300-tdep.c:
* p-valprint.c:
* parse.c:
* ppc-linux-tdep.c:
* ppc-sysv-tdep.c:
* printcmd.c:
* python/py-finishbreakpoint.c:
* python/py-inferior.c:
* python/py-infthread.c:
* python/py-type.c:
* python/python.c:
* remote-fileio.c:
* remote-m32r-sdi.c:
* remote-mips.c:
* reverse.c:
* rl78-tdep.c:
* rs6000-aix-tdep.c:
* rs6000-tdep.c:
* s390-tdep.c:
* score-tdep.c:
* sh64-tdep.c:
* skip.c:
* solib-darwin.c:
* solib-dsbt.c:
* solib-frv.c:
* sparc-tdep.c:
* spu-multiarch.c:
* spu-tdep.c:
* stack.c:
* symfile.c:
* symtab.c:
* tic6x-tdep.c:
* tracepoint.c:
* v850-tdep.c:
* valarith.c:
* valprint.c:
* value.c:
* xcoffread.c:
* xtensa-tdep.c:
* ada-lang.c:
* ada-tasks.c:
* ada-varobj.c:
* amd64-darwin-tdep.c:
* arm-symbian-tdep.c:
* arm-tdep.c: Delete unused variables.

12 years agogdb/testsuite/
Jan Kratochvil [Fri, 18 May 2012 17:51:30 +0000 (17:51 +0000)]
gdb/testsuite/
Fix ERROR: internal buffer is full.
* gdb.base/info-os.exp (expect_multiline): New function.
(get process list, get process groups, get threads)
(get file descriptors, get internet-domain sockets)
(get shared-memory regions, get semaphores, get message queues): Use
it for these tests.

12 years agogdb/
Jan Kratochvil [Fri, 18 May 2012 17:47:31 +0000 (17:47 +0000)]
gdb/
Rename $ddir to $datadir.
* NEWS (--with-auto-load-dir): Rename $ddir to $datadir.
* auto-load.c (auto_load_safe_path_vec_update)
(auto_load_gdb_datadir_changed, auto_load_objfile_script): Likewise.
* configure: Regenerate.
* configure.ac (--with-auto-load-dir, --with-auto-load-safe-path):
Likewise.  Remove the 'use $ddir' help string.

gdb/doc/
Rename $ddir to $datadir.
* gdb.texinfo (Auto-loading, Auto-loading safe path)
(objfile-gdb.py file): Rename $ddir to $datadir.

12 years agogdb/
Jan Kratochvil [Fri, 18 May 2012 17:44:37 +0000 (17:44 +0000)]
gdb/
* auto-load.c (show_auto_load_safe_path): Accept any combination of
DIRNAME_SEPARATOR and IS_DIR_SEPARATOR for wild-match.

12 years ago* archive.c (_bfd_generic_read_ar_hdr_mag): Fix last change so as
Roland McGrath [Fri, 18 May 2012 16:38:22 +0000 (16:38 +0000)]
* archive.c (_bfd_generic_read_ar_hdr_mag): Fix last change so as
not to clobber the ar_fmag field stored in ARED->arch_header.

12 years ago PR exp/13907:
Tom Tromey [Fri, 18 May 2012 15:31:42 +0000 (15:31 +0000)]
PR exp/13907:
* valprint.h (struct value_print_options) <symbol_print>: New
field.
* valprint.c (user_print_options): Add default for symbol_print.
(show_symbol_print): New function.
(generic_val_print): Respect symbol_print.
(_initialize_valprint): Add "print symbol" setting.
* f-valprint.c (f_val_print): Respect symbol_print.
* c-valprint.c (c_val_print): Respect symbol_print.
* NEWS: Update.
* printcmd.c (print_address_symbolic): Return int.  Ignore some
zero-size symbols.
(print_address_demangle): Return int.
* defs.h: (print_address_symbolic): Return int.
* value.h (print_address_demangle): Return int.
doc
* gdb.texinfo (Print Settings): Document 'set print symbol'.
testsuite
* gdb.mi/mi-var-cmd.exp: Update.
* gdb.objc/basicclass.exp (do_objc_tests): Update.
* gdb.cp/virtbase.exp: Update.
* gdb.cp/classes.exp (test_static_members): Update.
* gdb.cp/casts.exp: Update.
* gdb.base/pointers.exp: Update.
* gdb.base/funcargs.exp (pointer_args): Update.
(structs_by_reference): Update.
* gdb.base/find.exp: Update.
* gdb.base/call-strs.exp: Send "set print symbol off".
* gdb.base/call-ar-st.exp: Update.
* gdb.ada/fun_addr.exp: Update.
* gdb.base/printcmds.exp (test_print_symbol): New proc.
Call it.
(test_print_repeats_10, test_print_strings)
(test_print_char_arrays): Update.

12 years ago * valprint.c (val_print_string): Don't print leading space.
Tom Tromey [Fri, 18 May 2012 15:29:13 +0000 (15:29 +0000)]
* valprint.c (val_print_string): Don't print leading space.
* p-valprint.c (pascal_val_print) <TYPE_CODE_PTR>: Optionally
print space before string or vtbl.
* m2-valprint.c (print_unpacked_pointer): Optionally print space
before string.
* jv-valprint.c (java_value_print): Print space before string.
* go-valprint.c (print_go_string): Print space before string.
* f-valprint.c (f_val_print) <TYPE_CODE_PTR>: Optionally print
space before string.
* c-valprint.c (c_val_print) <TYPE_CODE_PTR>: Optionally print
space before string or vtbl.
* auxv.c (fprint_target_auxv): Print space after address.

12 years ago * printcmd.c (print_address_demangle): Remove special case for 0.
Tom Tromey [Fri, 18 May 2012 15:28:24 +0000 (15:28 +0000)]
* printcmd.c (print_address_demangle): Remove special case for 0.
testsuite
* gdb.mi/mi2-var-display.exp: Update.
* gdb.mi/mi-var-display.exp: Update.
* gdb.mi/mi-var-child.exp: Update.
* gdb.cp/expand-psymtabs-cxx.exp: Update.
* gdb.cp/cp-relocate.exp (get_func_address): Update.

12 years ago * printcmd.c (print_address_demangle): Add 'opts' argument.
Tom Tromey [Fri, 18 May 2012 15:27:25 +0000 (15:27 +0000)]
* printcmd.c (print_address_demangle): Add 'opts' argument.
* p-valprint.c (pascal_val_print): Update.
* jv-valprint.c (java_val_print): Update.
* value.h: Update.
* valprint.c (generic_val_print): Update.
(print_function_pointer_address): Add 'options' argument.  Remove
'addressprint' argument.  Update.
* m2-valprint.c (print_unpacked_pointer): Update.
* gnu-v3-abi.c (print_one_vtable): Update.
(gnuv3_print_method_ptr): Update.
* f-valprint.c (f_val_print): Update.
* cp-valprint.c (cp_print_value_fields): Update.
* valprint.h (print_function_pointer_address): Update.
* c-valprint.c (c_val_print): Update.

12 years ago2012-05-18 Pedro Alves <palves@redhat.com>
Pedro Alves [Fri, 18 May 2012 15:11:53 +0000 (15:11 +0000)]
2012-05-18  Pedro Alves  <palves@redhat.com>

* mach-o.h: Don't include sysdep.h.

12 years ago * psymtab.c (find_pc_sect_symtab_from_partial): Return the symtab
Tom Tromey [Fri, 18 May 2012 14:26:26 +0000 (14:26 +0000)]
* psymtab.c (find_pc_sect_symtab_from_partial): Return the symtab
directly corresponding to the found psymtab.
* dwarf2read.c (recursively_find_pc_sect_symtab): New function.
(dw2_find_pc_sect_symtab): Use it.
* block.h (blockvector_contains_pc): Declare.
* block.c (find_block_in_blockvector): New function.
(blockvector_for_pc_sect): Use it.
(blockvector_contains_pc): New function.

12 years ago * mips-tdep.h (mips_write_pc): New prototype.
Maciej W. Rozycki [Fri, 18 May 2012 12:43:05 +0000 (12:43 +0000)]
* mips-tdep.h (mips_write_pc): New prototype.
* mips-tdep.c (mips_write_pc): Make external, add description.
* mips-linux-tdep.c (mips_linux_write_pc): Use mips_write_pc,
add description.

12 years ago * mips-tdep.c (mips_read_pc): Use gdbarch_pc_regnum instead of
Maciej W. Rozycki [Fri, 18 May 2012 12:30:26 +0000 (12:30 +0000)]
* mips-tdep.c (mips_read_pc): Use gdbarch_pc_regnum instead of
mips_regnum->pc.
(mips_unwind_pc, mips_write_pc): Likewise.
(mips_gdbarch_init): Remove a comment on gdbarch_pc_regnum and
gdbarch_read_pc.

12 years ago PR 14072
Nick Clifton [Fri, 18 May 2012 10:29:12 +0000 (10:29 +0000)]
PR 14072
* bfd-in.h: Check for PACKAGE or PACKAGE_VERSION before
complaining about config.h not having been included.
* bfd-in2.h: Regenerate.

12 years ago * ld-tic6x/mvk-reloc-local-r.d: Adjust for signed addend.
Alan Modra [Fri, 18 May 2012 05:55:23 +0000 (05:55 +0000)]
* ld-tic6x/mvk-reloc-local-r.d: Adjust for signed addend.
* ld-tic6x/unwind-6.d: Typo fix.

12 years ago * config/tc-dlx.c (s_proc): Avoid warning about ignoring asprintf
Alan Modra [Fri, 18 May 2012 05:48:50 +0000 (05:48 +0000)]
* config/tc-dlx.c (s_proc): Avoid warning about ignoring asprintf
return value.

12 years ago * config/tc-ppc.c: Don't capitalise error and warning messages.
Alan Modra [Fri, 18 May 2012 05:42:24 +0000 (05:42 +0000)]
* config/tc-ppc.c: Don't capitalise error and warning messages.
(md_parse_option): Add checks for -a32 -mvle.

12 years ago * config/obj-evax.c: Include as.h first.
Alan Modra [Fri, 18 May 2012 05:32:03 +0000 (05:32 +0000)]
* config/obj-evax.c: Include as.h first.

12 years ago * ia64-opc.c: Remove #include "ansidecl.h".
Alan Modra [Fri, 18 May 2012 05:31:15 +0000 (05:31 +0000)]
* ia64-opc.c: Remove #include "ansidecl.h".
* z8kgen.c: Include sysdep.h first.

12 years ago * ld-elf/init-mixed.c: Include config.h first.
Alan Modra [Fri, 18 May 2012 02:05:23 +0000 (02:05 +0000)]
* ld-elf/init-mixed.c: Include config.h first.

12 years ago * arc-dis.c: Include sysdep.h first, remove some redundant includes.
Alan Modra [Fri, 18 May 2012 01:59:38 +0000 (01:59 +0000)]
* arc-dis.c: Include sysdep.h first, remove some redundant includes.
* bfin-dis.c: Likewise.
* i860-dis.c: Likewise.
* ia64-dis.c: Likewise.
* ia64-gen.c: Likewise.
* m68hc11-dis.c: Likewise.
* mmix-dis.c: Likewise.
* msp430-dis.c: Likewise.
* or32-dis.c: Likewise.
* rl78-dis.c: Likewise.
* rx-dis.c: Likewise.
* tic4x-dis.c: Likewise.
* tilegx-opc.c: Likewise.
* tilepro-opc.c: Likewise.
* rx-decode.c: Regenerate.

12 years ago * ppc-opc.c (powerpc_macros): Add entries for e_extlwi to e_clrlslwi.
Alan Modra [Fri, 18 May 2012 00:39:28 +0000 (00:39 +0000)]
* ppc-opc.c (powerpc_macros): Add entries for e_extlwi to e_clrlslwi.

12 years ago * ppc-opc.c (extract_sprg): Use ALLOW8_SPRG to include VLE.
Alan Modra [Fri, 18 May 2012 00:30:47 +0000 (00:30 +0000)]
* ppc-opc.c (extract_sprg): Use ALLOW8_SPRG to include VLE.

12 years ago * info-macros.exp: Pass "debug" to prepare_for_testing.
Doug Evans [Fri, 18 May 2012 00:04:13 +0000 (00:04 +0000)]
* info-macros.exp: Pass "debug" to prepare_for_testing.

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

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

12 years agobfd/
Andreas Schwab [Thu, 17 May 2012 22:23:42 +0000 (22:23 +0000)]
bfd/
* aclocal.m4: Regenerate.
* Makefile.in: Regenerate.

binutils/
* aclocal.m4: Regenerate.
* configure: Regenerate.
* config.in: Regenerate.
* Makefile.in: Regenerate.

gas/
* aclocal.m4: Regenerate.
* configure: Regenerate.
* Makefile.in: Regenerate.

12 years ago * Makefile.in (clean): Remove Fission .dwo and .dwp files.
Doug Evans [Thu, 17 May 2012 19:03:59 +0000 (19:03 +0000)]
* Makefile.in (clean): Remove Fission .dwo and .dwp files.
* gdb.ada/Makefile.in (clean): Ditto.
* gdb.arch/Makefile.in (clean): Ditto.
* gdb.asm/Makefile.in (clean): Ditto.
* gdb.base/Makefile.in (clean): Ditto.
* gdb.cell/Makefile.in (clean): Ditto.
* gdb.cp/Makefile.in (clean): Ditto.
* gdb.disasm/Makefile.in (clean): Ditto.
* gdb.dwarf2/Makefile.in (clean): Ditto.
* gdb.fortran/Makefile.in (clean): Ditto.
* gdb.go/Makefile.in (clean): Ditto.
* gdb.hp/Makefile.in (clean): Ditto.
* gdb.hp/gdb.aCC/Makefile.in (clean): Ditto.
* gdb.hp/gdb.base-hp/Makefile.in (clean): Ditto.
* gdb.hp/gdb.compat/Makefile.in (clean): Ditto.
* gdb.hp/gdb.defects/Makefile.in (clean): Ditto.
* gdb.hp/gdb.objdbg/Makefile.in (clean): Ditto.
* gdb.java/Makefile.in (clean): Ditto.
* gdb.linespec/Makefile.in (clean): Ditto.
* gdb.mi/Makefile.in (clean): Ditto.
* gdb.modula2/Makefile.in (clean): Ditto.
* gdb.multi/Makefile.in (clean): Ditto.
* gdb.objc/Makefile.in (clean): Ditto.
* gdb.opencl/Makefile.in (clean): Ditto.
* gdb.opt/Makefile.in (clean): Ditto.
* gdb.pascal/Makefile.in (clean): Ditto.
* gdb.python/Makefile.in (clean): Ditto.
* gdb.reverse/Makefile.in (clean): Ditto.
* gdb.server/Makefile.in (clean): Ditto.
* gdb.stabs/Makefile.in (clean): Ditto.
* gdb.threads/Makefile.in (clean): Ditto.
* gdb.trace/Makefile.in (clean): Ditto.
* gdb.xml/Makefile.in (clean): Ditto.

12 years agoprocfs.c: Remove unused functions and make many functions static
Joel Brobecker [Thu, 17 May 2012 17:27:07 +0000 (17:27 +0000)]
procfs.c: Remove unused functions and make many functions static

gdb/ChangeLog:

        * procfs.c (procfs_find_new_threads, procfs_pid_to_str,
        proc_warn, proc_error, proc_get_status, proc_flags,
        proc_why, proc_what, proc_nsysarg, proc_sysargs,
        proc_set_run_on_last_close, proc_unset_run_on_last_close,
        proc_unset_inherit_on_fork, proc_set_async, proc_unset_async,
        proc_stop_process, proc_wait_for_stop, proc_run_process,
        proc_set_traced_signals, proc_set_traced_faults,
        proc_set_traced_sysentry, proc_set_traced_sysexit,
        proc_set_held_signals, proc_get_held_signals,
        proc_get_traced_signals, proc_get_traced_faults,
        proc_get_traced_sysentry, proc_get_traced_sysexit,
        proc_clear_current_fault, proc_set_current_signal,
        proc_clear_current_signal, proc_get_gregs, proc_get_fpregs,
        proc_set_gregs, proc_set_fpregs, proc_kill, proc_parent_pid,
        proc_get_nthreads, proc_get_nthreads, proc_get_nthreads,
        proc_get_current_thread, proc_get_current_thread,
        proc_get_current_thread, proc_update_threads,
        proc_update_threads, proc_update_threads, proc_update_threads,
        proc_iterate_over_threads, procfs_find_new_threads,
        procfs_pid_to_str): Make static.  Remove advance declaration.
        (proc_cursig): Make static.  Conditionalized defintion on
        PROCFS_DONT_PIOCSSIG_CURSIG being defined.
        (proc_syscall, proc_set_kill_on_last_close,
        proc_unset_kill_on_last_close, proc_set_inherit_on_fork,
        proc_get_pending_signals, proc_get_signal_actions,
        proc_trace_signal, proc_ignore_signal): Delete.

12 years agoExpect addend as signed
H.J. Lu [Thu, 17 May 2012 16:36:22 +0000 (16:36 +0000)]
Expect addend as signed

binutils/testsuite/

* binutils-all/hppa/objdump.exp: Expect addend as signed.

gas/testsuite/

* gas/all/weakref1.d: Expect addend as signed.
* gas/arm/pic_vxworks.d: Likewise.
* gas/arm/wince.d: Likewise.
* gas/h8300/h8300.exp: Likewise.
* gas/i386/sub.d: Likewise.
* gas/mips/ecoff@ld.d: Likewise.
* gas/mips/ecoff@sd.d: Likewise.
* gas/mips/l_d-n32.d: Likewise.
* gas/mips/l_d-n64.d: Likewise.
* gas/mips/l_d.d: Likewise.
* gas/mips/ld-n32.d: Likewise.
* gas/mips/ld-n64.d: Likewise.
* gas/mips/ld.d: Likewise.
* gas/mips/mips1@l_d.d: Likewise.
* gas/mips/mips1@ld-forward.d: Likewise.
* gas/mips/mips1@ld.d: Likewise.
* gas/mips/mips1@s_d.d: Likewise.
* gas/mips/s_d-n32.d: Likewise.
* gas/mips/s_d-n64.d: Likewise.
* gas/mips/s_d.d: Likewise.
* gas/mips/sd-n32.d: Likewise.
* gas/mips/sd-n64.d: Likewise.
* gas/mips/sd.d: Likewise.
* gas/mmix/bz-c.d: Likewise.
* gas/mmix/geta-c.d: Likewise.
* gas/mmix/jump-c.d: Likewise.
* gas/mmix/pushj-c.d: Likewise.
* gas/mmix/pushj-cs.d: Likewise.
* gas/mmix/reloc16-n.d: Likewise.
* gas/mmix/reloc16-r.d: Likewise.
* gas/mmix/reloc16.d: Likewise.
* gas/mmix/reloc8-r.d: Likewise.
* gas/mmix/reloc8.d: Likewise.
* gas/mmix/relocxrn.d: Likewise.
* gas/sh/sh64/case-1.d: Likewise.
* gas/sh/sh64/mix-1.d: Likewise.
* gas/sh/sh64/pt32-1.d: Likewise.
* gas/sh/sh64/pt64-1.d: Likewise.
* gas/sh/sh64/pt64-32-2.d: Likewise.
* gas/sh/sh64/rel32-2.d: Likewise.
* gas/sh/sh64/rel32-4.d: Likewise.
* gas/sh/sh64/rel64-2.d: Likewise.
* gas/sh/sh64/rel64-4.d: Likewise.
* gas/tic6x/data-reloc.d: Likewise.
* gas/tic6x/pcr-relocs.d: Likewise.
* gas/xstormy16/allinsn.d: Likewise.
* gas/xstormy16/reloc-1.d: Likewise.
* gas/xstormy16/reloc-2.d: Likewise.

ld/testsuite/

* ld-arm/emit-relocs1-vxworks.d: Expect addend as signed.
* ld-spu/pic.d: Likewise.

12 years ago PR 14072
Nick Clifton [Thu, 17 May 2012 15:13:28 +0000 (15:13 +0000)]
PR 14072
* configure.in: Add check that sysdep.h has been included before
any system header files.
* configure: Regenerate.
* config.in: Regenerate.
* sysdep.h: Generate an error if included before config.h.
* alpha-opc.c: Include sysdep.h before any other header file.
* alpha-dis.c: Likewise.
* avr-dis.c: Likewise.
* cgen-opc.c: Likewise.
* cr16-dis.c: Likewise.
* cris-dis.c: Likewise.
* crx-dis.c: Likewise.
* d10v-dis.c: Likewise.
* d10v-opc.c: Likewise.
* d30v-dis.c: Likewise.
* d30v-opc.c: Likewise.
* h8500-dis.c: Likewise.
* i370-dis.c: Likewise.
* i370-opc.c: Likewise.
* m10200-dis.c: Likewise.
* m10300-dis.c: Likewise.
* micromips-opc.c: Likewise.
* mips-opc.c: Likewise.
* mips61-opc.c: Likewise.
* moxie-dis.c: Likewise.
* or32-opc.c: Likewise.
* pj-dis.c: Likewise.
* ppc-dis.c: Likewise.
* ppc-opc.c: Likewise.
* s390-dis.c: Likewise.
* sh-dis.c: Likewise.
* sh64-dis.c: Likewise.
* sparc-dis.c: Likewise.
* sparc-opc.c: Likewise.
* spu-dis.c: Likewise.
* tic30-dis.c: Likewise.
* tic54x-dis.c: Likewise.
* tic80-dis.c: Likewise.
* tic80-opc.c: Likewise.
* tilegx-dis.c: Likewise.
* tilepro-dis.c: Likewise.
* v850-dis.c: Likewise.
* v850-opc.c: Likewise.
* vax-dis.c: Likewise.
* w65-dis.c: Likewise.
* xgate-dis.c: Likewise.
* xtensa-dis.c: Likewise.
* rl78-decode.opc: Likewise.
* rl78-decode.c: Regenerate.
* rx-decode.opc: Likewise.
* rx-decode.c: Regenerate.

* configure.in: Add check that sysdep.h has been included before
any system header files.
* configure: Regenerate.
* config.in: Regenerate.
* sysdep.h: Generate an error if included before config.h.

* configure.in: Add check that sysdep.h has been included before
any system header files.
* configure: Regenerate.
* config.in: Regenerate.
* aclocal.m4: Regenerate.
* bfd-in.h: Generate an error if included before config.h.
* sysdep.h: Likewise.
* bfd-in2.h: Regenerate.
* compress.c: Remove #include "config.h".
* plugin.c: Likewise.
* elf32-m68hc1x.c: Include sysdep.h before alloca-conf.h.
* elf64-hppa.c: Likewise.
* som.c: Likewise.
* xsymc.c: Likewise.

* configure.in: Add check that sysdep.h has been included before
any system header files.
* configure: Regenerate.
* config.in: Regenerate.

* configure.in: Add check that sysdep.h has been included before
any system header files.
* configure: Regenerate.
* config.in: Regenerate.
* aclocal.m4: Regenerate.
* Makefile.am: Use wrappers around C files generated by flex.
* Makefile.in: Regenerate.
* doc/Makefile.in: Regenerate.
* itbl-lex-wrapper.c: New file.
* config/bfin-lex-wrapper.c: New file.
* cgen.c: Include as.h before setjmp.h.
* config/tc-dlx.c: Include as.h before any other header.
* config/tc-h8300.c: Likewise.
* config/tc-lm32.c: Likewise.
* config/tc-mep.c: Likewise.
* config/tc-microblaze.c: Likewise.
* config/tc-mmix.c: Likewise.
* config/tc-msp430.c: Likewise.
* config/tc-or32.c: Likewise.
* config/tc-tic4x.c: Likewise.
* config/tc-tic54x.c: Likewise.
* config/tc-xtensa.c: Likewise.

* configure.in: Add check that sysdep.h has been included before
any system header files.
* configure: Regenerate.
* config.in: Regenerate.
* unwind-ia64.h: Include config.h.

12 years ago * lib/ld-lib.exp (run_dump_test): For options "warning" and
Hans-Peter Nilsson [Thu, 17 May 2012 12:06:55 +0000 (12:06 +0000)]
* lib/ld-lib.exp (run_dump_test): For options "warning" and
"error", append to earlier option values without adding a space.

12 years agotypo fixes
Alan Modra [Thu, 17 May 2012 10:42:29 +0000 (10:42 +0000)]
typo fixes

12 years agobinutils/
Alan Modra [Thu, 17 May 2012 10:00:37 +0000 (10:00 +0000)]
binutils/
* dwarf.c (process_debug_info): Display abbrev offset in hex.
(display_debug_abbrev): Show offset of abbrev.

binutils/testsuite/
* binutils-all/objdump.W: Update.
* binutils-all/readelf.wa: Update.
* binutils-all/i386/compressed-1a.d: Update.
* binutils-all/x86-64/compressed-1a.d: Update.

gas/testsuite/
* gas/elf/dwarf2-1.d: Update.
* gas/elf/dwarf2-2.d: Update.
* gas/i386/dw2-compress-1.d: Update.

12 years ago * dwarf.c (display_debug_ranges): Don't report more than one use
Alan Modra [Thu, 17 May 2012 07:19:35 +0000 (07:19 +0000)]
* dwarf.c (display_debug_ranges): Don't report more than one use
of the same range set as an overlap.

12 years ago * gas/ppc/vle.d: Pass -a32 to assembler.
Alan Modra [Thu, 17 May 2012 07:03:20 +0000 (07:03 +0000)]
* gas/ppc/vle.d: Pass -a32 to assembler.
* gas/ppc/vle-reloc.d: Likewise.
* gas/ppc/vle-simple-1.d: Likewise, also match wider addresses.
* gas/ppc/vle-simple-2.d: Likewise.
* gas/ppc/vle-simple-3.d: Likewise.
* gas/ppc/vle-simple-4.d: Likewise.
* gas/ppc/vle-simple-5.d: Likewise.
* gas/ppc/vle-simple-6.d: Likewise.

12 years ago * elf.c (ignore_section_sym): Correct comment. Don't return
Alan Modra [Thu, 17 May 2012 06:29:02 +0000 (06:29 +0000)]
* elf.c (ignore_section_sym): Correct comment.  Don't return
true for absolute section.
(elf_map_symbols): Move stray comment.  Adjust for above change.
Don't discard global section symbols.

12 years ago * ld-m68k/tls-ld-1.d: Update.
Alan Modra [Thu, 17 May 2012 06:13:32 +0000 (06:13 +0000)]
* ld-m68k/tls-ld-1.d: Update.

12 years agobfd/
Alan Modra [Thu, 17 May 2012 02:43:36 +0000 (02:43 +0000)]
bfd/
* elf32-ppc.c (ppc_elf_finish_dynamic_symbol): Don't make _DYNAMIC,
_GLOBAL_OFFSET_TABLE_ or _PROCEDURE_LINKAGE_TABLE_ absolute.
* elf64-ppc.c (ppc64_elf_finish_dynamic_symbol): Don't make _DYNAMIC
absolute.
ld/testsuite/
* ld-powerpc/tlsso.r: Update for dynamic sym changes.
* ld-powerpc/tlsso32.d: Likewise.
* ld-powerpc/tlsso32.r: Likewise.
* ld-powerpc/tlstocso.r: Likewise.

12 years agobfd/
Alan Modra [Thu, 17 May 2012 02:24:50 +0000 (02:24 +0000)]
bfd/
* elf32-ppc.c (has_tls_reloc, has_tls_get_addr_call, has_vle_insns,
is_ppc_vle): Move to..
* elf32-ppc.h: ..here, making is_ppc_vle a macro.
opcodes/
* ppc_dis.c: Don't include elf/ppc.h.

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

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

12 years ago2012-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
Sergio Durigan Junior [Wed, 16 May 2012 22:10:49 +0000 (22:10 +0000)]
2012-05-16  Sergio Durigan Junior  <sergiodj@redhat.com>

* coffread.c (cs_section_address): Passing proper argument for
`bfd_get_section_vma'.
* dwarf2read.c (dwarf2_locate_sections): Likewise, for
`bfd_get_section_flags'.
* remote.c (remote_trace_set_readonly_regions): Likewise, for
`bfd_get_section_vma'.

12 years ago PR macros/13205:
Tom Tromey [Wed, 16 May 2012 20:31:10 +0000 (20:31 +0000)]
PR macros/13205:
* macrotab.h: (macro_define_special): Declare.
(enum macro_special_kind): New.
(struct macro_definition) <argc, replacement>: Update comments.
* macrotab.c (new_macro_definition): Unconditionally set 'argc'.
(macro_define_object_internal): New function.
(macro_define_object): Use it.
(macro_define_special): New function.
(fixup_definition): New function.
(macro_lookup_definition, foreach_macro_in_scope)
(foreach_macro): Use fixup_definition.
* macroexp.h (macro_stringify): Declare.
* macroexp.c (free_buffer_return_text): New function.
(stringify): Constify "arg".
(macro_stringify): New function.
* dwarf2read.c (macro_start_file): Call macro_define_special.
testsuite
* gdb.base/macscp1.c (macscp_expr): Add comment.
* gdb.base/macscp.exp: Test __FILE__ and __LINE__.

12 years ago * ld-arm/gc-hidden-1.d: Fix disassembly pattern.
Hans-Peter Nilsson [Wed, 16 May 2012 19:54:08 +0000 (19:54 +0000)]
* ld-arm/gc-hidden-1.d: Fix disassembly pattern.

12 years agoFix one of my ChangeLog entries.
Joel Brobecker [Wed, 16 May 2012 17:57:58 +0000 (17:57 +0000)]
Fix one of my ChangeLog entries.

I copy/pasted the wrong text... This fixes it.

12 years ago * bfd-in.h (bfd_get_section_name, bfd_get_section_vma,
Nick Clifton [Wed, 16 May 2012 16:38:29 +0000 (16:38 +0000)]
* bfd-in.h (bfd_get_section_name, bfd_get_section_vma,
bfd_get_section_lma, bfd_get_section_alignment,
bfd_get_section_flags, bfd_get_section_userdata): Rewrite macros
in order to use the `bfd' argument.
* bfd-in2.h: Regenerate.
* elf-vxworks.c (elf_vxworks_finish_dynamic_entry): Pass proper `bfd'
as the first argument for `bfd_get_section_alignment'.
* elf32-arm.c (create_ifunc_sections): Likewise, for
`bfd_set_section_alignment'.
* elf32-m32r.c (m32r_elf_relocate_section): Likewise, for
`bfd_get_section_name'.
* elf32-microblaze.c (microblaze_elf_relocate_section): Likewise.
* elf32-ppc.c (ppc_elf_size_dynamic_sections): Likewise.
(ppc_elf_relocate_section): Likewise.
* elf64-mmix.c (mmix_final_link_relocate): Likewise, for
`bfd_get_section_vma'.
* elf64-ppc.c (create_linkage_sections): Likewise, for
`bfd_set_section_alignment'.

* emultempl/m68hc1xelf.em (hook_in_stub): Pass proper `bfd'
as the first argument for `bfd_get_section_name'.

* config/tc-alpha.c (maybe_set_gp): Pass proper `bfd'
as the first argument for `bfd_get_section_vma'.