aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2012-05-24gdb/Pedro Alves65-277/+301
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.
2012-05-242012-05-24 Pedro Alves <palves@redhat.com>Pedro Alves2-1/+17
PR tui/14159 * tui/tui-hooks.c (tui_query_hook): Pre-compute the question string, instead of reusing the va_list argument.
2012-05-24 * gas/lns/lns-big-delta.s: Add nops.Alan Modra3-3/+15
* gas/lns/lns-big-delta.d: Update.
2012-05-24 * cp-support.h (cp_finalize_namespace, cp_initialize_namespace):Tom Tromey2-5/+5
Remove.
2012-05-24 PR ld/14158Alan Modra2-3/+31
* 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.
2012-05-24 * symtab.c (search_symbols): Formatting fixes.Doug Evans2-71/+74
(print_symbol_info): Formatting fixes.
2012-05-24 * dwarf2-frame.c (execute_cfa_program): Update to handle long long ->Doug Evans5-44/+61
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.
2012-05-24 * leb128.h: #include stdint.h, inttypes.h.Doug Evans2-10/+30
(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.
2012-05-24ld/Cary Coutant6-15/+25
* 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.
2012-05-24gold/Cary Coutant2-3/+24
* 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.
2012-05-242012-05-23 Stan Shebs <stan@codesourcery.com>Stan Shebs12-3/+167
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.
2012-05-24 * symtab.c (search_symbols): Pass NULL for file_matcher toDoug Evans2-1/+6
expand_symtabs_matching if there are no files to match.
2012-05-24*** empty log message ***gdbadmin1-1/+1
2012-05-24daily updateAlan Modra1-1/+1
2012-05-23 * gdbtypes.c (lookup_typename): Simplify.Doug Evans2-17/+14
2012-05-23gold/Cary Coutant2-2/+7
* layout.cc (Layout::section_name_mapping): Match .data.rel.ro.* more carefully.
2012-05-23 * gdb.trace/stap-trace.exp: If compile_stap_bin fails,Keith Seitz2-3/+18
return -1 to suppress the rest of the tests. (compile_stap_bin): Return boolean success value.
2012-05-232012-05-23 Pedro Alves <palves@redhat.com>Pedro Alves6-42/+7
* 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.
2012-05-23 * elf-eh-frame.c (_bfd_elf_maybe_strip_eh_frame_hdr): HandleAlan Modra2-1/+10
BFDs with multiple .eh_frame sections.
2012-05-23 PR ld/13909Alan Modra2-3/+5
* elflink.c (bfd_elf_discard_info): Don't ignore dynamic BFDs.
2012-05-23*** empty log message ***gdbadmin1-1/+1
2012-05-22gold/Cary Coutant2-2/+8
* symtab.cc (Symbol::should_add_dynsym_entry): Check for relocatable object before exporting symbol.
2012-05-22 * linux-low.c (linux_store_registers): Avoid the copying sequenceMaciej W. Rozycki2-5/+13
when no data has been retrieved by ptrace.
2012-05-22Don't skip ld-elf/eh[1-4].d for x32H.J. Lu5-4/+7
* 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.
2012-05-22Adjust ld-x86-64/ilp32-11.s for NACLH.J. Lu3-1/+10
* ld-x86-64/ilp32-11.s Add ".space 0x1000" before func. (func): Make it global and hidden. * ld-x86-64/ilp32-11.d: Updated.
2012-05-22 * dwarf2-frame.c (struct dwarf2_cie): Make initial_instructions, endDoug Evans7-366/+530
"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.
2012-05-22ld/testsuite/Roland McGrath2-10/+10
* ld-elf/eh4.d: Revert last change. Loosen CFI-matching regexps so they match x86_64-*-nacl* variant too.
2012-05-22ld/testsuite/Roland McGrath4-5/+11
* 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.
2012-05-22 * mips-linux-nat.c (mips_linux_read_description): Use a moreMaciej W. Rozycki2-1/+6
verbose error message.
2012-05-22merge from gccDJ Delorie6-1/+146
2012-05-22 * NEWS: Add MIPS/Linux DSP support.Maciej W. Rozycki3-7/+124
* 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.
2012-05-22Skip/xfail x86_64-*-nacl* for eh4/pr12570a testsH.J. Lu3-1/+8
* ld-elf/eh4.d: Skip x86_64-*-nacl*. * ld-x86-64/x86-64.exp: Xfail pr12570a for x86_64-*-nacl*.
2012-05-22 * common/buffer.c (buffer_grow): ARI fix: Remove unneededPierre Muller2-2/+5
call to abort.
2012-05-22Revert the change for PR ld/r13909H.J. Lu9-27/+19
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.
2012-05-222012-05-22 Pedro Alves <palves@redhat.com>Pedro Alves8-28/+43
* 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.
2012-05-22 * elflink.c (bfd_elf_discard_info): Look for next .eh_frame ifAlan Modra3-50/+73
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.
2012-05-22Create PLT eh_frame section if there is .eh_frame sectionH.J. Lu9-3/+45
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.
2012-05-22Always create PLT eh_frame section for i386/x86-64H.J. Lu15-7/+116
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.
2012-05-222012-05-22 Will Deacon <will.deacon@arm.com>Matthew Gretton-Dann2-0/+13
* 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.
2012-05-22 * elflink.c (bfd_elf_discard_info): Handle multiple .eh_frameAlan Modra4-10/+50
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.
2012-05-22 * tracepoint.c (start_tracing): Add missing i18n markup.Pierre Muller2-5/+11
(stop_tracing, set_trace_user): Ditto. (set_trace_notes, set_trace_stop_notes): Ditto.
2012-05-22gas: mips: fix segfault with invalid default cpu stringsMike Frysinger2-1/+9
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>
2012-05-22daily updateAlan Modra1-1/+1
2012-05-22*** empty log message ***gdbadmin1-1/+1
2012-05-21 * linux-low.c (linux_store_registers): Don't re-retrieve dataMaciej W. Rozycki2-22/+43
with ptrace that has already been obtained from /proc. Always copy any data retrieved with ptrace to the buffer supplied.
2012-05-21 PR c++/7173:Tom Tromey9-109/+139
* 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.
2012-05-21 * gdb.base/callfuncs.exp (do_function_calls): Update for 'setTom Tromey2-1/+6
print symbol' change.
2012-05-21Include "config.h" firstH.J. Lu3-2/+7
* testsuite/tls_test.cc: Include "config.h" first. * testsuite/tls_test_c.c: Likewise.
2012-05-21 * macroexp.c (macro_stringify): Terminate the string.Tom Tromey2-0/+5
2012-05-21* elf32-m68k.c (elf_m68k_grok_prstatus): New function.Andreas Schwab2-0/+72
(elf_m68k_grok_psinfo): New function. (elf_backend_grok_prstatus): Define. (elf_backend_grok_psinfo): Define.