Tom Tromey
20bb6bc822
2009-09-23 John Wright <john.wright@hp.com>
...
PR gdb/10684:
* event-top.c (command_line_handler): Terminate linebuffer before
xstrdup.
2009-09-23 17:27:39 +00:00
Sterling Augustine
417ba50c7d
2009-09-22 Sterling Augustine <sterling@tensilica.com>
...
* config/tc-xtensa.c (md_apply_fix): Remove check for constant
with difference of of two symbols.
(xtensa_fix_adjustable): Likewise.
2009-09-23 15:11:48 +00:00
Alan Modra
7ee314faa4
bfd/
...
* bfd-in.h (bfd_elf_size_dynamic_sections): Add audit and depaudit
arguments.
* elflink.c (bfd_elf_size_dynamic_sections): Generate DT_AUDIT,
DT_DEPAUDIT from audit/depaudit arguments.
(elf_finalize_dynstr): Finalize DT_AUDIT and DT_DEPAUDIT strtab entries.
(elf_link_add_object_symbols): Set dt_audit target data when finding a
DT_AUDIT.
* bfd-in2.h: Regenerate.
* bfd-elf.h: Add dt_audit to elf_obj_tdata, and elf_dt_audit macro.
ld/
* emultempl/elf32.em (gld${EMULATION_NAME}_add_options): Add --audit,
--depaudit, and -P options.
(gld${EULATION_NAME}_handle_options): Ditto.
(gld${EULATION_NAME}_list_options): Ditto.
(gld${EMULATION_NAME}_append_to_separated_string): New function for
handling rpath-like colon separated strings.
(gld${EMULATION_NAME}_before_allocation): Pass the audit and depaudit
libs to bfd. Propagate DT_AUDIT from needed libs to depaudit.
* ld.texinfo: Document new options.
ld/testsuite/
* ld-elf/audit.exp: New.
* ld-elf/audit.rd: New.
* ld-elf/depaudit.rd: New.
* ld-elf/depaudit2.rd: New.
2009-09-23 13:54:29 +00:00
Nick Clifton
8a00d39205
Updated French and Vietnamese translations.
2009-09-23 10:09:19 +00:00
Nick Clifton
707a0b5cdc
* config.sub, config.guess: Update from upstream sources.
2009-09-23 09:51:31 +00:00
Jie Zhang
ba8149a9e4
* ld-srec/srec.exp: Add xfails for bfin-*-linux-uclibc.
2009-09-23 09:29:52 +00:00
Tristan Gingold
bf70c4f883
Fix previous entry.
2009-09-23 08:30:55 +00:00
Tristan Gingold
6eb94e776a
2009-09-23 Tim E. Sneddon <tsneddon@kednos.com>
...
* gas/configure.com: Fix a typo.
2009-09-23 08:30:12 +00:00
Jie Zhang
d3e32c2e1a
* elf32-bfin.c (_bfinfdpic_size_got_plt): Make sure empty
...
.rel.plt and .plt sections are removed.
(elf32_bfinfdpic_size_dynamic_sections): Remove empty .dynbss
section. Remove the duplicated removing of empty .rel.plt
section.
2009-09-23 08:03:02 +00:00
Alan Modra
a3371076af
* symbols.c (define_sym_at_dot): New function, extracted from..
...
(colon): ..here. Define error case cloned symbol.
2009-09-23 06:10:08 +00:00
Alan Modra
f9272224cd
Tolerate some whitespace differences in readelf output.
2009-09-23 03:12:28 +00:00
gdbadmin
dfc3ab44df
*** empty log message ***
2009-09-23 00:00:05 +00:00
Alan Modra
82a3a7558d
daily update
2009-09-23 00:00:04 +00:00
Joel Brobecker
69e2bf1796
* solib.c (solib_bfd_open): Relax a bit the compatibility check.
2009-09-22 23:03:30 +00:00
Daniel Jacobowitz
c4e86dd4d0
* source.c (forget_cached_source_info): Clear last_source_visited.
...
(init_last_source_visited): Delete.
(directory_command): Do not clear last_source_visited. Call
forget_cached_source_info only if required.
(unset_substitute_path_command, set_substitute_path_command): Call
forget_cached_source_info.
* mi/mi-cmd-env.c (mi_cmd_env_dir): Do not call
init_last_source_visited.
* defs.h (init_last_source_visited): Delete declaration.
2009-09-22 22:34:17 +00:00
DJ Delorie
a89caa617d
merge from gcc
2009-09-22 21:52:47 +00:00
Sterling Augustine
9ac367048b
2009-09-22 Sterling Augustine <sterling@jaw.hq.tensilica.com>
...
* config/tc-xtensa.c (md_apply_fix): Remove check for constant with
difference of of two symbols.
(xtensa_fix_adjustable): Likewise.
2009-09-22 21:47:03 +00:00
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