binutils-gdb.git
11 years agogdb/
Jan Kratochvil [Sun, 9 Dec 2012 18:39:59 +0000 (18:39 +0000)]
gdb/
* configure.ac (CC_HAS_LONG_LONG): Replace by AC_MSG_ERROR.
* defs.h (LONGEST, ULONGEST): Remove conditionalization for
CC_HAS_LONG_LONG.
* dwarf2-frame.c (DW64_CIE_ID): Likewise.
* dwarf2read.c (extract_cu_value): Remove the function.
(create_cus_from_index_list): Make the return type void, inline the
extract_cu_value caller, include new gdb_static_assert.
(create_cus_from_index): Make the return type void, update the function
comment, update the create_cus_from_index_list caller.
(create_signatured_type_table_from_index): Make the return type void,
inline the extract_cu_value caller, include new gdb_static_assert.
(dwarf2_read_index): Update the create_cus_from_index and
create_signatured_type_table_from_index caller.
* printcmd.c (ui_printf): Remove conditionalizations for
CC_HAS_LONG_LONG.
* config.in: Regenerate.
* configure: Regenerate.

gdb/doc/
* gdbint.texinfo (Host Definition): Remove CC_HAS_LONG_LONG.

11 years agoProperly check indicies bigger than 4Gb
H.J. Lu [Sun, 9 Dec 2012 18:01:39 +0000 (18:01 +0000)]
Properly check indicies bigger than 4Gb

PR binutils/14933
* archive.c (bsd_write_armap): Properly check indicies bigger
than 4Gb.

11 years agogdb/
Jan Kratochvil [Sun, 9 Dec 2012 17:35:42 +0000 (17:35 +0000)]
gdb/
* dwarf2read.c (struct dwarf2_cu): New field producer_is_gcc_lt_4_3.
Update the comment for checked_producer.
(check_producer): New forward declaration.
(producer_is_gcc_lt_4_3): New function.
(find_file_and_directory): Simulate *COMP_DIR only for gcc < 4.3.
(check_producer): Initialize also PRODUCER_IS_GCC_LT_4_3.

gdb/testsuite/
* gdb.dwarf2/dw2-compdir-oldgcc.S: New file.
* gdb.dwarf2/dw2-compdir-oldgcc.exp: New file.

11 years ago*** empty log message ***
gdbadmin [Sun, 9 Dec 2012 00:00:37 +0000 (00:00 +0000)]
*** empty log message ***

11 years agodaily update
Alan Modra [Sat, 8 Dec 2012 23:00:05 +0000 (23:00 +0000)]
daily update

11 years agogdb/testsuite
Yao Qi [Sat, 8 Dec 2012 11:58:01 +0000 (11:58 +0000)]
gdb/testsuite
2012-12-08  Yao Qi  <yao@codesourcery.com>
    Pedro Alves  <palves@redhat.com>

* gdb.trace/mi-tracepoint-changed.exp (test_reconnect): Test
'=breakpoint-created' when GDB merges the tracepoints of both
 sides.

11 years ago * config.sub: Merge from config repo.
Jan-Benedict Glaw [Sat, 8 Dec 2012 00:02:34 +0000 (00:02 +0000)]
* config.sub: Merge from config repo.

11 years ago*** empty log message ***
gdbadmin [Sat, 8 Dec 2012 00:00:44 +0000 (00:00 +0000)]
*** empty log message ***

11 years agodaily update
Alan Modra [Fri, 7 Dec 2012 23:00:04 +0000 (23:00 +0000)]
daily update

11 years agoUse "readelf -S --wide" on ld-elf/pr14926.d
H.J. Lu [Fri, 7 Dec 2012 22:30:19 +0000 (22:30 +0000)]
Use "readelf -S --wide" on ld-elf/pr14926.d

* ld-elf/pr14926.d: Use "readelf -S --wide".

11 years agogold/
Roland McGrath [Fri, 7 Dec 2012 21:48:32 +0000 (21:48 +0000)]
gold/
* testsuite/binary_unittest.cc (Sized_binary_test):
Use open_descriptor rather than ::open.

11 years ago * ada-lang.c (ada_make_symbol_completion_list): Add 'code'
Tom Tromey [Fri, 7 Dec 2012 20:09:11 +0000 (20:09 +0000)]
* ada-lang.c (ada_make_symbol_completion_list): Add 'code'
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.

11 years ago * expression.h (parse_expression_for_completion): Rename
Tom Tromey [Fri, 7 Dec 2012 20:05:15 +0000 (20:05 +0000)]
* expression.h (parse_expression_for_completion): Rename
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.

11 years ago * typeprint.c (_initialize_typeprint): Set completer
Tom Tromey [Fri, 7 Dec 2012 19:58:10 +0000 (19:58 +0000)]
* typeprint.c (_initialize_typeprint): Set completer
for "whatis" and "ptype".
testsuite
* gdb.base/completion.exp: Add tests for ptype and whatis
completion.

11 years agoMention PRs in ChangeLog entries for LTO tests
H.J. Lu [Fri, 7 Dec 2012 19:56:25 +0000 (19:56 +0000)]
Mention PRs in ChangeLog entries for LTO tests

11 years agoAdd LTO tests
H.J. Lu [Fri, 7 Dec 2012 19:23:50 +0000 (19:23 +0000)]
Add LTO tests

* 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.

11 years agoAdd plugin visibility test
H.J. Lu [Fri, 7 Dec 2012 19:14:41 +0000 (19:14 +0000)]
Add plugin visibility test

* 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.

11 years agoAdd check_lto_available
H.J. Lu [Fri, 7 Dec 2012 17:56:09 +0000 (17:56 +0000)]
Add check_lto_available

* lib/ld-lib.exp (check_lto_available): New.  Check if compiler
supports LTO.

11 years agoProperly check linker warnings
H.J. Lu [Fri, 7 Dec 2012 17:53:04 +0000 (17:53 +0000)]
Properly check linker warnings

* lib/ld-lib.exp (run_cc_link_tests): Properly check linker
warnings.

11 years agoPass -rc to ar
H.J. Lu [Fri, 7 Dec 2012 17:51:35 +0000 (17:51 +0000)]
Pass -rc to ar

* lib/ld-lib.exp (ar_simple_create): Pass -rc to ar.

11 years agoAdd a testase for PR ld/14926
H.J. Lu [Fri, 7 Dec 2012 12:32:50 +0000 (12:32 +0000)]
Add a testase for PR ld/14926

PR ld/14926
* ld-elf/pr14926.d: New file.
* ld-elf/pr14926.s: Likewise.

11 years agoFix gdb.base/stale-infcall.exp's copyright line.
Joel Brobecker [Fri, 7 Dec 2012 10:18:59 +0000 (10:18 +0000)]
Fix gdb.base/stale-infcall.exp's copyright line.

gdb/testsuite/ChangeLog:

        * gdb.base/stale-infcall.exp: Fix copyright line.

11 years agoUpdate copyright.py:NOT_FSF_LIST for sim/common subdir.
Joel Brobecker [Fri, 7 Dec 2012 10:00:57 +0000 (10:00 +0000)]
Update copyright.py:NOT_FSF_LIST for sim/common subdir.

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.

11 years ago * ld-elf/comm-data.exp: Revert last change.
Alan Modra [Fri, 7 Dec 2012 06:00:06 +0000 (06:00 +0000)]
* ld-elf/comm-data.exp: Revert last change.
* ld-elf/comm-data5.d: xfail frv-linux.

11 years ago * ld-elf/shared.exp (libneeded1a.so): Override any system
Alan Modra [Fri, 7 Dec 2012 05:26:39 +0000 (05:26 +0000)]
* ld-elf/shared.exp (libneeded1a.so): Override any system
supplied --as-needed or --add-needed flag.

11 years ago * configure.ac (HAVE_ZLIB): Use AM_ZLIB instead of AC_SEARCH_LIBS.
Ian Lance Taylor [Fri, 7 Dec 2012 05:03:30 +0000 (05:03 +0000)]
* configure.ac (HAVE_ZLIB): Use AM_ZLIB instead of AC_SEARCH_LIBS.
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.

11 years ago PR ld/14926
Alan Modra [Fri, 7 Dec 2012 04:58:36 +0000 (04:58 +0000)]
PR ld/14926
* elf.c (_bfd_elf_map_sections_to_segments): Include elf header
size when determining phdr_in_segment.

11 years ago * configure.ac (HAVE_ZLIB): Use AM_ZLIB instead of AC_SEARCH_LIBS.
Ian Lance Taylor [Fri, 7 Dec 2012 04:28:52 +0000 (04:28 +0000)]
* configure.ac (HAVE_ZLIB): Use AM_ZLIB instead of AC_SEARCH_LIBS.
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.

11 years ago * powerpc.cc (Stub_table::do_write): Delete redundant Address
Alan Modra [Fri, 7 Dec 2012 04:23:36 +0000 (04:23 +0000)]
* powerpc.cc (Stub_table::do_write): Delete redundant Address
typedef and invalid_address constant.
(Output_data_glink, Stub_table, Target_powerpc): Explicitly
instantiate constants.

11 years agogdb.ada/lang_switch: Allow msg parameter to be a reference.
Joel Brobecker [Fri, 7 Dec 2012 03:00:00 +0000 (03:00 +0000)]
gdb.ada/lang_switch: Allow msg parameter to be a reference.

gdb/testsuite/ChangeLog:

        * gdb.ada/lang_switch.exp: The "msg" parameter may be a reference.

11 years agoDelete the gdb/osf-share directory.
Joel Brobecker [Fri, 7 Dec 2012 02:57:50 +0000 (02:57 +0000)]
Delete the gdb/osf-share directory.

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.

11 years ago * options.h (General_options): Add no_toc_optimize.
Alan Modra [Fri, 7 Dec 2012 00:03:18 +0000 (00:03 +0000)]
* options.h (General_options): Add no_toc_optimize.
* powerpc.cc (ok_lo_toc_insn): New function.
(Target_powerpc::Relocate::relocate): Optimize toc access sequences.

11 years ago*** empty log message ***
gdbadmin [Fri, 7 Dec 2012 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

11 years agodaily update
Alan Modra [Thu, 6 Dec 2012 23:00:05 +0000 (23:00 +0000)]
daily update

11 years ago2012-12-06 Pedro Alves <palves@redhat.com>
Tom Tromey [Thu, 6 Dec 2012 21:41:07 +0000 (21:41 +0000)]
2012-12-06  Pedro Alves  <palves@redhat.com>
    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.

11 years ago2012-12-06 Jens Elmenthaler <jens.elmenthaler@advantest.com>
Tom Tromey [Thu, 6 Dec 2012 18:59:57 +0000 (18:59 +0000)]
2012-12-06  Jens Elmenthaler <jens.elmenthaler@advantest.com>

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.

11 years agobfd/
Yufeng Zhang [Thu, 6 Dec 2012 15:56:38 +0000 (15:56 +0000)]
bfd/

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.

11 years agogas/
Yufeng Zhang [Thu, 6 Dec 2012 15:45:38 +0000 (15:45 +0000)]
gas/

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.

11 years agoaix-thread: Fix getthrds declaration and call.
Joel Brobecker [Thu, 6 Dec 2012 04:57:09 +0000 (04:57 +0000)]
aix-thread: Fix getthrds declaration and call.

gdb/ChangeLog:

        * aix-thread.c (getthrds): Fix type of 4th parameter.
        (get_signaled_thread): Change type of variable ktid to tid_t.

11 years ago * options.h (General_options): Add plt_align, plt_static_chain,
Alan Modra [Thu, 6 Dec 2012 03:13:17 +0000 (03:13 +0000)]
* options.h (General_options): Add plt_align, plt_static_chain,
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.

11 years ago* dwarf2loc.c (dwarf_expr_frame_base): Add check for the return value of get_frame_block.
Hui Zhu [Thu, 6 Dec 2012 01:11:32 +0000 (01:11 +0000)]
* dwarf2loc.c (dwarf_expr_frame_base): Add check for the return value of get_frame_block.

11 years agoExtend --copy-dt-needed-entries to creating DSO
H.J. Lu [Thu, 6 Dec 2012 00:25:19 +0000 (00:25 +0000)]
Extend --copy-dt-needed-entries to creating DSO

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.

11 years ago * ld-elf/comm-data4.d, ld-elf/comm-data4.s: New test.
Alan Modra [Thu, 6 Dec 2012 00:10:41 +0000 (00:10 +0000)]
* ld-elf/comm-data4.d, ld-elf/comm-data4.s: New test.
* ld-elf/comm-data5.d, ld-elf/comm-data5.s: New test.
* ld-elf/comm-data.exp: Run them.

11 years ago * elfxx-mips.c (allocate_dynrelocs): Correct test for symbol
Alan Modra [Thu, 6 Dec 2012 00:09:13 +0000 (00:09 +0000)]
* elfxx-mips.c (allocate_dynrelocs): Correct test for symbol
defined in a regular file to include common symbols.

11 years ago*** empty log message ***
gdbadmin [Thu, 6 Dec 2012 00:00:34 +0000 (00:00 +0000)]
*** empty log message ***

11 years ago Avoid memory leaks on struct cmd_list_element.doc field.
Pierre Muller [Wed, 5 Dec 2012 23:23:22 +0000 (23:23 +0000)]
Avoid memory leaks on struct cmd_list_element.doc field.
* 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.

11 years agodaily update
Alan Modra [Wed, 5 Dec 2012 23:00:05 +0000 (23:00 +0000)]
daily update

11 years ago * gdb.base/gnu-debugdata.exp: Also include "D" symbols in
Ulrich Weigand [Wed, 5 Dec 2012 17:07:56 +0000 (17:07 +0000)]
* gdb.base/gnu-debugdata.exp: Also include "D" symbols in
${binfile}.funcsyms list.

11 years ago PR gdb/14917:
Tom Tromey [Wed, 5 Dec 2012 14:56:18 +0000 (14:56 +0000)]
PR gdb/14917:
* server.h (current_insn_ptr, emit_error): Declare 'extern'.

11 years agoAdd x86_64-*-rdos.
Alan Modra [Wed, 5 Dec 2012 05:48:19 +0000 (05:48 +0000)]
Add x86_64-*-rdos.

11 years ago * elf64-ppc.c (build_plt_stub): Fix off by one error in branch
Alan Modra [Wed, 5 Dec 2012 04:58:51 +0000 (04:58 +0000)]
* elf64-ppc.c (build_plt_stub): Fix off by one error in branch
to glink.

11 years ago*** empty log message ***
gdbadmin [Wed, 5 Dec 2012 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

11 years ago * symmisc.c: Whitespace fixes.
Doug Evans [Tue, 4 Dec 2012 23:12:07 +0000 (23:12 +0000)]
* symmisc.c: Whitespace fixes.

11 years agodaily update
Alan Modra [Tue, 4 Dec 2012 23:00:05 +0000 (23:00 +0000)]
daily update

11 years agoAdd tests for --add-needed/--copy-dt-needed-entries
H.J. Lu [Tue, 4 Dec 2012 17:44:43 +0000 (17:44 +0000)]
Add tests for --add-needed/--copy-dt-needed-entries

* 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.

11 years agoFix for incorrect breakpoint set in case of clang compiled binary
Karthik Bhat [Tue, 4 Dec 2012 07:43:19 +0000 (07:43 +0000)]
Fix for incorrect breakpoint set in case of clang compiled binary

11 years agogdb/testsuite
Yao Qi [Tue, 4 Dec 2012 03:55:51 +0000 (03:55 +0000)]
gdb/testsuite
2012-12-04  Yao Qi  <yao@codesourcery.com>

PR gdb/13443
* gdb.trace/actions.exp: Make test messages unique.

11 years ago * powerpc.cc (Powerpc_relobj::do_scan_relocs): Delete.
Alan Modra [Tue, 4 Dec 2012 03:13:31 +0000 (03:13 +0000)]
* powerpc.cc (Powerpc_relobj::do_scan_relocs): Delete.
(Target_powerpc::do_define_standard_symbols): New function.

11 years ago*** empty log message ***
gdbadmin [Tue, 4 Dec 2012 00:00:04 +0000 (00:00 +0000)]
*** empty log message ***

11 years agodaily update
Alan Modra [Mon, 3 Dec 2012 23:00:05 +0000 (23:00 +0000)]
daily update

11 years ago * dwarf2read.c (struct dwarf2_per_objfile): Clarify comment.
Doug Evans [Mon, 3 Dec 2012 22:31:03 +0000 (22:31 +0000)]
* dwarf2read.c (struct dwarf2_per_objfile): Clarify comment.
(dw2_find_symbol_file): Delete unused local file_data.

11 years ago * ada-exp.y (write_object_renaming, write_var_or_type)
Tom Tromey [Mon, 3 Dec 2012 19:59:14 +0000 (19:59 +0000)]
* ada-exp.y (write_object_renaming, write_var_or_type)
(write_ambiguous_var, write_var_from_sym): Make blocks const.
* ada-lang.c (replace_operator_with_call)
(find_old_style_renaming_symbol): Make blocks const.
* ada-lang.h (ada_find_renaming_symbol): Update.
(struct ada_symbol_info) <block>: Now const.
* breakpoint.c (watch_command_1): Update.
* breakpoint.h (struct watchpoint) <exp_valid_block,
cond_exp_valid_block>: Now const.
* c-exp.y (classify_inner_name, classify_name): Make block
argument const.
* expprint.c (print_subexp_standard) <OP_VAR_VALUE>: Make 'b'
const.
* expression.h (innermost_block, parse_exp_1): Update.
(union exp_element) <block>: Now const.
* gdbtypes.c (lookup_template_type, lookup_enum, lookup_union)
(lookup_struct): Make block argument const.
* gdbtypes.h (lookup_template_type): Update.
* go-exp.y (classify_name, classify_packaged_name)
(package_name_p): Make block argument const.
* objc-lang.c (lookup_struct_typedef): Make block argument const.
* objc-lang.h (lookup_struct_typedef): Update.
* parse.c (parse_exp_in_context, parse_exp_1)
(write_exp_elt_block): Make block arguments const.
(expression_context_block, innermost_block): Now const.
* parser-defs.h (write_exp_elt_block): Update.
(expression_context_block, innermost_block, block_found): Now
const.
* printcmd.c (struct display) <block>: Now const.
* symtab.h (lookup_struct, lookup_union, lookup_enum): Update.
* valops.c (address_of_variable): Make block argument const.
* value.h (value_of_variable): Update.
* varobj.c (struct varobj_root) <valid_block>: Now const.

11 years ago PR ld/10629
Maciej W. Rozycki [Mon, 3 Dec 2012 16:37:51 +0000 (16:37 +0000)]
PR ld/10629
* elfxx-mips.c (mips_elf_link_hash_table): Update comment for
use_rld_obj_head.
(_bfd_mips_elf_create_dynamic_sections): Always create a
.rld_map section if no __rld_obj_head symbol has been seen.

11 years ago * elf32-mips.c (mips_elf32_object_p): Return right away when the
Maciej W. Rozycki [Mon, 3 Dec 2012 16:33:13 +0000 (16:33 +0000)]
* elf32-mips.c (mips_elf32_object_p): Return right away when the
ABI is not compatible.
* elfn32-mips.c (mips_elf_n32_object_p): Likewise.

11 years ago * elf32-tilepro.c (tilepro_elf_mkobject): New function.
Maciej W. Rozycki [Mon, 3 Dec 2012 16:30:03 +0000 (16:30 +0000)]
* elf32-tilepro.c (tilepro_elf_mkobject): New function.
(bfd_elf32_mkobject): New macro.

11 years ago * ld-mips-elf/attr-gnu-4-45.d: Add missing "readelf" keyword.
Maciej W. Rozycki [Mon, 3 Dec 2012 16:26:30 +0000 (16:26 +0000)]
* ld-mips-elf/attr-gnu-4-45.d: Add missing "readelf" keyword.
Update dump according to current output.

11 years ago bfd/
Maciej W. Rozycki [Mon, 3 Dec 2012 16:17:48 +0000 (16:17 +0000)]
bfd/
* elf32-mips.c (bfd_elf32_mkobject): New macro.
* elf64-mips.c (bfd_elf64_mkobject): Likewise.
* elfn32-mips.c (bfd_elf32_mkobject): Likewise.
* elfxx-mips.h (_bfd_mips_elf_mkobject): New prototype.
* elfxx-mips.c (mips_elf_obj_tdata): New struct.
(mips_elf_tdata): New macro.
(_bfd_mips_elf_mkobject): New function.
(mips_elf_merge_obj_attributes): Report the originating input BFD
on attribute conflicts.

ld/testsuite/
* ld-mips-elf/attr-gnu-4-12.d: Update the warning message.
* ld-mips-elf/attr-gnu-4-13.d: Likewise.
* ld-mips-elf/attr-gnu-4-14.d: Likewise.
* ld-mips-elf/attr-gnu-4-15.d: Likewise.
* ld-mips-elf/attr-gnu-4-21.d: Likewise.
* ld-mips-elf/attr-gnu-4-23.d: Likewise.
* ld-mips-elf/attr-gnu-4-24.d: Likewise.
* ld-mips-elf/attr-gnu-4-25.d: Likewise.
* ld-mips-elf/attr-gnu-4-31.d: Likewise.
* ld-mips-elf/attr-gnu-4-32.d: Likewise.
* ld-mips-elf/attr-gnu-4-34.d: Likewise.
* ld-mips-elf/attr-gnu-4-35.d: Likewise.
* ld-mips-elf/attr-gnu-4-41.d: Likewise.
* ld-mips-elf/attr-gnu-4-42.d: Likewise.
* ld-mips-elf/attr-gnu-4-43.d: Likewise.
* ld-mips-elf/attr-gnu-4-45.d: Likewise.
* ld-mips-elf/attr-gnu-4-51.d: Likewise.

11 years ago bfd/
Maciej W. Rozycki [Mon, 3 Dec 2012 15:57:44 +0000 (15:57 +0000)]
bfd/
* elfxx-mips.c (mips_elf_merge_obj_attributes): Correct messages
for the -mdouble-float and -msingle-float cases throughout; make
all the messages report the output file consistently on the
left-hand side.

ld/testsuite/
* ld-mips-elf/attr-gnu-4-12.d: Adjust the warning expected
according to changes to BFD.
* ld-mips-elf/attr-gnu-4-14.d: Likewise.
* ld-mips-elf/attr-gnu-4-31.d: Likewise.
* ld-mips-elf/attr-gnu-4-32.d: Likewise.
* ld-mips-elf/attr-gnu-4-34.d: Likewise.
* ld-mips-elf/attr-gnu-4-41.d: Likewise.

11 years agoImprove plugin error handling
H.J. Lu [Mon, 3 Dec 2012 14:34:06 +0000 (14:34 +0000)]
Improve plugin error handling

ld/

PR ld/14904
* ldmain.c (main): Don't check plugin_load_plugins return.

* lexsup.c (parse_args): Don't check plugin_opt_plugin return.

* plugin.c (dlerror): New.  Defined if HAVE_DLFCN_H isn't
defined.
(plugin_opt_plugin): Change return type to void.  Stop on
dlopen error and report error with dlerror ().
(plugin_load_plugins): Change return type to void.  Stop on
dlsym error and report error with dlerror ().  Don't use
set_plugin_error.
(plugin_call_cleanup): Issue an error for each plugin.

* plugin.h (plugin_opt_plugin): Change return type to void.
(plugin_load_plugins): Likewise.

ld/testsuite/

PR ld/14904
* ld-plugin/plugin-2.d: Update expected error message.
* ld-plugin/plugin-4.d: Likewise.

11 years agotypo fix
Alan Modra [Mon, 3 Dec 2012 06:38:01 +0000 (06:38 +0000)]
typo fix

11 years ago * output.h: Formatting, whitespace.
Alan Modra [Mon, 3 Dec 2012 05:48:47 +0000 (05:48 +0000)]
* output.h: Formatting, whitespace.

11 years ago * layout.h (Layout::get_executable_sections): Declare.
Alan Modra [Mon, 3 Dec 2012 05:30:59 +0000 (05:30 +0000)]
* layout.h (Layout::get_executable_sections): Declare.
* layout.cc (Layout::get_executable_sections): New function.
* arm.cc (Target_arm::group_sections): Use it.
(Arm_output_section::group_sections): Delete now redundant test.
* output.cc (Output_reloc::Output_reloc): Add is_relative.
param to handle relative relocs.
* output.h (Output_reloc::Output_reloc <absolute reloc>): Likewise.
(Output_data_reloc::add_absolute): Adjust.
(Output_data_reloc::add_relative): New function.
(Output_data::reset_data_size): New function.
(Output_relaxed_input_section::set_relobj, set_shndx): New functions.
(Output_section::set_addralign): New function.
(Output_section::checkpoint_set_addralign): New function.
(Output_section::clear_section_offsets_need_adjustment): New function.
(Output_section::input_sections): Make public.
* powerpc.cc (class Output_data_brlt_powerpc): New.
(class Stub_table, class Stub_control): New.
(Powerpc_relobj::has14_, set_has_14bit_branch, has_14bit_branch,
stub_table_, set_stub_table, stub_table): New vectors and accessor
functions.
(Target_powerpc::do_may_relax, do_relax, push_branch,
new_stub_table, stub_tables, brlt_section, group_sections,
add_branch_lookup_table, find_branch_lookup_table,
write_branch_lookup_table, make_brlt_section): New functions.
(Target_powerpc::struct Sort_sections, class Branch_info): New.
(Target_powerpc::brlt_section_, stub_tables_, branch_lookup_table_,
branch_info_): New vars.
(Target_powerpc::make_plt_entry, make_local_ifunc_plt_entry): Don't
make call stubs here.
(Output_data_glink): Remove all call stub handling from this class.
(Target_powerpc::Scan::local, global): Save interesting branch
relocs and relocs for ifunc.  Adjust calls to plt entry functions.
(Target_powerpc::do_finalize_sections): Only make reg save/restore
functions on final link.
(Target_powerpc::Relocate::relocate): Adjust lookup of call stubs.
Handle long branch destinations too.
(Target_powerpc::do_dynsym_value, do_plt_address_for_global,
do_plt_address_for_local): Adjust lookup of plt call stubs.

11 years ago*** empty log message ***
gdbadmin [Mon, 3 Dec 2012 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

11 years agodaily update
Alan Modra [Sun, 2 Dec 2012 23:00:04 +0000 (23:00 +0000)]
daily update

11 years ago*** empty log message ***
gdbadmin [Sun, 2 Dec 2012 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

11 years agodaily update
Alan Modra [Sat, 1 Dec 2012 23:00:05 +0000 (23:00 +0000)]
daily update

11 years agogdb/
Yao Qi [Sat, 1 Dec 2012 02:16:28 +0000 (02:16 +0000)]
gdb/
2012-11-30  Yao Qi  <yao@codesourcery.com>

* breakpoint.c (print_one_breakpoint_location): Indent code.

11 years ago*** empty log message ***
gdbadmin [Sat, 1 Dec 2012 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

11 years agodaily update
Alan Modra [Fri, 30 Nov 2012 23:00:03 +0000 (23:00 +0000)]
daily update

11 years agold/testsuite/
Roland McGrath [Fri, 30 Nov 2012 21:14:02 +0000 (21:14 +0000)]
ld/testsuite/
* ld-elf/ehdr_start.s: Put reference in .rodata section, not .data.

11 years ago * scripttempl/epiphany_4x4.sc, emulparams/elf32epiphany_4x4.sh: Add.
Joern Rennecke [Fri, 30 Nov 2012 18:28:38 +0000 (18:28 +0000)]
    * scripttempl/epiphany_4x4.sc, emulparams/elf32epiphany_4x4.sh: Add.
        * emultempl/epiphanyelf_4x4.em: Likewise.
        * configure.tgt: Add elf32epiphany_4x4 support.
        * Makefile.am: Likewise.
        * Makefile.in: Regenerate.

11 years ago2012-11-30 Oleg Raikhman <oleg@adapteva.com>
Joern Rennecke [Fri, 30 Nov 2012 17:54:58 +0000 (17:54 +0000)]
2012-11-30  Oleg Raikhman  <oleg@adapteva.com>
            Joern Rennecke  <joern.rennecke@embecosm.com>

cpu:
        * epiphany.cpu (keyword gr-names): Move sb/sl/ip after r9/r10/r12.
        (load_insn): Add NO-DIS attribute to x, p, d, dpm, dl0, dl0.l.
        (testset-insn): Add NO_DIS attribute to t.l.
        (store-insn): Add NO-DIS attribute to x.l, p.l, d.l, dpm.l, dl0.l.
        (move-insns): Add NO-DIS attribute to cmov.l.
        (op-mmr-movts): Add NO-DIS attribute to movts.l.
        (op-mmr-movfs): Add NO-DIS attribute to movfs.l.
        (op-rrr): Add NO-DIS attribute to .l.
        (shift-rrr): Add NO-DIS attribute to .l.
        (op-shift-rri): Add NO-DIS attribute to i32.l.
        (bitrl, movtl): Add NO-DIS attribute.
        (op-iextrrr): Add NO-DIS attribute to .l
        (op-two_operands-float, op-fabs-float): Add NO-DIS attribute to f32.l.
        (op-fix2float-float, op-float2fix-float, op-fextop-float): Likewise.

opcodes:
        * epiphany-desc.c, epiphany-desc.h, epiphany-opc.c: Regenerate.

11 years agoMerge g++/xg++ changes from GCC
Jan-Benedict Glaw [Fri, 30 Nov 2012 15:02:40 +0000 (15:02 +0000)]
Merge g++/xg++ changes from GCC

* configure.ac: Merge from GCC.
* Makefile.tpl: Dito.
* Makefile.in: Dito.
* configure: Dito.

11 years agogdb/
Yao Qi [Fri, 30 Nov 2012 14:46:39 +0000 (14:46 +0000)]
gdb/
2012-11-30  Yao Qi  <yao@codesourcery.com>

* breakpoint.c (print_one_breakpoint_location): Combine two
blocks handling 'hit count' together.

11 years agogdb/
Yao Qi [Fri, 30 Nov 2012 14:35:50 +0000 (14:35 +0000)]
gdb/
2012-11-30  Yao Qi  <yao@codesourcery.com>

* infrun.c (error_is_running, ensure_not_running): Move them
to ...
* infcmd.c (error_is_running, ensure_not_running): ... here.
Make them 'static'.
* inferior.h: Remove declarations of error_is_running and
ensure_not_running.

11 years agogdb/
Yao Qi [Fri, 30 Nov 2012 07:42:57 +0000 (07:42 +0000)]
gdb/
2012-11-30  Yao Qi  <yao@codesourcery.com>

* tic6x-linux-tdep.c (tic6x_register_sigcontext_offset): Don't
check REGNUM >= 0.

11 years agogdb/
Yao Qi [Fri, 30 Nov 2012 07:24:48 +0000 (07:24 +0000)]
gdb/
2012-11-30  Yao Qi  <yao@codesourcery.com>

* infrun.c: Make the declaration of 'init_infwait_state'
static.
(init_infwait_state): Make it 'static'.

11 years ago * powerpc.c (Target_powerpc::Scan::global): Don't emit relative
Alan Modra [Fri, 30 Nov 2012 05:01:20 +0000 (05:01 +0000)]
* powerpc.c (Target_powerpc::Scan::global): Don't emit relative
relocs against protected symbols when building 32-bit shared libs.

11 years ago * powerpc.cc (Target_powerpc::make_plt_section): Add symtab
Alan Modra [Fri, 30 Nov 2012 04:50:00 +0000 (04:50 +0000)]
* powerpc.cc (Target_powerpc::make_plt_section): Add symtab
param.  Call got_section() to make .got.  Update all callers
and their callers and so on.

11 years ago * powerpc.cc (Powerpc_relobj::do_scan_relocs): Make STB_LOCAL
Alan Modra [Fri, 30 Nov 2012 04:47:08 +0000 (04:47 +0000)]
* powerpc.cc (Powerpc_relobj::do_scan_relocs): Make STB_LOCAL
_GLOBAL_OFFSET_TABLE_ rather than STB_WEAK.
(Output_data_got_powerpc::make_header): Update _GLOBAL_OFFSET_TABLE_
value if it already exists.

11 years ago*** empty log message ***
gdbadmin [Fri, 30 Nov 2012 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

11 years agoopcodes/
Roland McGrath [Thu, 29 Nov 2012 23:42:03 +0000 (23:42 +0000)]
opcodes/
* s390-mkopc.c (file_header): Add const.

11 years agodaily update
Alan Modra [Thu, 29 Nov 2012 23:00:03 +0000 (23:00 +0000)]
daily update

11 years agoopcodes/Changelog:
Michael Eager [Thu, 29 Nov 2012 21:09:01 +0000 (21:09 +0000)]
opcodes/Changelog:
* microblaze-opc.h: Rename INST_TYPE_RD_R1_SPECIAL to
INST_TYPE_R1_R2_SPECIAL
* microblaze-dis.c (print_insn_microblaze): Same.
gas/Changelog
* gas/config/tc-microblaze.c: Rename INST_TYPE_RD_R1_SPECIAL to
INST_TYPE_R1_R2_SPECIAL, don't set RD for wic.

11 years ago * gdb.base/gnu-debugdata.exp (run, pipeline): Don't use lassign.
Tom Tromey [Thu, 29 Nov 2012 20:53:24 +0000 (20:53 +0000)]
* gdb.base/gnu-debugdata.exp (run, pipeline): Don't use lassign.

11 years ago * python/python.c (finalize_python): Cast unused PyGILState_Ensure
Ulrich Weigand [Thu, 29 Nov 2012 19:11:48 +0000 (19:11 +0000)]
* python/python.c (finalize_python): Cast unused PyGILState_Ensure
return value to void to avoid compiler warning.

11 years agobfd/
Roland McGrath [Thu, 29 Nov 2012 19:07:53 +0000 (19:07 +0000)]
bfd/
* elf-nacl.c (segment_eligible_for_headers): Disallow writable segments.

11 years agoChangeLog:
Ulrich Weigand [Thu, 29 Nov 2012 18:56:23 +0000 (18:56 +0000)]
ChangeLog:

* opencl-lang.c (opencl_print_type): New function.
(opencl_language_arch_info): Install it.

testsuite/ChangeLog:

* gdb.opencl/convs_casts.exp: Always expect standard vector type names.
* gdb.opencl/datatypes.exp: Likewise.
* gdb.opencl/operators.exp: Likewise.
* gdb.opencl/vec_comps.exp: Likewise.

11 years ago * gdb.texinfo (SVR4 Process Information): Document missing
Tom Tromey [Thu, 29 Nov 2012 17:49:20 +0000 (17:49 +0000)]
* gdb.texinfo (SVR4 Process Information): Document missing
"info proc" subcommands.

11 years ago * contrib/ari/gdb_ari.sh: Remove rules for xasprintf and
Tom Tromey [Thu, 29 Nov 2012 17:23:18 +0000 (17:23 +0000)]
* contrib/ari/gdb_ari.sh: Remove rules for xasprintf and
xvasprintf.
* common/common-utils.c (xasprintf, xvasprintf): Remove.
* common/common-utils.h (xasprintf, xvasprintf): Remove.