aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2012-07-24 * elf32-m68hc1x.c (elf32_m68hc11_relocate_section): Added codeNick Clifton2-5/+89
that enables the linker to offset addresses, when linking against symbols from the XGATE processor and vice versa.
2012-07-24gdb/Jan Kratochvil2-1/+6
* gdb_bfd.c (zlib_decompress_section) <!HAVE_ZLIB_H>: Adjust parameters to bfd_get_section_name.
2012-07-24 PR binutils/13135Nick Clifton10-59/+76
* arm-dis.c: Add necessary casts for printing integer values. Use %s when printing string values. * hppa-dis.c: Likewise. * m68k-dis.c: Likewise. * microblaze-dis.c: Likewise. * mips-dis.c: Likewise. * ppc-dis.c: Likewise. * sparc-dis.c: Likewise. * dis-asm.h (fprintf_ftype): Add ATTRIBUTE_FPTR_PRINTF_2.
2012-07-24gdb/Yao Qi2-12/+10
* cli/cli-setshow.c (do_setshow_command): Handle case 'var_uinteger' and 'var_zuninteger' together. Handle case 'var_integer' and 'var_zinteger' together.
2012-07-24daily updateAlan Modra1-1/+1
2012-07-24*** empty log message ***gdbadmin1-1/+1
2012-07-23 * linespec.c (convert_linespec_to_sal): Don't addKeith Seitz2-5/+11
any symbols to the result vector if symbol_to_sal returns zero.
2012-07-23 * linespec.c (decode_objc): Record the function nameKeith Seitz2-0/+6
in the linespec.
2012-07-23 * rs6000-nat.c (add_vmap): Rewrite archive loop. Fix referenceTom Tromey3-8/+25
counting. * exec.c (exec_close_1): Unconditionally release vmap's BFD. (map_vmap): Acquire a reference to the BFD.
2012-07-23 * p-valprint.c (pascal_object_print_value): Replace potentiallySiddhesh Poyarekar3-4/+20
unsafe alloca with xmalloc/xfree. * valops.c (search_struct_method): Likewise.
2012-07-23 * solib-svr4.c (enable_break): Update.Tom Tromey3-7/+16
* bfd-target.h (target_bfd_reopen): Update documentation.
2012-07-23 * symfile.c (separate_debug_file_exists): Update.Tom Tromey4-5/+14
(gdb_bfd_open_maybe_remote): Rename from bfd_open_maybe_remote. (reread_symbols): Update. * elfread.c (build_id_verify): Update. * symfile.h (gdb_bfd_open_maybe_remote): Rename from bfd_open_maybe_remote.
2012-07-23 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Fix comment.Tom Tromey2-2/+6
2012-07-23 * coffread.c (coff_symfile_read): Make a cleanup for 'debugfile'Tom Tromey11-20/+56
and 'abfd'. * elfread.c (elf_symfile_read): Make a cleanup for 'debugfile' and 'abfd'. * jit.c (jit_bfd_try_read_symtab): Make a cleanup for 'nbfd'. * machoread.c (macho_add_oso_symfile): Make a cleanup for 'abfd'. (macho_symfile_read): Make a cleanup for 'dsym_bfd'. * objfiles.c (allocate_objfile): Acquire a new reference. * rs6000-nat.c (add_vmap): Don't acquire a BFD reference. * solib.c (solib_read_symbols): Don't acquire a BFD reference. * spu-linux-nat.c (spu_symbol_file_add_from_memory): Make a cleanup for 'nbfd'. * symfile-mem.c (symbol_file_add_from_memory): Make a cleanup for 'nbfd'. * symfile.c (symbol_file_add_with_addrs_or_offsets): Don't make a cleanup for 'abfd'. (symbol_file_add): Make a BFD cleanup.
2012-07-23 * cli/cli-dump.c (bfd_openr_with_cleanup): Use gdb_bfd_openr.Tom Tromey23-106/+250
(bfd_openw_with_cleanup): Use gdb_bfd_openw. * corelow.c (core_open): Use gdb_bfd_fopen. * dsrec.c (load_srec): Use gdb_bfd_openr. * exec.c (exec_file_attach): Use gdb_bfd_fopen. * gcore.c (gcore_memory_sections): Use gdb_bfd_openw. * gdb_bfd.c (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw) (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file) (gdb_bfd_fdopenr): New functions. * gdb_bfd.h (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw) (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file) (gdb_bfd_fdopenr): Declare. * jit.c (bfd_open_from_target_memory): Use gdb_bfd_openr_iovec. * m32-rom.c (m32r_load, m32r_upload_command): Use gdb_bfd_openr. * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_openr, gdb_bfd_openr_next_archived_file. (macho_check_dsym): Use gdb_bfd_openr. (macho_add_oso_symfile): Don't call gdb_bfd_stash_filename. * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_fdopenr. * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_openr. * remote-mips.c (mips_load_srec, pmon_load_fast): Use gdb_bfd_openr. * remote.c (remote_bfd_open): Use gdb_bfd_openr_iovec. * rs6000-nat.c (add_vmap): Use gdb_bfd_openr, gdb_bfd_fdopenr, gdb_bfd_openr_next_archived_file. * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init): Use gdb_bfd_openr. * solib-pa64.c (pa64_solib_create_inferior_hook): Use gdb_bfd_openr. * solib-spu.c (spu_bfd_fopen): Use gdb_bfd_openr_iovec. * solib.c (solib_bfd_fopen): Use gdb_bfd_fopen. * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_openr_iovec. * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_openr. (symfile_bfd_open): Use gdb_bfd_fopen. (generic_load): Use gdb_bfd_openr. * windows-nat.c (windows_make_so): Use gdb_bfd_openr.
2012-07-23 * bfd-target.c (target_bfd_reopen): Update.Tom Tromey23-62/+126
* cli/cli-dump.c (bfd_openr_with_cleanup) (bfd_openw_with_cleanup): Update. * corelow.c (core_open): Update. * dsrec.c (load_srec): Update. * exec.c (exec_file_attach): Update. * gcore.c (create_gcore_bfd): Update. * gdb_bfd.c (gdb_bfd_ref): Return void. (gdb_bfd_open): Update. * gdb_bfd.h (gdb_bfd_ref): Return void. Update comments. * jit.c (jit_bfd_try_read_symtab): Update. * m32r-rom.c (m32r_load, m32r_upload_command): Update. * machoread.c (macho_symfile_read_all_oso): Update. (macho_check_dsym): Update. * procfs.c (insert_dbx_link_bpt_in_file): Update. * remote-m32r-sdi.c (m32r_load): Update. * remote-mips.c (mips_load_srec, pmon_load_fast): Update. * rs6000-nat.c (add_vmap): Update. * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init): Update. * solib-pa64.c (pa64_solib_create_inferior_hook): Update. * solib-spu.c (spu_bfd_open): Update. * solib.c (solib_bfd_fopen, solib_read_symbols): Update. * spu-linux-nat.c (spu_bfd_open): Update. * symfile.c (bfd_open_maybe_remote, symfile_bfd_open) (generic_load): Update. * windows-nat.c (windows_make_so): Update.
2012-07-23 * cisco-core.c (cisco_core_file_failing_command): Make static.Nick Clifton2-2/+7
(cisco_core_file_failing_signal): Make static.
2012-07-23daily updateAlan Modra1-1/+1
2012-07-23*** empty log message ***gdbadmin1-1/+1
2012-07-22 * sh-tdep.c (sh_treat_as_flt_p): Remove unused variable LEN.Siddhesh Poyarekar2-2/+4
2012-07-22daily updateAlan Modra1-1/+1
2012-07-22*** empty log message ***gdbadmin1-1/+1
2012-07-21daily updateAlan Modra1-1/+1
2012-07-21*** empty log message ***gdbadmin1-1/+1
2012-07-202012-07-20 Jeff Kenton <jkenton@tilera.com>Pedro Alves2-2/+17
* tilegx-linux-tdep.c (tilegx_linux_sigframe_init): Fix SIGTRAMP_FRAME unwinding.
2012-07-20 * NEWS: Document new options "set/show use-deprecated-index-sections",Doug Evans7-23/+71
and delete reference to --use-deprecated-index-sections. * symfile.h (use_deprecated_index_sections): Delete. * dwarf2read.c (use_deprecated_index_sections): Make static. (read_index_from_section): Update wording of how to load deprecated index sections. (_initialize_dwarf2_read): New options "set/show use-deprecated-index-sections". * main.c (captured_main): Delete --use-deprecated-index-sections. doc/ * gdb.texinfo (Mode Options): Delete --use-deprecated-index-sections. (Index Files): Document how to control the use of deprecated index sections. (Index Section Format): Replace --use-deprecated-index-sections with "set use-deprecated-index-sections on".
2012-07-202012-07-20 Pedro Alves <palves@redhat.com>Pedro Alves6-40/+208
PR threads/11692 PR gdb/12203 gdb/ * infrun.c (handle_inferior_event) <new thread>: Don't special case minus_one_ptid. <TARGET_WAITKIND_SPURIOUS>: Ditto. * linux-thread-db.c (thread_get_info_callback): Don't return early if the thread is zombie. (thread_from_lwp): Change return type to void. Rewrite stale comment. (attach_thread): Don't return early if the thread is zombie, instead set its "dying" flag. (thread_db_wait): Don't return TARGET_WAITKIND_SPURIOUS anymore. (find_new_threads_callback): Don't return early if the thread is zombie. gdb/testsuite/ * gdb.threads/create-fail.c: New file. * gdb.threads/create-fail.exp: New file.
2012-07-202012-07-20 Pedro Alves <palves@redhat.com>Pedro Alves4-5/+77
* linux-nat.c (linux_nat_wait): Dump the passed in target options. * target.c (target_wait): Likewise. (str_comma_list_concat_elem, do_option, target_options_to_string): New functions. * target.h (target_options_to_string): Declare.
2012-07-202012-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>Tom Tromey2-1/+14
Tom Tromey <tromey@redhat.com> * dwarf2read.c (dwarf_decode_macros) <DW_MACRO_GNU_define_indirect_alt, DW_MACRO_GNU_undef_indirect_alt, DW_MACRO_GNU_transparent_include_alt>: New cases. (dwarf_decode_macro_bytes) <DW_MACRO_GNU_define_indirect, DW_MACRO_GNU_undef_indirect>: Examine 'section_is_dwz'.
2012-07-20 * dwarf2read.c (try_open_dwo_file): Don't callTom Tromey2-1/+5
gdb_bfd_stash_filename.
2012-07-202012-07-20 Pedro Alves <palves@redhat.com>Pedro Alves2-16/+21
* i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr) (i386_record_lea_modrm, i386_record_push, i386_record_floats) (i386_process_record): Tweak description comments.
2012-07-202012-07-20 Pedro Alves <palves@redhat.com>Pedro Alves4-149/+68
* i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr) (i386_process_record): Use record_read_memory. * record.c (record_read_memory): New function. (record_arch_list_add_mem, record_exec_insn): Use record_read_memory. * record.h (record_read_memory): Declare.
2012-07-20gdb/Yao Qi2-6/+8
* cli/cli-setshow.c (do_setshow_command): Don't check pointer is NULL for xfree.
2012-07-20*** empty log message ***gdbadmin1-1/+1
2012-07-20daily updateAlan Modra1-1/+1
2012-07-192012-07-19 Pedro Alves <palves@redhat.com>Pedro Alves8-40/+20
* config/monitor.exp (gdb_load): Remove redundant ';' in for loop. * config/vx.exp (gdb_start): Likewise. * gdb.base/printcmds.exp (test_print_repeats_10): Likewise. * gdb.base/setvar.exp (test_set): Likewise. * gdb.base/sigall.exp: Use foreach+lrange instead of for+continue. * gdb.reverse/sigall-precsave.exp: Likewise. * gdb.reverse/sigall-reverse.exp: Likewise.
2012-07-192012-07-19 Michael Eager <eager@eagercon.com>Michael Eager3-8/+22
* i386-low.c (Z_packet_to_hw_type): Add Z_PACKET_HW_BP, translate to hw_execute. * linux-x86-low.c (x86_insert_point, x86_remove_point): Call i386_low_insert_watchpoint, i386_low_remove_watchpoint to add/del hardware breakpoint.
2012-07-192012-07-19 Pedro Alves <palves@redhat.com>Pedro Alves2-0/+8
* record.c (record_resume): Ask the target beneath to report all signals.
2012-07-192012-07-19 Pedro Alves <palves@redhat.com>Pedro Alves2-1/+31
* gdb.reverse/sigall-precsave.exp: Set a breakpoint at each signal handler before recording.
2012-07-19 * dwarf2read.c (dwarf2_ranges_read): Ignore ranges starting at zero ifDoug Evans2-3/+31
there's no section at address zero. (dwarf2_record_block_ranges): Ditto.
2012-07-19gdb/Yao Qi3-2/+6
* command.h, remote.c: Fix a typo in comment.
2012-07-19 PR exp/13206:Tom Tromey12-2/+140
* ax-gdb.c (gen_expr) <OP_TYPEOF, OP_DECLTYPE>: New cases. * breakpoint.c (watchpoint_exp_is_const) <OP_TYPEOF, OP_DECLTYPE>: New cases. * c-exp.y (TYPEOF, DECLTYPE): New tokens. (type_exp): Add new productions. (ident_tokens): Add __typeof__, typeof, __typeof, __decltype, and decltype. * eval.c (evaluate_subexp_standard) <OP_TYPEOF, OP_DECLTYPE>: New case. * expprint.c (dump_subexp_body_standard) <OP_TYPEOF, OP_DECLTYPE>: New case. * parse.c (operator_length_standard) <OP_TYPEOF, OP_DECLTYPE>: New case. * std-operator.def (OP_TYPEOF, OP_DECLTYPE): New constants. * varobj.c (varobj_create): Handle OP_TYPEOF, OP_DECLTYPE. gdb/testsuite * gdb.cp/casts.exp: Add tests for typeof and decltype. * gdb.cp/casts.cc (decltype): New function. (main): Use it.
2012-07-19 * c-exp.y (enum token_flags): New.Tom Tromey2-30/+69
(struct token) <cxx_only>: Remove. <flags>: New field. (tokentab3, tokentab2, ident_tokens): Update. (lex_one_token): Update. Handle FLAG_SHADOW.
2012-07-19 * ax-gdb.c (gen_expr): Handle UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE.Tom Tromey9-37/+178
* breakpoint.c (watchpoint_exp_is_const): Handle UNOP_CAST_TYPE, UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST. * c-exp.y (exp): Emit UNOP_MEMVAL_TYPE, UNOP_CAST_TYPE. Update for changes to UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST. Use type_exp production where appropriate. * eval.c (evaluate_subexp_standard) <UNOP_CAST_TYPE>: New case. <UNOP_DYNAMIC_CAST, UNOP_REINTERPRET_CAST>: Update. <UNOP_MEMVAL_TYPE>: New case. (evaluate_subexp_for_address) <UNOP_MEMVAL_TYPE>: New case. (evaluate_subexp_for_sizeof) <UNOP_MEMVAL_TYPE>: New case. * expprint.c (print_subexp_standard) <UNOP_CAST_TYPE>: New case. <UNOP_MEMVAL_TYPE>: New case. (dump_subexp_body_standard) <UNOP_DYNAMIC_CAST, UNOP_REINTERPRET_CAST>: Update. <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases. * parse.c (operator_length_standard) <UNOP_DYNAMIC_CAST, UNOP_REINTERPRET_CAST>: Update. <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases. * stack.c (return_command): Also check for UNOP_CAST_TYPE. * std-operator.def (UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE): New constants.
2012-07-192012-07-19 Pedro Alves <palves@redhat.com>Pedro Alves4-504/+305
* gdb.base/sigall.exp (signals): New list. <top level>: Loop over signals in the $signals list instead of calling a test function once per signal. * gdb.reverse/sigall-precsave.exp (signals): New list. <top level>: Loop over signals in the $signals list instead of calling a test function once per signal. * gdb.reverse/sigall-reverse.exp (signals): New list. <top level>: Loop over signals in the $signals list instead of calling a test function once per signal.
2012-07-19Use vex_len_table in xop_tableH.J. Lu2-8/+74
PR binutils/14355 * i386-dis.c (VEX_LEN_0FXOP_08_CC): New. (VEX_LEN_0FXOP_08_CD): Likewise. (VEX_LEN_0FXOP_08_CE): Likewise. (VEX_LEN_0FXOP_08_CF): Likewise. (VEX_LEN_0FXOP_08_EC): Likewise. (VEX_LEN_0FXOP_08_ED): Likewise. (VEX_LEN_0FXOP_08_EE): Likewise. (VEX_LEN_0FXOP_08_EF): Likewise. (xop_table): Fix entries for vpcomb, vpcomw, vpcomd, vpcomq, vpcomub, vpcomuw, vpcomud, vpcomuq. (vex_len_table): Add entries for VEX_LEN_0FXOP_08_CC, VEX_LEN_0FXOP_08_CD, VEX_LEN_0FXOP_08_CE, VEX_LEN_0FXOP_08_CF, VEX_LEN_0FXOP_08_EC, VEX_LEN_0FXOP_08_ED, VEX_LEN_0FXOP_08_EE, VEX_LEN_0FXOP_08_EF.
2012-07-19 * cli/cli-setshow.c (do_setshow_command): Handle case 'var_filename'Yao Qi5-20/+42
and case 'var_optional_filename' together. * infcmd.c (_initialize_infcmd): Call add_setshow_string_noescape_cmd instead of add_setshow_optional_filename_cmd for setshow command 'args'. Set completer for 'set args'. gdb/testsuite: * gdb.base/setshow.exp: Test 'set args ~'.
2012-07-192012-07-18 Cary Coutant <ccoutant@google.com>Cary Coutant10-180/+257
PR gold/14344 * configure.ac: Add check for -gpubnames support. * configure: Regenerate. * testsuite/Makefile.am (gdb_index_test_1): Add check for -gpubnames support; force -gno-pubnames. (gdb_index_test_2, gdb_index_test_3): Add check for -gpubnames support. (gdb_index_test_4): New test. * testsuite/Makefile.in: Regenerate. * testsuite/gdb_index_test_1.sh: Refactor code into common file. * testsuite/gdb_index_test_2.sh: Likewise. * testsuite/gdb_index_test_3.sh: Don't look for space after colon. * testsuite/gdb_index_test_4.sh: New script. * testsuite/gdb_index_test_comm.sh: New script with common code; don't look for space after colon.
2012-07-19daily updateAlan Modra1-1/+1
2012-07-19*** empty log message ***gdbadmin1-1/+1