Tom Tromey
89fa5381cb
PR gdb/10583:
...
* python/py-value.c (valpy_int): Use PyLong_FromLongLong.
(valpy_long): Likewise.
2009-09-22 21:14:58 +00:00
Ian Lance Taylor
6a8f49fe0a
* testsuite/retain_symbols_file_test.sh (check_present): Change
...
output file name to retain_symbols_file_test.stdout.
(check_absent): Likewise.
2009-09-22 19:54:46 +00:00
Richard Sandiford
46bc35a936
binutils/
...
* objdump.c (disassemble_section): Use bfd_get_arch_size
instead of assuming that the address size is 32 bits.
2009-09-22 18:29:06 +00:00
Ralf Wildenhues
2fd0b40ba3
Error out if building separately but srcdir has build remnants.
...
/:
PR bootstrap/32272
* configure.ac: Error out if $srcdir isn't '.' but contains
host-${host_noncanonical}.
* configure: Regenerate.
2009-09-22 18:00:40 +00:00
Tom Tromey
329719ec1d
gdb
...
PR python/10680:
* eval.c (evaluate_subexp_standard) <do_call_it>: Handle internal
functions in EVAL_AVOID_SIDE_EFFECTS case.
gdb/testsuite
* gdb.python/py-function.exp: Add regression tests.
2009-09-22 17:39:54 +00:00
Kai Tietz
074d710de7
2009-09-22 Ozkan Sezer <sezeroz@gmail.com>
...
* choose-temp.c: Include unistd.h for mingw targets.
2009-09-22 16:33:56 +00:00
Joel Brobecker
93cfa9cf1f
* main.c: Fix spelling error.
2009-09-22 15:44:12 +00:00
Jie Zhang
a13d7b9046
* MAINTAINERS: Add myself under Write After Approval.
2009-09-22 03:22:58 +00:00
Alan Modra
30c87b0590
* gas/ppc/a2.d: Match PPC64 relocs.
2009-09-22 03:10:25 +00:00
Alan Modra
b961e85b6e
o * ppc.h (ppc_cpu_t): Typedef to uint64_t.
2009-09-22 02:36:26 +00:00
Alan Modra
7807ee0cd2
Delete unused scripts.
2009-09-22 00:17:48 +00:00
Alan Modra
bb6e756481
daily update
2009-09-22 00:00:04 +00:00
gdbadmin
80a673e889
*** empty log message ***
2009-09-22 00:00:03 +00:00
Pierre Muller
bb0613a5d5
* windows-nat.c (ctrl_c_handler): Also handle CTRL_BREAK_EVENT.
2009-09-21 22:37:59 +00:00
H.J. Lu
76ba998616
2009-09-21 H.J. Lu <hongjiu.lu@intel.com>
...
* config/tc-i386.c: Remove white spaces.
2009-09-21 21:50:19 +00:00
Ralf Wildenhues
16b1ad29ea
Require c++ in stage1_languages with --enable-gold in combined bootstrap.
...
/:
* configure.ac: If bootstrapping a combined tree with
--enable-gold, require c++ in stage1_languages.
* configure: Regenerate.
2009-09-21 20:32:59 +00:00
Ralf Wildenhues
f8dc745f6e
toplevel configure: bootstrap target_libs of stage1_languages.
...
/:
* configure.ac: Also add target_libs of stage1_languages to
bootstrap_target_libs.
* configure: Regenerate.
2009-09-21 20:31:02 +00:00
Keith Seitz
1290797801
* cp-support.h (cp_validate_operator): Declare new function.
...
* cp-support.c (cp_validate_operator): New function.
* linespec.c (decode_compound): For C++ check for a valid operator.
2009-09-21 19:46:43 +00:00
Keith Seitz
11ef0d76ab
* gdb.cp/cplusfuncs.exp (do_tests): Add check for proper error message
...
with invalid operator.
2009-09-21 19:46:15 +00:00
Ralf Wildenhues
4385ad3c09
Diagnose --enable-build-with-cxx --enable-bootstrap --enable-languages w/o c++
...
/:
* configure.ac: Diagnose --enable-build-with-cxx bootstrap
with --enable-languages not containing c++.
* configure: Regenerate.
2009-09-21 19:25:05 +00:00
Keith Seitz
e8269d5fd9
* c-exp.y (qualified_name): Call CHECK_TYPEDEF before deciding
...
that a type is not an aggregate type.
2009-09-21 19:23:46 +00:00
Keith Seitz
3fe8f3b349
* gdb.cp/classes.exp (do_tests): Add tests to print a constructor
...
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-21 19:23:22 +00:00
Richard Sandiford
cbacf5fd94
ld/testsuite/
...
PR ld/10681
* ld-elf/eh6.d: Expect absolute pointers in shared libraries to
be converted into PC-relative form.
2009-09-21 19:11:50 +00:00
Richard Sandiford
a10917efdd
bfd/
...
* 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-21 19:07:44 +00:00
Richard Sandiford
30af59626b
bfd/
...
* 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-21 18:55:08 +00:00
Tom Tromey
ce0420dced
2009-09-21 Jason Orendorff <jason.orendorff@gmail.com>
...
PR python/10666:
* python/py-function.c (fnpy_init): Use xstrdup.
2009-09-21 16:18:42 +00:00
Maciej W. Rozycki
943fef64b2
* lib/gas-defs.exp (gas_test_error): Mark internal error/assertion
...
failures seen in output as fails. Also record output being
matched for fails.
2009-09-21 13:15:28 +00:00
Maciej W. Rozycki
26abf39f0f
* gas/mips/eret-1.d: Adjust regexps for robustness.
...
* 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 13:13:04 +00:00
Maciej W. Rozycki
0bcd05a426
* gas/mips/eret-1.s: Add trailing padding.
...
* 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 13:10:07 +00:00
Maciej W. Rozycki
95d4c932e4
* gas/mips/mips.exp: Fix a typo.
2009-09-21 13:08:36 +00:00
Jie Zhang
4f412fd0b6
* doc/gdb.texinfo: Escape "{" and "}".
2009-09-21 12:48:36 +00:00
Alan Modra
a7f2871e66
include/elf/
...
* 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-21 11:51:02 +00:00
Ben Elliston
e0d602ecff
gas/
...
* 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-21 10:29:07 +00:00
Phil Muldoon
7a9fe1016c
2009-09-21 Phil Muldoon <pmuldoon@redhat.com>
...
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-21 09:39:53 +00:00
Phil Muldoon
2e4d963fb2
2009-09-21 Phil Muldoon <pmuldoon@redhat.com>
...
* 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-21 09:32:28 +00:00
Hui Zhu
cdfbdf303d
2009-09-21 Hui Zhu <teawater@gmail.com>
...
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-21 05:57:09 +00:00
Hui Zhu
8a2e0e28d0
2009-09-21 Hui Zhu <teawater@gmail.com>
...
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-21 05:55:53 +00:00
Hui Zhu
8b739a963c
2009-09-21 Hui Zhu <teawater@gmail.com>
...
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-21 05:54:09 +00:00
Hui Zhu
3846b520e4
2009-09-21 Hui Zhu <teawater@gmail.com>
...
Michael Snyder <msnyder@vmware.com>
* gdbarch.sh (process_record_signal): New interface.
2009-09-21 05:52:06 +00:00
Ben Elliston
ba0f96ec3d
* gas/ppc/e500mc.d: Remove blank line at the end of file.
2009-09-21 01:58:01 +00:00
Alan Modra
98f2162666
daily update
2009-09-21 00:00:05 +00:00
gdbadmin
8fae21ad8f
*** empty log message ***
2009-09-21 00:00:03 +00:00
Richard Sandiford
a3de5ef5a4
ld/testsuite/
...
* ld-mips-elf/elf-rel-got-n64-linux.d: Expect BALs.
* ld-mips-elf/elf-rel-xgot-n64-linux.d: Likewise.
2009-09-20 11:11:37 +00:00
gdbadmin
70d077dc9c
*** empty log message ***
2009-09-20 00:00:33 +00:00
Alan Modra
231dd1b200
daily update
2009-09-20 00:00:04 +00:00
Joel Brobecker
26f9bcee59
* varobj.c (varobj_update): Initialize children_changed.
2009-09-19 16:02:36 +00:00
Vladimir Prus
654e7c1f80
* mi/mi-cmd-stack.c (list_args_or_locals): Workaround
...
gcc warning.
2009-09-19 11:12:42 +00:00
Vladimir Prus
b3372f91a1
* gdb.texinfo (GDB/MI Stack Manipulation): Document
...
-stack-list-variables.
2009-09-19 10:46:20 +00:00
Vladimir Prus
daf3c9776f
* mi/mi-cmds.h (mi_cmd_stack_list_variables): Declare.
...
* 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 09:59:29 +00:00
Eli Zaretskii
3145548fd3
* config/djgpp/fnchange.lst: Add missing edits.
2009-09-19 09:46:45 +00:00