aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2011-10-13 PR gdb/12703Yao Qi2-12/+18
* arm-tdep.c (thumb_analyze_prologue): Call thumb_insn_size to check whether insn is a 32-bit Thumb-2 instruction. (thumb_in_function_epilogue_p): Likewise. (thumb_get_next_pc_raw): Likewise. (arm_breakpoint_from_pc): Likewise.
2011-10-13 * config/tc-arm.c (check_ldr_r15_aligned): New.Nick Clifton15-60/+424
(do_ldst): Warn in upredictable cases. (do_t_ldst): Likewise. (insns): Update accordingly. * gas/arm/ldr-bad.s: New testcase. * gas/arm/ldr-bad.l: Likewise. * gas/arm/ldr-bad.d: Likewise. * gas/arm/ldr.s: Likewise. * gas/arm/ldr.d: Likewise. * gas/arm/ldr-t-bad.s: Likewise. * gas/arm/ldr-t-bad.l: Likewise. * gas/arm/ldr-t-bad.d: Likewise. * gas/arm/ldr-t.s: Likewise. * gas/arm/ldr-t.d: Likewise. * gas/arm/sp-pc-usage-t.s: Correct. * gas/arm/sp-pc-usage-t.d: Update accordingly.
2011-10-13 * gold/output.cc (Output_file::open_base_file): Handle case whereCary Coutant2-11/+26
::read returns less than requested size.
2011-10-13 * pe-dll.c (generate_reloc): Don't emit a base reloc for anDave Korn2-0/+14
underlying BFD reloc that will be discarded in eh_frame data.
2011-10-13*** empty log message ***gdbadmin1-1/+1
2011-10-12daily updateAlan Modra1-1/+1
2011-10-12gdb/Jan Kratochvil7-21/+81
Fix empty DWARF expressions DATA vs. SIZE conditionals. * dwarf2loc.c (dwarf2_find_location_expression): Clear *LOCEXPR_LENGTH. (dwarf_expr_frame_base_1): Indicate unavailability via zero *LENGTH. (locexpr_tracepoint_var_ref): Check only zero SIZE, not zero DATA. (loclist_read_variable, loclist_tracepoint_var_ref): Do not check for zero DATA. * dwarf2loc.h (struct dwarf2_locexpr_baton): Comment DATA vs. SIZE validity. * dwarf2read.c (struct dwarf_block): Comment DATA validity. (dwarf2_fetch_die_location_block, dwarf2_symbol_mark_computed): Do not clear DATA on zero SIZE. gdb/testsuite/ Fix empty DWARF expressions DATA vs. SIZE conditionals. * gdb.dwarf2/dw2-op-call.S (arraycallnoloc, arraynoloc): New DIEs. (loclist): New. (4): New abbrev. * gdb.dwarf2/dw2-op-call.exp: Remove variable srcfile and executable. Use prepare_for_testing, remove clean_restart. (p arraynoloc, p arraycallnoloc): New tests.
2011-10-12 * as.c (main): Define .gasversion. rather than __GAS_VERSION__.Alan Modra7-8/+28
* frags.h (bss_address_frag): Delete (predefined_address_frag): New. * frags.c (frag_init): Init predefined_address_frag. Delete ref to bss_addres_frag. * symbols.c (S_CAN_BE_REDEFINED): New function. * symbols.h (S_CAN_BE_REDEFINED): Declare. * read.c (assign_symbol): Use S_CAN_BE_REDEFINED.
2011-10-12 * dwarf2read.c (partial_read_comp_unit_head): Set header->offset,Doug Evans2-16/+13
header->first_die_offset here. All callers updated.
2011-10-12gdb/Jan Kratochvil7-14/+167
Fix compatibility with texinfo versions older than 4.12. * Makefile.in (MAKEINFO): Set to @MAKEINFO@. (MAKEINFOFLAGS, MAKEINFO_EXTRA_FLAGS, MAKEINFO_CMD): New. (MAKEHTMLFLAGS): Use MAKEINFO_CMD. (FLAGS_TO_PASS): Add MAKEINFOFLAGS and MAKEINFO_EXTRA_FLAGS. * configure: Regenerate. * configure.ac (MAKEINFO): Find it, from libiberty/configure.ac. (MAKEINFOFLAGS): Pre-set it to --split-size=5000000. (MAKEINFO_EXTRA_FLAGS): New test for -DHAVE_MAKEINFO_CLICK. gdb/doc/ Fix compatibility with texinfo versions older than 4.12. * Makefile.in (MAKEINFO): Set to @MAKEINFO@. (MAKEINFOFLAGS, MAKEINFO_EXTRA_FLAGS, MAKEINFO_CMD): New. (MAKEHTMLFLAGS): Use MAKEINFO_CMD. (gdb.info, gdbint.info, stabs.info, annotate.info): Use MAKEINFO_CMD. * gdb.texinfo (Tail Call Frames): Convert @arrow{} to @click, when possible. Make the conversion conditional on HAVE_MAKEINFO_CLICK, using variables CALLSEQ1A, CALLSEQ1B, CALLSEQ2A and CALLSEQ2B.
2011-10-122011-10-12 Gary Benson <gbenson@redhat.com>Gary Benson4-1/+79
* breakpoint.h (pc_at_non_inline_function): Declare. * breakpoint.c (is_non_inline_function, pc_at_non_inline_function): New functions. * infrun.c (handle_inferior_event): Don't call skip_inline_frames if the stop is at a location where functions cannot be inlined.
2011-10-12Fix incomplete entry. Should have been:Pedro Alves1-0/+4
2011-10-12 Pedro Alves <pedro@codesourcery.com> * linux-nat.c (stop_and_resume_callback): Don't re-resume LWPs if the core wanted them stopped, or if they now have a pending event to report. (linux_nat_filter_event): New parameter `new_pending_p'. Pass it down to stop_and_resume_callback. (linux_nat_wait_1): Always clear `options' when retrying. Handle having new pending events after calling linux_nat_filter_event.
2011-10-122011-10-12 Pedro Alves <pedro@codesourcery.com>Pedro Alves2-13/+67
gdb/ * linux-nat.c (stop_and_resume_callback): Don't re-resume LWPs if the core wanted them stopped, or if they now have a pending event to report.
2011-10-12gdb/testsuite/Jan Kratochvil2-2/+9
* gdb.cp/namespace-enum.exp (executable): New variable. (binfile): Use ${objdir}/${subdir}/ prefix. Use ${executable} for clean_restart.
2011-10-12 * symbols.c (local_symbol_make): Make global.Alan Modra4-3/+12
* symbols.h (local_symbol_make): Declare. * as.c (main): Define __GAS_VERSION__.
2011-10-122011-05-11 Sterling Augustine <saugustine@google.com>Sterling Augustine2-2/+5
* complete.c (rl_completion_matches): Undo inadvertant checkin.
2011-10-12*** empty log message ***gdbadmin1-1/+1
2011-10-112011-10-11 Sterling Augustine <saugustine@google.com>Sterling Augustine3-48/+409
* dwarf2read.c: Undo inadvertent changes in previous commit.
2011-10-11daily updateAlan Modra1-1/+1
2011-10-11gdb/ChangeLogSterling Augustine7-410/+121
2011-10-11 Sterling Augustine <saugustine@google.com> * dwarf2read.c (partial_die_parent_scope): Rearrange conditional logic. gdb/testsuite/ChangeLog 2011-10-11 Sterling Augustine <saugustine@google.com> * gdb.cp/Makefile.in: Add namespace-enum test. * gdb.cp/namespace-enum.exp: New file. * gdb.cp/namespace-enum.c: New file. * gdb.cp/namespace-enum-main.c: New file.
2011-10-11Fix jit.exp on most 32-bit targets.David S. Miller6-3/+49
* gdbarch.sh: New field 'long_long_align_bit'. * gdbarch.c, gdbarch.h: Regenerate. * i386-tdep.c (i386_gdbarch_init): Set long_long_align_bit to 32. * jit.c (jit_read_code_entry): Use it to determine correct size offset.
2011-10-11 * gdb.python/py-shared.exp: Relax filename check to handle remote:Ulrich Weigand2-1/+6
sysroot.
2011-10-11 * symfile.c (separate_debug_file_exists): Fix condition.Ulrich Weigand2-1/+5
2011-10-11Fix regcache_restore() handling of unavailable regs.David S. Miller3-6/+10
* regcache.c (regcache_restore): Do not write unavailable regs, mark static. * regcache.h (regcache_restore): Remove declaration.
2011-10-11 PR binutils/13051Nick Clifton11-99/+333
Fix a syntax error bug when compiling rc files with the VERSIONINFO resource containing more than one language block inside a single StringFileInfo block. * windint.h (rc_ver_stringtable): New structure definition. (rc_ver_info): Use it. * rcparse.y (verstringtable): New variable. (verstringtables): New type. (verstringtables:): New rule declaration. (verblocks:): Use it. * resrc.c (append_ver_stringtable): New function. (append_ver_stringfileinfo): Update to use stringtables. * windres.h (append_ver_stringfileinfo): Update declaration. (append_ver_stringtable): New declaration. * resrc.c (write_rc_versioninfo): Update to support multiple blocks. * resbin.c (bin_to_res_version): Likewise. (res_to_bin_versioninfo): Likewise. * binutils-all\windres\version.rsd: Regenerate. * binutils-all\windres\version_cat.rsd: Regenerate. * binutils-all\windres\version_mlang.rc: Add new test. * binutils-all\windres\version_mlang.rsd: Likewise.
2011-10-11gdb/Jan Kratochvil5-18/+57
Revert this part of: 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com> Support @entry in input expressions. * c-exp.y (ENTRY, unknown_cpp_name): New. (exp: UNKNOWN_CPP_NAME): Change to `exp: unknown_cpp_name'. (unknown_cpp_name: UNKNOWN_CPP_NAME, unknown_cpp_name: ENTRY) (variable: name_not_typename '@' ENTRY, name: ENTRY) (name_not_typename: ENTRY): New. (yylex): Recognize ENTRY. Reimplement @entry in input expressions. * c-exp.y (ENTRY): New. (variable: name_not_typename ENTRY): New. (lex_one_token): Optionally return ENTRY instead of the '@' lex. gdb/testsuite/ Reimplement @entry in input expressions. * gdb.base/exprs.c (v_int_array_init): New variable. * gdb.base/exprs.exp (print v_int_array_init) (print *v_int_array_init@1, print *v_int_array_init@2) (print v_int_array_init[0]@1, print v_int_array_init[0]@2) (print v_int_array_init[1]@1): New tests.
2011-10-112011-10-11 Pedro Alves <pedro@codesourcery.com>Pedro Alves2-3/+13
* linux-nat.c (linux_handle_extended_wait): Always dump both the parent and child's pids as soon as we detect a clone event. Adjust another debug message.
2011-10-112011-10-11 Pedro Alves <pedro@codesourcery.com>Pedro Alves2-4/+13
gdb/ * linux-nat.c (linux_lwp_is_zombie): Return early if the LWP is not zombie instead of reading the whole file.
2011-10-11gdb/Jan Kratochvil3-14/+87
Fix separate debuginfo warning with "remote:" access. * objfiles.h (struct objfile): New fields crc32 and crc32_p. * symfile.c (get_file_crc): New function with the code moved from ... (separate_debug_file_exists): ... this function, specifically variables buffer and count. New variable verified_as_different, set it. Remove file_crc initialization. Verify also if both files are not the same manually, if needed.
2011-10-11 gdb/Yao Qi2-11/+15
* arm-tdep.c (arm_get_next_pc_raw): Use read_memory_unsigned_integer to get address.
2011-10-11 PR binutils/13278Alan Modra2-3/+11
* archive.c (bfd_generic_archive_p): Only check first element when target_defaulted. (_bfd_construct_extended_name_table): Use ar_maxnamelen. (_bfd_archive_bsd44_construct_extended_name_table): Likewise.
2011-10-11 PR binutils/13257Alan Modra2-2/+17
* archive.c (_bfd_find_nested_archive, _bfd_get_elt_at_filepos): Open thin archive element using container target if not defaulted.
2011-10-11 * linux-thread-db.c (thread_db_new_objfile): Only try to loadDoug Evans5-6/+50
libthread_db when we load libpthread or the main symbol file. (thread_db_inferior_created): New function. (_initialize_thread_db): Attach inferior_created observer. * linux-nat.c (linux_child_post_attach): Remove call to check_for_thread_db. (linux_child_post_startup_inferior): Ditto. * objfiles.h (OBJF_MAINLINE): Define. * symfile.c (symbol_file_add_with_addrs_or_offsets): Pass it to allocate_objfile when appropriate.
2011-10-11 * gdb.cp/gdb2495.exp: Do not include directories in filename inJoseph Myers2-1/+6
expected message.
2011-10-11*** empty log message ***gdbadmin1-1/+1
2011-10-10daily updateAlan Modra1-1/+1
2011-10-10merge from gccDJ Delorie3-0/+36
2011-10-10 PR gdb/13218Ulrich Weigand2-43/+8
* arm-linux-nat.c (os_version, os_major, os_minor, os_release): Remove unused variables. (get_linux_version): Remove function. (_initialize_arm_linux_nat): Do not call it.
2011-10-10 * gold/incremental.cc (Sized_relobj_incr::Sized_relobj_incr):Cary Coutant4-13/+66
Initialize defined_count_. (Sized_relobj_incr::do_add_symbols): Count defined symbols. (Sized_relobj_incr::do_get_global_symbol_counts): Rewrite. (Sized_incr_dynobj::Sized_incr_dynobj): Initialize defined_count_. (Sized_incr_dynobj::do_add_symbols): Count defined symbols. (Sized_incr_dynobj::do_get_global_symbol_counts): Rewrite. * gold/incremental.h (Sized_relobj_incr::defined_count_): New data member. (Sized_incr_dynobj::defined_count_): New data member. * gold/plugin.cc (Sized_pluginobj::do_get_global_symbol_counts): Return zeroes instead of internal error.
2011-10-10 PR gold/13249Cary Coutant6-47/+85
* gold/output.cc (Output_reloc::Output_reloc): Add use_plt_offset flag. (Output_reloc::symbol_value): Return PLT offset if flag is set. * gold/output.h (class Output_reloc): Add use_plt_offset flag. (Output_reloc::type_): Adjust size of bit field. (Output_reloc::use_plt_offset_): New bit field. (class Output_data_reloc): Adjust all calls to Output_reloc_type. (Output_data_reloc::add_local_relative): (RELA only) Add use_plt_offset flag. Adjust all callers. * gold/x86_64.cc (Target_x86_64::Scan::local): Check for IFUNC when creating RELATIVE relocations.
2011-10-102011-10-10 Pedro Alves <pedro@codesourcery.com>Pedro Alves2-24/+50
gdb/ * linux-nat.c (linux_handle_extended_wait): Don't resume the new new clone lwp if the core asked it to stop. Don't pass on unexpected signals to the new clone; leave them pending instead.
2011-10-10Updated Bulgarian, Spanish, Finnish, French, Russian and Ukranian translations.Nick Clifton30-17867/+24930
2011-10-102011-10-10 Pedro Alves <pedro@codesourcery.com>Pedro Alves2-4/+4
gdb/ * linux-nat.c (resume_lwp): Remove redundant debug output.
2011-10-102011-10-10 Pedro Alves <pedro@codesourcery.com>Pedro Alves2-3/+17
gdb/ * linux-nat.c (linux_nat_wait_1): Copy the event lwp's last_resume_kind before clearing it, and use the copy instead to determine whether to report a SIGSTOP as TARGET_SIGNAL_0. Use resume_clear_callback in the non-stop path too.
2011-10-10include/elf/Alan Modra4-6/+151
* ppc64.h (R_PPC64_TOCSAVE): Add. bfd/ * elf64-ppc.c (ppc64_elf_howto_table): Add R_PPC64_TOCSAVE entry. (struct ppc_link_hash_table): Add tocsave_htab. (struct tocsave_entry): New. (tocsave_htab_hash, tocsave_htab_eq, tocsave_find): New functions. (ppc64_elf_link_hash_table_create): Create tocsave_htab.. (ppc64_elf_link_hash_table_free): ..and delete it. (build_plt_stub): Always put STD_R2_40R1 first. (ppc64_elf_size_stubs): Check for R_PPC64_TOCSAVE following reloc on plt call. If present add prologue nop location to tocsave_htab. (ppc64_elf_relocate_section): Convert prologue nop to std. Skip first insn of plt call stub when R_PPC64_TOCSAVE present.
2011-10-10 * ldmain.c (main): Move code twiddling various config and link_infoAlan Modra4-79/+86
bits to.. * lexsup.c (parse_args): ..here. Move plugin_load_plugins call into main. * plugin.c (set_tv_header): Test link_info.executable, not link_info.shared. (is_visible_from_outside): Likewise. Delete redundant is_ir_dummy_bfd check and "section" parameter.
2011-10-10ld/Alan Modra10-21/+36
* emultempl/ppc64elf.em (ppc_add_stub_section): Align to 32 bytes. ld/testsuite/ * ld-powerpc/relbrlt.d: Update for stub alignment change. * ld-powerpc/tlsexe.g: Likewise. * ld-powerpc/tlsexe.r: Likewise. * ld-powerpc/tlsexetoc.g: Likewise. * ld-powerpc/tlsexetoc.r: Likewise. * ld-powerpc/tlsso.g: Likewise. * ld-powerpc/tlsso.r: Likewise.
2011-10-10gdb/Yao Qi2-6/+16
* valprint.c (value_check_printable): Add one parameter OPTIONS. Honor OPTIONS and VAL's type. (common_val_print, value_print): Update to pass one more parameter.
2011-10-10sim: dv-cfi: include stdbool.hMike Frysinger2-0/+5
The dv-cfi code uses the bool type but doesn't include the stdbool.h header. I didn't notice for Blackfin targets as the core Blackfin header will include stdbool.h, but most targets don't do this. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2011-10-10sim: dv-cfi: include common headers onlyMike Frysinger2-1/+6
The "devices.h" header is Blackfin-specific, so trying to build dv-cfi for any other target fails. Include the specific hw headers this file needs directly. Signed-off-by: Mike Frysinger <vapier@gentoo.org>