aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2012-12-07gold/Roland McGrath2-2/+8
* testsuite/binary_unittest.cc (Sized_binary_test): Use open_descriptor rather than ::open.
2012-12-07 * ada-lang.c (ada_make_symbol_completion_list): Add 'code'Tom Tromey14-33/+244
argument, assertion. * c-exp.y (typebase): Add completion productions. * completer.c (expression_completer): Handle tag completion. * expression.h (parse_expression_for_completion): Add argument. * f-lang.c (f_make_symbol_completion_list): Add 'code' argument. * language.h (struct language_defn) <la_make_symbol_completion_list>: Add 'code' argument. * parse.c (expout_tag_completion_type, expout_completion_name): New globals. (mark_struct_expression): Add assertion. (mark_completion_tag): New function. (parse_exp_in_context): Initialize new globals. (parse_expression_for_completion): Add 'code' argument. Handle tag completion. * parser-defs.h (mark_completion_tag): Declare. * symtab.c (default_make_symbol_completion_list_break_on): Add 'code' argument. Update. (default_make_symbol_completion_list): Add 'code' argument. (make_symbol_completion_list): Update. (make_symbol_completion_type): New function. * symtab.h (default_make_symbol_completion_list_break_on) (default_make_symbol_completion_list): Update. (make_symbol_completion_type): Declare. testsuite * gdb.base/break1.c (enum some_enum, union some_union): New. (some_enum_global, some_union_global, some_value): New globals. * gdb.base/completion.exp: Add tag completion tests.
2012-12-07 * expression.h (parse_expression_for_completion): RenameTom Tromey7-20/+33
from parse_field_expression. (parse_completion): Rename from in_parse_field. * c-exp.y (lex_one_token): Update. * completer.c (expression_completer): Update. * go-exp.y (lex_one_token): Update. * p-exp.y (yylex): Update. * parse.c (parse_completion): Rename from in_parse_field. (parse_exp_in_context): Update. (parse_expression_for_completion): Rename from parse_field_expression. Update.
2012-12-07 * typeprint.c (_initialize_typeprint): Set completerTom Tromey4-3/+26
for "whatis" and "ptype". testsuite * gdb.base/completion.exp: Add tests for ptype and whatis completion.
2012-12-07Mention PRs in ChangeLog entries for LTO testsH.J. Lu1-0/+20
2012-12-07Add LTO testsH.J. Lu86-0/+1011
* ld-plugin/dummy.c: New file. * ld-plugin/dummy.s: Likewise. * ld-plugin/lto-11.out: Likewise. * ld-plugin/lto-11a.c: Likewise. * ld-plugin/lto-11b.c: Likewise. * ld-plugin/lto-11c.c: Likewise. * ld-plugin/lto-12.out: Likewise. * ld-plugin/lto-12a.c: Likewise. * ld-plugin/lto-12b.c: Likewise. * ld-plugin/lto-12c.c: Likewise. * ld-plugin/lto-13.out: Likewise. * ld-plugin/lto-13a.c: Likewise. * ld-plugin/lto-13b.c: Likewise. * ld-plugin/lto-13c.c: Likewise. * ld-plugin/lto-14.out: Likewise. * ld-plugin/lto-14a.c: Likewise. * ld-plugin/lto-14b.c: Likewise. * ld-plugin/lto-14c.c: Likewise. * ld-plugin/lto-15.out: Likewise. * ld-plugin/lto-15a.c: Likewise. * ld-plugin/lto-15b.c: Likewise. * ld-plugin/lto-16a.c: Likewise. * ld-plugin/lto-16a.d: Likewise. * ld-plugin/lto-16b.c: Likewise. * ld-plugin/lto-16b.d: Likewise. * ld-plugin/lto-17a.c: Likewise. * ld-plugin/lto-17a.d: Likewise. * ld-plugin/lto-17b-1.d: Likewise. * ld-plugin/lto-17b-2.d: Likewise. * ld-plugin/lto-17b.c: Likewise. * ld-plugin/lto-1a.c: Likewise. * ld-plugin/lto-1b.c: Likewise. * ld-plugin/lto-2.c: Likewise. * ld-plugin/lto-3.d: Likewise. * ld-plugin/lto-3.out: Likewise. * ld-plugin/lto-3a.c: Likewise. * ld-plugin/lto-3b.c: Likewise. * ld-plugin/lto-3c.c: Likewise. * ld-plugin/lto-3r.d: Likewise. * ld-plugin/lto-5.d: Likewise. * ld-plugin/lto-5.out: Likewise. * ld-plugin/lto-5a.c: Likewise. * ld-plugin/lto-5b.c: Likewise. * ld-plugin/lto-5r.d: Likewise. * ld-plugin/lto-6.c: Likewise. * ld-plugin/lto-7.out: Likewise. * ld-plugin/lto-7a.c: Likewise. * ld-plugin/lto-7b.c: Likewise. * ld-plugin/lto-7c.c: Likewise. * ld-plugin/lto-7d.c: Likewise. * ld-plugin/lto-8.out: Likewise. * ld-plugin/lto-8a.c: Likewise. * ld-plugin/lto-8b.c: Likewise. * ld-plugin/lto-9.cc: Likewise. * ld-plugin/lto-9.d: Likewise. * ld-plugin/lto.exp: Likewise. * ld-plugin/pr12696-1.cc: Likewise. * ld-plugin/pr12758a.s: Likewise. * ld-plugin/pr12758b.c: Likewise. * ld-plugin/pr12760a.c: Likewise. * ld-plugin/pr12760b.c: Likewise. * ld-plugin/pr12942.out: Likewise. * ld-plugin/pr12942a.cc: Likewise. * ld-plugin/pr12942a.h: Likewise. * ld-plugin/pr12942b.cc: Likewise. * ld-plugin/pr12942c.cc: Likewise. * ld-plugin/pr12975.c: Likewise. * ld-plugin/pr12975.d: Likewise. * ld-plugin/pr12975.t: Likewise. * ld-plugin/pr12982.c: Likewise. * ld-plugin/pr12982.d: Likewise. * ld-plugin/pr13066.cc: Likewise. * ld-plugin/pr13066.out: Likewise. * ld-plugin/pr13183.d: Likewise. * ld-plugin/pr13183a.c: Likewise. * ld-plugin/pr13183b.c: Likewise. * ld-plugin/pr13201.c: Likewise. * ld-plugin/pr13201.out: Likewise. * ld-plugin/pr13229.cc: Likewise. * ld-plugin/pr13229.d: Likewise. * ld-plugin/pr13244.c: Likewise. * ld-plugin/pr13244.d: Likewise. * ld-plugin/pr13287.cc: Likewise. * ld-plugin/run-ie.c: Likewise. * ld-plugin/run-ie.out: Likewise.
2012-12-07Add plugin visibility testH.J. Lu5-2/+42
* ld-plugin/func1p.c: New file. * ld-plugin/func2i.c: Likewise. * ld-plugin/func3h.c: Likewise. * ld-plugin/plugin.exp (plugin_extra_elf_tests): Add plugin visibility test.
2012-12-07Add check_lto_availableH.J. Lu2-0/+33
* lib/ld-lib.exp (check_lto_available): New. Check if compiler supports LTO.
2012-12-07Properly check linker warningsH.J. Lu2-6/+16
* lib/ld-lib.exp (run_cc_link_tests): Properly check linker warnings.
2012-12-07Pass -rc to arH.J. Lu2-1/+5
* lib/ld-lib.exp (ar_simple_create): Pass -rc to ar.
2012-12-07Add a testase for PR ld/14926H.J. Lu3-0/+29
PR ld/14926 * ld-elf/pr14926.d: New file. * ld-elf/pr14926.s: Likewise.
2012-12-07Fix gdb.base/stale-infcall.exp's copyright line.Joel Brobecker2-1/+5
gdb/testsuite/ChangeLog: * gdb.base/stale-infcall.exp: Fix copyright line.
2012-12-07Update copyright.py:NOT_FSF_LIST for sim/common subdir.Joel Brobecker2-3/+9
There was a duplicate ("sim/common/cgen-fpu.h"), and one entry where we do have an FSF copyright header ("sim/common/sim-fpu.c"). gdb/ChangeLog: * copyright.py (NOT_FSF_LIST): Remove duplicate entry "sim/common/cgen-fpu.h". Remove invalid entries "sim/common/sim-fpu.c" and "sim/mn10300/sim-main.h", which actually have an FSF copyright header.
2012-12-07 * ld-elf/comm-data.exp: Revert last change.Alan Modra3-3/+6
* ld-elf/comm-data5.d: xfail frv-linux.
2012-12-07 * ld-elf/shared.exp (libneeded1a.so): Override any systemAlan Modra2-1/+6
supplied --as-needed or --add-needed flag.
2012-12-07 * configure.ac (HAVE_ZLIB): Use AM_ZLIB instead of AC_SEARCH_LIBS.Ian Lance Taylor1-0/+9
Use $ac_cv_header_zlib_h = yes as the condition in AM_CONDITIONAL. * aclocal.m4: Regenerate. * configure: Regenerate. * Makefile.in: Regenerate. * testsuite/Makefile.in: Regenerate.
2012-12-07 PR ld/14926Alan Modra2-0/+7
* elf.c (_bfd_elf_map_sections_to_segments): Include elf header size when determining phdr_in_segment.
2012-12-07 * configure.ac (HAVE_ZLIB): Use AM_ZLIB instead of AC_SEARCH_LIBS.Ian Lance Taylor5-4/+26
Use $ac_cv_header_zlib_h = yes as the condition in AM_CONDITIONAL. * aclocal.m4: Regenerate. * configure: Regenerate. * Makefile.in: Regenerate. * testsuite/Makefile.in: Regenerate.
2012-12-07 * powerpc.cc (Stub_table::do_write): Delete redundant AddressAlan Modra2-3/+17
typedef and invalid_address constant. (Output_data_glink, Stub_table, Target_powerpc): Explicitly instantiate constants.
2012-12-07gdb.ada/lang_switch: Allow msg parameter to be a reference.Joel Brobecker2-3/+6
gdb/testsuite/ChangeLog: * gdb.ada/lang_switch.exp: The "msg" parameter may be a reference.
2012-12-07Delete the gdb/osf-share directory.Joel Brobecker24-3736/+28
These are old files that GDB does not use anymore, and probably has not used for a long time. gdb/ChangeLog: * osf-share/AT386/cma_thread_io.h: Delete. * osf-share/HP800/cma_thread_io.h: Delete. * osf-share/README: Delete. * osf-share/RIOS/cma_thread_io.h: Delete. * osf-share/cma_attr.h: Delete. * osf-share/cma_deb_core.h: Delete. * osf-share/cma_debug_client.h: Delete. * osf-share/cma_errors.h: Delete. * osf-share/cma_handle.h: Delete. * osf-share/cma_init.h: Delete. * osf-share/cma_list.h: Delete. * osf-share/cma_mutex.h: Delete. * osf-share/cma_sched.h: Delete. * osf-share/cma_semaphore_defs.h: Delete. * osf-share/cma_sequence.h: Delete. * osf-share/cma_stack.h: Delete. * osf-share/cma_stack_int.h: Delete. * osf-share/cma_tcb_defs.h: Delete. * osf-share/cma_util.h: Delete. * Makefile.in (HFILES_NO_SRCDIR): Remove entries for the files in osf-share. * config/djgpp/fnchange.lst: Remove osf-share/cma_stack_int.h entry. * contrib/ari/gdb_find.sh: Remove handling of osf-share. * copyright.sh (NOT_FSF_LIST): Remove "gdb/osf-share" entry.
2012-12-07 * options.h (General_options): Add no_toc_optimize.Alan Modra3-0/+105
* powerpc.cc (ok_lo_toc_insn): New function. (Target_powerpc::Relocate::relocate): Optimize toc access sequences.
2012-12-07*** empty log message ***gdbadmin1-1/+1
2012-12-06daily updateAlan Modra1-1/+1
2012-12-062012-12-06 Pedro Alves <palves@redhat.com>Tom Tromey4-4/+18
Tom Tromey <tromey@redhat.com> * valops.c (value_cast): Move TYPE_CODE_VOID case earlier. testsuite * gdb.base/exprs.exp: Add tests for cast to void.
2012-12-062012-12-06 Jens Elmenthaler <jens.elmenthaler@advantest.com>Tom Tromey6-5/+92
PR mi/14741: * mi/mi-cmd-var.c (varobj_update_one): Take value of attribute "dynamic" and "displayhint" from printed child, not the root variable. * gdb.python/py-mi.exp: Correct expected results for attribute "dynamic" returned by -var-update. Add test case for correct handling of "diplayhint" for children of dynamic varobjs. * gdb.python/py-prettyprint.c (set_itme): New function. (bug_14741) New function. (main) Add call to bug_14741(). * gdb.python/py-prettyprint.py (class ArrayPrinter): New class.
2012-12-06bfd/Yufeng Zhang2-0/+41
2012-12-06 Yufeng Zhang <yufeng.zhang@arm.com> * elf64-aarch64.c (elf64_aarch64_grok_prstatus): New function. (elf_backend_grok_prstatus): Define to elf64_aarch64_grok_prstatus.
2012-12-06gas/Yufeng Zhang7-39/+50
2012-12-06 Yufeng Zhang <yufeng.zhang@arm.com> * config/tc-aarch64.c (exp_has_bignum_p): Remove. (my_get_expression): Not get rid of bignums. (s_ltorg): Increase the range of 'align'. (programmer_friendly_fixup): Allow bignum expression. gas/testsuite/ 2012-12-06 Yufeng Zhang <yufeng.zhang@arm.com> * gas/aarch64/illegal.s: Add test for unaccepted LDR literal. * gas/aarch64/illegal.l: Update. * gas/aarch64/programmer-friendly.s: Add tests for LDR literal with the auto-generation of literal in pool. * gas/aarch64/programmer-friendly.d: Update.
2012-12-06aix-thread: Fix getthrds declaration and call.Joel Brobecker2-2/+7
gdb/ChangeLog: * aix-thread.c (getthrds): Fix type of 4th parameter. (get_signaled_thread): Change type of variable ktid to tid_t.
2012-12-06 * options.h (General_options): Add plt_align, plt_static_chain,Alan Modra3-92/+266
plt_thread_safe. Update stub_group_size help text. * powerpc.cc (Target_powerpc::plt_thread_safe): New access function for new plt_thread_safe_ var. (use_plt_offset): Correct comments. (Target_powerpc::do_relax): Look for thread creation symbols to determine default plt_thread_safe value. Clear plt call stubs as well as branch stubs each iteration. (add_2_2_11, add_12_12_11, bnectr_p4, cmpldi_2_0, xor_11_11_11): New insn constants. (l, hi, ha, write_insn): Move earlier. (Stub_table): Delete prev_size, add last_plt_size and last_branch_size. (Stub_table::clear_stubs): Rename from clear_long_branch_stubs, clear plt stubs too. (Stub_table::update_size): Adjust. (Stub_table::prev_size, set_prev_size): Delete. (Stub_table::stub_align): Let --plt-align affect result. (Stub_table::plt_call_size): Calculate sizes for various stubs. (Stub_table::branch_stub_size): Use last_plt_size in address calc. (Stub_table::add_plt_call_stub): Pass iterator to plt_call_size. (Stub_table::do_write): Support more stub variants.
2012-12-06* dwarf2loc.c (dwarf_expr_frame_base): Add check for the return value of ↵Hui Zhu2-1/+10
get_frame_block.
2012-12-06Extend --copy-dt-needed-entries to creating DSOH.J. Lu4-4/+51
ld/ PR ld/14915 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Also check DT_NEEDED entries when creating shared object with --copy-dt-needed-entries. ld/testsuite/ PR ld/14915 * ld-elf/shared.exp (build_tests): Test --add-needed, --copy-dt-needed-entries, --no-add-needed and --no-copy-dt-needed-entries with -shared. Add tests for --no-add-needed and --no-copy-dt-needed-entries with -shared.
2012-12-06 * ld-elf/comm-data4.d, ld-elf/comm-data4.s: New test.Alan Modra6-0/+51
* ld-elf/comm-data5.d, ld-elf/comm-data5.s: New test. * ld-elf/comm-data.exp: Run them.
2012-12-06 * elfxx-mips.c (allocate_dynrelocs): Correct test for symbolAlan Modra2-1/+6
defined in a regular file to include common symbols.
2012-12-06*** empty log message ***gdbadmin1-1/+1
2012-12-05 Avoid memory leaks on struct cmd_list_element.doc field.Pierre Muller3-1/+28
* cli/cli-decode.c (add_alias_cmd): Make a copy of doc field if flags contains DOC_ALLOCATED. (add_setshow_cmd_full): Add DOC_ALLOCATED to set and show flags. (delete_cmd): Handle DOC_ALLOCATED flag. * cli/cli-decode.h (DOC_ALLOCATED): New macro for use in flags filed of struct cmd_list_element. (struct cmd_list_element): Document new flag item.
2012-12-05daily updateAlan Modra1-1/+1
2012-12-05 * gdb.base/gnu-debugdata.exp: Also include "D" symbols inUlrich Weigand2-1/+8
${binfile}.funcsyms list.
2012-12-05 PR gdb/14917:Tom Tromey2-2/+7
* server.h (current_insn_ptr, emit_error): Declare 'extern'.
2012-12-05Add x86_64-*-rdos.Alan Modra4-0/+14
2012-12-05 * elf64-ppc.c (build_plt_stub): Fix off by one error in branchAlan Modra2-2/+7
to glink.
2012-12-05*** empty log message ***gdbadmin1-1/+1
2012-12-04 * symmisc.c: Whitespace fixes.Doug Evans2-1/+6
2012-12-04daily updateAlan Modra1-1/+1
2012-12-04Add tests for --add-needed/--copy-dt-needed-entriesH.J. Lu6-0/+69
* ld-elf/shared.exp (build_tests): Build libneeded1b.so, libneeded1a.so and libneeded1c.o. (run_tests): Test --add-needed and --copy-dt-needed-entries. Add tests for --no-add-needed and --no-copy-dt-needed-entries. * ld-elf/needed1.out: New file. * ld-elf/needed1a.c: Likewise. * ld-elf/needed1b.c: Likewise. * ld-elf/needed1c.c: Likewise.
2012-12-04Fix for incorrect breakpoint set in case of clang compiled binaryKarthik Bhat3-0/+39
2012-12-04gdb/testsuiteYao Qi2-1/+6
2012-12-04 Yao Qi <yao@codesourcery.com> PR gdb/13443 * gdb.trace/actions.exp: Make test messages unique.
2012-12-04 * powerpc.cc (Powerpc_relobj::do_scan_relocs): Delete.Alan Modra2-11/+12
(Target_powerpc::do_define_standard_symbols): New function.
2012-12-04*** empty log message ***gdbadmin1-1/+1
2012-12-03daily updateAlan Modra1-1/+1