aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2009-09-222009-09-22 Ozkan Sezer <sezeroz@gmail.com>Kai Tietz2-0/+8
* choose-temp.c: Include unistd.h for mingw targets.
2009-09-22 * main.c: Fix spelling error.Joel Brobecker2-1/+5
2009-09-22 * MAINTAINERS: Add myself under Write After Approval.Jie Zhang2-0/+5
2009-09-22 * gas/ppc/a2.d: Match PPC64 relocs.Alan Modra2-16/+20
2009-09-22o * ppc.h (ppc_cpu_t): Typedef to uint64_t.Alan Modra2-1/+7
2009-09-22Delete unused scripts.Alan Modra6-201/+8
2009-09-22daily updateAlan Modra1-1/+1
2009-09-22*** empty log message ***gdbadmin1-1/+1
2009-09-21 * windows-nat.c (ctrl_c_handler): Also handle CTRL_BREAK_EVENT.Pierre Muller2-2/+6
2009-09-212009-09-21 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu2-10/+14
* config/tc-i386.c: Remove white spaces.
2009-09-21Require c++ in stage1_languages with --enable-gold in combined bootstrap.Ralf Wildenhues3-0/+18
/: * configure.ac: If bootstrapping a combined tree with --enable-gold, require c++ in stage1_languages. * configure: Regenerate.
2009-09-21toplevel configure: bootstrap target_libs of stage1_languages.Ralf Wildenhues3-6/+16
/: * configure.ac: Also add target_libs of stage1_languages to bootstrap_target_libs. * configure: Regenerate.
2009-09-21 * cp-support.h (cp_validate_operator): Declare new function.Keith Seitz4-12/+139
* cp-support.c (cp_validate_operator): New function. * linespec.c (decode_compound): For C++ check for a valid operator.
2009-09-21 * gdb.cp/cplusfuncs.exp (do_tests): Add check for proper error messageKeith Seitz2-0/+10
with invalid operator.
2009-09-21Diagnose --enable-build-with-cxx --enable-bootstrap --enable-languages w/o c++Ralf Wildenhues3-0/+20
/: * configure.ac: Diagnose --enable-build-with-cxx bootstrap with --enable-languages not containing c++. * configure: Regenerate.
2009-09-21 * c-exp.y (qualified_name): Call CHECK_TYPEDEF before decidingKeith Seitz2-0/+7
that a type is not an aggregate type.
2009-09-21 * gdb.cp/classes.exp (do_tests): Add tests to print a constructorKeith Seitz5-0/+36
and destructor using typedef name of class. * gdb.cp/classes.cc (class Base1): Add a destructor. (base1): New typedef. (use_methods): Instanitate an object of type base1. * gdb.cp/templates.exp (test_template_typedef): New procedure. (do_tests): Call test_template_typedef. * gdb.cp/templates.cc (Baz::~Baz): New method. (intBazOne): New typedef. (main): Instantiate intBazOne.
2009-09-21ld/testsuite/Richard Sandiford2-1/+7
PR ld/10681 * ld-elf/eh6.d: Expect absolute pointers in shared libraries to be converted into PC-relative form.
2009-09-21bfd/Richard Sandiford4-21/+32
* elf-eh-frame.c (_bfd_elf_write_section_eh_frame): Extend previous patch to handle the new personality relaxation. ld/testsuite/ * ld-mips-elf/eh-frame5.d: Expect PC-relative encodings to include DW_EH_PE_sdata4.
2009-09-21bfd/Richard Sandiford7-15/+51
* elf-eh-frame.c (make_pc_relative): New function. (_bfd_elf_write_section_eh_frame): Use it. ld/testsuite/ * ld-mips-elf/eh-frame1-n32.d: Expect PC-relative encodings to include DW_EH_PE_sdata4. * ld-mips-elf/eh-frame2-n32.d: Likewise. * ld-mips-elf/eh-frame1-n64.d: Expect PC-relative encodings to include DW_EH_PE_sdata8. * ld-mips-elf/eh-frame2-n64.d: Likewise.
2009-09-212009-09-21 Jason Orendorff <jason.orendorff@gmail.com>Tom Tromey2-2/+6
PR python/10666: * python/py-function.c (fnpy_init): Use xstrdup.
2009-09-21 * lib/gas-defs.exp (gas_test_error): Mark internal error/assertionMaciej W. Rozycki2-7/+13
failures seen in output as fails. Also record output being matched for fails.
2009-09-21 * gas/mips/eret-1.d: Adjust regexps for robustness.Maciej W. Rozycki6-65/+75
* gas/mips/eret-2.d: Likewise. * gas/mips/eret-3.d: Likewise. * gas/mips/eret-1.s: Reformat for readability. Add a label at the beginning. * gas/mips/eret-2.s: Add a label at the beginning.
2009-09-21 * gas/mips/eret-1.s: Add trailing padding.Maciej W. Rozycki7-3/+25
* gas/mips/eret-2.s: Likewise. * gas/mips/eret-3.s: Likewise. * gas/mips/eret-1.d: Adjust accordingly. Force a 32-bit ABI. * gas/mips/eret-2.d: Likewise. * gas/mips/eret-3.d: Likewise.
2009-09-21 * gas/mips/mips.exp: Fix a typo.Maciej W. Rozycki2-1/+5
2009-09-21 * doc/gdb.texinfo: Escape "{" and "}".Jie Zhang2-1/+5
2009-09-21include/elf/Alan Modra27-65/+475
* ppc.h (DT_PPC_TLSOPT): Define. * ppc64.h (DT_PPC64_TLSOPT): Define. bfd/ * elf32-ppc.c (TLS_GET_ADDR_GLINK_SIZE): Define. (ADD_3_12_2, BEQLR, CMPWI_11_0, LWZ_11_3, LWZ_12_3): Define. (MR_0_3, MR_3_0): Define. (struct ppc_elf_link_hash_table): Add no_tls_get_addr_opt. (ppc_elf_select_plt_layout): Save emit_stub_syms param earlier. (ppc_elf_tls_setup): Add no_tls_get_addr_opt param and save to hash table. Check for presense of __tls_get_addr_opt (allocate_dynrelocs): Increase glink entry size for __tls_get_addr. (ppc_elf_size_dynamic_sections): Add DT_PPC_TLS_OPT tag. (write_glink_stub): Add param p. (ppc_elf_relocate_section): Adjust write_glink_stub call. (ppc_elf_finish_dynamic_symbol): Emit special glink call stub for __tls_get_addr. * elf32-ppc.h (ppc_elf_tls_setup): Update prototype. * elf64-ppc.c (struct ppc_link_hash_table): Add no_tls_get_addr_opt. (ppc64_elf_tls_setup): Add no_tls_get_addr_opt param and save to hash table. Check for presense of __tls_get_addr_opt. (ppc64_elf_size_dynamic_sections): Add DT_PPC64_TLS_OPT tag. (LD_R11_0R3, LD_R12_0R3, MR_R0_R3, CMPDI_R11_0, ADD_R3_R12_R13, BEQLR, MR_R3_R0, MFLR_R11, STD_R11_0R1, BCTRL, LD_R11_0R1, LD_R2_0R1, MTLR_R11): Define. (build_tls_get_addr_stub): New function. (ppc_build_one_stub): Call it. (ppc_size_one_stub): Add extra size for __tls_get_addr stub. (ppc64_elf_relocate_section): Don't change nop to ld 2,40(1) for __tls_get_addr plt call. * elf64-ppc.h (ppc64_elf_tls_setup): Update prototype. binutils/ * readelf.c (get_ppc_dynamic_type): Add TLSOPT. (get_ppc64_dynamic_type): Likewise. ld/ * emultempl/ppc32elf.em (no_tls_get_addr_opt): New var. (ppc_before_allocation): Pass to ppc_elf_tls_setup. (OPTION_NO_TLS_GET_ADDR_OPT): Define. Redefine other options in terms of previous option. (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add --no-tls-get-addr-optimize. (PARSE_AND_LIST_ARGS_CASES): Handle it. * emultempl/ppc64elf.em (no_tls_get_addr_opt): New var. (ppc_before_allocation): Pass to ppc64_elf_tls_setup. (OPTION_NO_TLS_GET_ADDR_OPT): Define. (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add --no-tls-get-addr-optimize. (PARSE_AND_LIST_ARGS_CASES): Handle it. ld/testsuite/ * ld-powerpc/tlslib.s: Delete dot-symbol entry syms. Add __tls_get_addr_opt. * ld-powerpc/tlslib32.s: Add __tls_get_addr_opt. * ld-powerpc/oldtlslib.s: New file, old-abi version of tlslib.s. * ld-powerpc/powerpc.exp: Build old-abi library and use it in two new link tests. * ld-powerpc/tlsexe.d: Update for new __tls_get_addr stub. * ld-powerpc/tlsexe.g, * ld-powerpc/tlsexe.r, *ld-powerpc/tlsexe32.d, * ld-powerpc/tlsexe32.g, * ld-powerpc/tlsexe32.r, * ld-powerpc/tlsexetoc.d, * ld-powerpc/tlsexetoc.g, * ld-powerpc/tlsexetoc.r: Likewise.
2009-09-21gas/Ben Elliston12-85/+1301
* config/tc-ppc.c (md_show_usage): Document -mpcca2. * doc/c-ppc.texi (PowerPC-Opts): Document -mppca2. gas/testsuite/ * gas/ppc/a2.s: New. * gas/ppc/a2.d: Likewise. * gas/ppc/ppc.exp: Run the a2 dump test. include/opcode/ * ppc.h (PPC_OPCODE_PPCA2): New. opcodes/ * ppc-dis.c (ppc_opts): Add "ppca2" entry. * ppc-opc.c (powerpc_opcodes): Add eratilx, eratsx, eratsx., eratre, wchkall, eratwe, ldawx., mdfcrx., mfdcr. mtdcrx., icswx, icswx., mtdcr., dci, wclrone, wclrall, wclr, erativax, tlbsrx., ici mnemonics. (ERAT_T): New operand. (XWC_MASK): New mask. (XOPL2): New macro. (PPCA2): Define.
2009-09-212009-09-21 Phil Muldoon <pmuldoon@redhat.com>Phil Muldoon4-1/+32
PR python/10633 * c-lang.c (c_printstr): Do not loop past options->print_max when iterating with wchar_iterate. 2009-09-21 Phil Muldoon <pmuldoon@redhat.com> PR python/10633 * gdb.python/py-prettyprint.exp (gdb_py_test_silent_cmd): New Function. (run_lang_tests): Add print elements test.
2009-09-212009-09-21 Phil Muldoon <pmuldoon@redhat.com>Phil Muldoon5-1/+113
* python/py-value.c (valpy_getitem): Test value before allowing subscript operation. 2009-09-21 Phil Muldoon <pmuldoon@redhat.com> * gdb.python/py-value.exp (test_subscript_regression): New function. Test for invalid subscripts. * gdb.python/py-value.c (main): Add test array, and pointer to it. (ptr_ref): New function.
2009-09-212009-09-21 Hui Zhu <teawater@gmail.com>Hui Zhu2-26/+133
Michael Snyder <msnyder@vmware.com> * amd64-linux-tdep.c (amd64_all_but_ip_registers_record): New function. (amd64_linux_syscall_record): Call amd64_all_but_ip_registers_record if syscall is sys_rt_sigreturn. (AMD64_LINUX_redzone, AMD64_LINUX_xstate, AMD64_LINUX_frame_size): New macros. (amd64_linux_record_signal): New function. (amd64_linux_init_abi): Call set_gdbarch_process_record_signal.
2009-09-212009-09-21 Hui Zhu <teawater@gmail.com>Hui Zhu2-1/+83
Michael Snyder <msnyder@vmware.com> * i386-linux-tdep.c (i386_all_but_ip_registers_record): New function. (i386_linux_intx80_sysenter_record): Call i386_all_but_ip_registers_record if syscall is sys_sigreturn or sys_rt_sigreturn. (I386_LINUX_xstate, I386_LINUX_frame_size): New macros. (i386_linux_record_signal): New function. (i386_linux_init_abi): Call set_gdbarch_process_record_signal.
2009-09-212009-09-21 Hui Zhu <teawater@gmail.com>Hui Zhu2-13/+93
Michael Snyder <msnyder@vmware.com> * record.c (record_end_entry): New struct. (record_type): Add end. (record_arch_list_add_end): Set rec->u.end.sigval to TARGET_SIGNAL_0. (record_message_args): New struct. (record_message): Call gdbarch_process_record_signal. (do_record_message): Add argument "signal". (record_resume): Ditto. (record_wait): Ditto. Check record_list->u.end.sigval in replay mode.
2009-09-212009-09-21 Hui Zhu <teawater@gmail.com>Hui Zhu4-0/+51
Michael Snyder <msnyder@vmware.com> * gdbarch.sh (process_record_signal): New interface.
2009-09-21 * gas/ppc/e500mc.d: Remove blank line at the end of file.Ben Elliston2-1/+4
2009-09-21daily updateAlan Modra1-1/+1
2009-09-21*** empty log message ***gdbadmin1-1/+1
2009-09-20ld/testsuite/Richard Sandiford3-8/+13
* ld-mips-elf/elf-rel-got-n64-linux.d: Expect BALs. * ld-mips-elf/elf-rel-xgot-n64-linux.d: Likewise.
2009-09-20*** empty log message ***gdbadmin1-1/+1
2009-09-20daily updateAlan Modra1-1/+1
2009-09-19 * varobj.c (varobj_update): Initialize children_changed.Joel Brobecker2-1/+6
2009-09-19 * mi/mi-cmd-stack.c (list_args_or_locals): WorkaroundVladimir Prus2-0/+7
gcc warning.
2009-09-19 * gdb.texinfo (GDB/MI Stack Manipulation): DocumentVladimir Prus2-0/+36
-stack-list-variables.
2009-09-19 * mi/mi-cmds.h (mi_cmd_stack_list_variables): Declare.Vladimir Prus4-7/+56
* mi/mi-cmds.c (mi_cmds): Register -stack-list-variables. * mi/mi-cmd-stack.c (enum what_to_list): New. (list_args_or_locals): Accept what_to_list parameter. Use 'variables' as output name of all are requested. (mi_cmd_stack_list_variables): New. (mi_cmd_stack_list_locals, mi_cmd_stack_list_args): Adjust.
2009-09-19 * config/djgpp/fnchange.lst: Add missing edits.Eli Zaretskii2-0/+42
2009-09-19bfd/Richard Sandiford8-26/+505
* elf-bfd.h (eh_cie_fde): Add personality_offset and make_per_encoding_relative to the CIE structure. Add a padding field. * elf-eh-frame.c (_bfd_elf_eh_frame_section_offset): Use 0x70 rather than 0xf0 when masking out the base address encoding Record the offset of personality data from the start of the CIE. Remove a repeated elf_backend_can_make_relative_eh_frame check. (find_merged_cie): Take an info argument. If the personality binds locally, try converting an absolute personality into a local one. (_bfd_elf_discard_section_eh_frame): Use 0x70 rather than 0xf0 when masking out the base address encoding. Update the call to find_merged_cie. (_bfd_elf_eh_frame_section_offset): Discard relocations against the personality data if we are converting into PC-relative form. (_bfd_elf_write_section_eh_frame): Use 0x70 rather than 0xf0 when masking out the base address encoding. Handle make_per_encoding_relative. ld/testsuite/ * ld-mips-elf/eh-frame5.s, ld-mips-elf/eh-frame5.ld, ld-mips-elf/eh-frame5.d: New test. * ld-mips-elf/mips-elf.exp: Run it.
2009-09-192009-09-18 Maxim Grigoriev <maxim2405@gmail.com>Maxim Grigoriev2-1/+5
* xtensa-tdep.c (call0_analyze_prologue): Replace INT_MAX by UNIT_MAX.
2009-09-19*** empty log message ***gdbadmin1-1/+1
2009-09-19daily updateAlan Modra1-1/+1
2009-09-18Revert accidental checkin.H.J. Lu1-15/+14