binutils-gdb.git
11 years agogdb/
Jan Kratochvil [Tue, 25 Dec 2012 08:03:33 +0000 (08:03 +0000)]
gdb/
* ada-lang.c (is_known_support_routine): New variable fullname.  Use
access call to verify the symtab_to_fullname result.
* breakpoint.c (print_breakpoint_location, update_static_tracepoint):
Remove NULL check of symtab_to_fullname result.
* cli/cli-cmds.c (edit_command): Likewise.
* mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
(mi_cmd_file_list_exec_source_files): Likewise.
* python/py-symtab.c (stpy_fullname): Likewise.
* source.c (symtab_to_fullname): Update function comment.  Rename
variable r to fd, move it to inner block.  Always provide non-NULL
result.
(print_source_lines_base): Remove NULL check of symtab_to_fullname
result.
* stack.c (print_frame): Likewise.
* symtab.c (iterate_over_some_symtabs, find_line_symtab, sources_info):
Likewise.
* tracepoint.c (print_one_static_tracepoint_marker): Likewise.

gdb/doc/
* gdb.texinfo (GDB/MI Data Manipulation) (fullname): Make it always
present.
(GDB/MI File Commands) (-file-list-exec-source-files): Make the
fullname output always present.

gdb/testsuite/
* gdb.mi/mi-fullname-deleted.exp: New file.

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

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

11 years agogdb/
Jan Kratochvil [Mon, 24 Dec 2012 19:42:16 +0000 (19:42 +0000)]
gdb/
Code cleanup.
* dwarf2read.c (fixup_go_packaging): Do not check symtab->FILENAME for
NULL.
* linespec.c (add_sal_to_sals): Likewise.
* psympriv.h (allocate_psymtab): Add ATTRIBUTE_NONNULL.
* stack.c (print_frame): Do not check symtab->FILENAME for NULL.
* symfile.h (allocate_symtab): Add ATTRIBUTE_NONNULL.
* symtab.h (struct symtab): Add comment it is never NULL for filename.
* tracepoint.c (set_traceframe_context): Do not check symtab->FILENAME
for NULL.
* tui/tui-source.c (tui_set_source_content): Likewise.

11 years agogdb/
Jan Kratochvil [Mon, 24 Dec 2012 19:40:05 +0000 (19:40 +0000)]
gdb/
* breakpoint.c (breakpoint_re_set): Remove the skip_re_set call.
* infrun.c (handle_inferior_event): Rename the called function to
function_name_is_marked_for_skip, pass it TMP_SAL.
* skip.c (struct skiplist_entry): Update function_name comment.  Remove
fields pc, gdbarch and pending.
(skip_function_pc): Rename this forward declaration to ...
(skip_function): ... here.
(skip_file_command): Remove variable pending and its use, remove
initialization of E fields pending and gdbarch.  Do not use SYMTAB
filename, use the specified one.
(skip_function_command): Remove variable func_pc, do not set it.
Update the caller of skip_function.  Replace decode_line_1 call by
a lookup_symbol call.  Remove variables orig_arg, decode_exception and
sals.  Update the caller of skip_function.
(skip_info): Remove variable address_width and its use.  Do not print
address (PC).  Renumber column 5 to 4.
(skip_function_pc): Rename to ...
(skip_function): ... here and remove its parameters pc, arch and
pending.  Update the function comment and no longer use those
parameters.
(function_pc_is_marked_for_skip): Rename to ...
(function_name_is_marked_for_skip): ... here, update function comment
just to a skip.h reference, replace pc parameter by function_name and
function_sal.  No longer use E field pending and pc.  Remove variables
searched_for_sal, sal and filename.  Call compare_filenames_for_search
instead of just strcmp.
(skip_re_set): Remove the function.
* skip.h (struct symtab_and_line): New declaration.
(function_pc_is_marked_for_skip): Rename to ...
(function_name_is_marked_for_skip): ... here, replace pc parameter by
function_name and function_sal, update the function comment.

gdb/testsuite/
* gdb.base/skip-solib.exp (info skip with pending file): Update the
expected output.
(info skip with pending file): Remove.
(ignoring function in solib, info skip for function multiply): Update
the expected output.
* gdb.base/skip.ex (skip (main), skip function baz, info skip)
(info skip (delete 1), info skip after disabling all)
(info skip after enabling all, info skip after disabling 4 2-3)
(info skip after enabling 2-3, info skip 2-3)
(info skip after deleting 2 3): Update the expected output.
* gdb.linespec/base/two/thefile.cc (n): New variable v, split the
statement to its initialization and return.
* gdb.linespec/skip-two.exp: New file.

11 years agobfd: also enable x86_64pei_vec for 64bit i386-linux targets
Mike Frysinger [Mon, 24 Dec 2012 02:47:51 +0000 (02:47 +0000)]
bfd: also enable x86_64pei_vec for 64bit i386-linux targets

We enable x86_64pei_vec for x86_64-linux targets, so we should list this
in the 64bit i386-linux vec section.  This is useful for when we want to
build 64bit EFI code on an i386 system.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
11 years ago*** empty log message ***
gdbadmin [Mon, 24 Dec 2012 00:00:36 +0000 (00:00 +0000)]
*** empty log message ***

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

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

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

11 years ago * ui-file.h (tee_file_new): Add extern modifier in header declaration.
Pierre Muller [Sat, 22 Dec 2012 18:53:36 +0000 (18:53 +0000)]
* ui-file.h (tee_file_new): Add extern modifier in header declaration.

11 years ago * gdbint.texinfo (Function prototypes): Require use of "extern"
Pierre Muller [Sat, 22 Dec 2012 17:51:11 +0000 (17:51 +0000)]
    * gdbint.texinfo (Function prototypes): Require use of "extern"
        modifier for function prototypes in headers.

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

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

11 years agoCheck R_X86_64_standard for unrecognized relocation
H.J. Lu [Fri, 21 Dec 2012 20:54:59 +0000 (20:54 +0000)]
Check R_X86_64_standard for unrecognized relocation

* elf64-x86-64.c (elf_x86_64_relocate_section): Check
R_X86_64_standard instead of R_X86_64_max for unrecognized
relocation.

11 years agoProperly adjust h->plt.refcount
H.J. Lu [Fri, 21 Dec 2012 18:15:22 +0000 (18:15 +0000)]
Properly adjust h->plt.refcount

bfd/

PR ld/14980
* elf32-i386.c (elf_i386_adjust_dynamic_symbol): Properly
adjust h->plt.refcount.
* elf64-x86-64.c (elf_x86_64_adjust_dynamic_symbol): Likewise.

ld/testsuite/

PR ld/14980
* ld-ifunc/ifunc-14c.s: New file.
* ld-ifunc/ifunc-14e-i386.d: Likewise.
* ld-ifunc/ifunc-14e-x86-64.d: Likewise.
* ld-ifunc/ifunc-14f-i386.d: Likewise.
* ld-ifunc/ifunc-14f-x86-64.d: Likewise.

11 years ago * layout.cc (Layout::special_ordering_of_input_section): New
Ian Lance Taylor [Fri, 21 Dec 2012 06:24:31 +0000 (06:24 +0000)]
* layout.cc (Layout::special_ordering_of_input_section): New
function.
(Layout::layout): If input section requires special ordering, must
sort input sections.
(Layout::make_output_section): May sort .text input sections.
(Layout::is_section_name_prefix_grouped): Remove.
* layout.h (class Layout): Declare
special_ordering_of_input_section.  Don't declare
is_section_name_prefix_grouped.
* output.cc (Output_section::add_input_section): Revert last
change.
(Output_section::Input_section_sort::match_file_name): Don't crash
if called on output section data.
(Output_section::Input_section_sort_compare): Sort based on
special ordering.
(Output_section::Input_section_sort_section_order_index_compare):
Revert last patch.
(Output_section::sort_attached_input_sections): Likewise.

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

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

11 years ago * Makefile.def (install-target-libgo): Depend on
Jan-Benedict Glaw [Thu, 20 Dec 2012 21:59:17 +0000 (21:59 +0000)]
* Makefile.def (install-target-libgo): Depend on
install-target-libatomic. Merged from GCC repo.
* Makefile.in: Regenerate.

11 years agoFix commit date in previous commit.
Richard Earnshaw [Thu, 20 Dec 2012 16:31:15 +0000 (16:31 +0000)]
Fix commit date in previous commit.

11 years ago2012-12-20 Greta Yorsh <Greta.Yorsh@arm.com>
Richard Earnshaw [Thu, 20 Dec 2012 16:19:53 +0000 (16:19 +0000)]
2012-12-20  Greta Yorsh  <Greta.Yorsh@arm.com>

* config/tc-arm.c (rfefa,rfeea,rfeed): Fix encoding.
(rfe,srs,srsea,srsfa,srsed,srsfd): Add missing mnemonics.

* gas/arm/srs-t2.s: Add tests for missing srs modes.
* gas/arm/srs-t2.l: Update expected output.
* gas/arm/srs-arm.s: Add tests for missing srs modes.
* gas/arm/srs-arm.l: Update expected output.
* gas/arm/archv6.s: Add tests for missing rfe modes.
* gas/arm/archv6.d: Update expected output.

11 years ago * serial.c (deprecated_serial_fd): Remove.
Tom Tromey [Thu, 20 Dec 2012 15:30:25 +0000 (15:30 +0000)]
* serial.c (deprecated_serial_fd): Remove.
* serial.h (deprecated_serial_fd): Remove.

11 years ago * gdb.base/maint.exp: Handle testing with .gdb_index.
Doug Evans [Thu, 20 Dec 2012 05:05:49 +0000 (05:05 +0000)]
* gdb.base/maint.exp: Handle testing with .gdb_index.

11 years agoRevert GPL version change in sim/bfin/aclocal.m4
Joel Brobecker [Thu, 20 Dec 2012 05:01:54 +0000 (05:01 +0000)]
Revert GPL version change in sim/bfin/aclocal.m4

sim/bfin/ChangeLog:

        * aclocal.m4: Revert the previous change changing
        the license from GPL v2 or later to GPL v3 or later
        (this file was generated).

11 years agoRevert GPL version change in linux-fixed-code.s.
Joel Brobecker [Thu, 20 Dec 2012 04:18:53 +0000 (04:18 +0000)]
Revert GPL version change in linux-fixed-code.s.

sim/bfin/ChangeLog:

* linux-fixed-code.s: Revert the previous change changing
the license from GPL v2 or later to GPL v3 or later.

11 years agogdb/
Yao Qi [Thu, 20 Dec 2012 01:07:04 +0000 (01:07 +0000)]
gdb/
2012-12-20  Yao Qi  <yao@codesourcery.com>

* maint.c (_initialize_maint_cmds): Move code ...
* symmisc.c (_initialize_symmisc): ... to here.
(maintenance_print_msymbols): Make it static.
(maintenance_print_objfiles): Likewise.
(maintenance_print_symbols): Likewise.
(maintenance_info_symtabs): Likewise.
* symtab.h (maintenance_print_msymbols): Remove declaration.
(maintenance_print_objfiles, maintenance_print_symbols): Likewise.
(maintenance_info_symtabs): Likewise.

11 years agogdb/
Yao Qi [Thu, 20 Dec 2012 00:58:14 +0000 (00:58 +0000)]
gdb/
2012-12-20  Yao Qi  <yao@codesourcery.com>

* maint.c (_initialize_maint_cmds): Move code to ...
* psymtab.c (_initialize_psymtab): ... here.  New.
Include "gdbcmd.h".
(maintenance_print_psymbols): Make it static.
(maintenance_info_psymtabs, maintenance_check_symtabs): Likewise.
* symtab.h (maintenance_print_psymbols): Remove declaration.
(maintenance_check_symtabs, maintenance_info_psymtabs): Likewise.

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

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

11 years ago * MAINTAINERS: Add myself to write-after-approval maintainers.
Maxim Kuvyrkov [Wed, 19 Dec 2012 22:07:44 +0000 (22:07 +0000)]
* MAINTAINERS: Add myself to write-after-approval maintainers.

11 years ago2012-12-19 Andreas Tobler <andreast@neon.andreas.nets>
Andreas Tobler [Wed, 19 Dec 2012 20:57:55 +0000 (20:57 +0000)]
2012-12-19  Andreas Tobler  <andreast@neon.andreas.nets>

        * mips-tdep.c (micromips_deal_with_atomic_sequence): Initialize
        branch_bp to keep gcc happy.

11 years agoFix indentation in the last checkin
H.J. Lu [Wed, 19 Dec 2012 19:50:40 +0000 (19:50 +0000)]
Fix indentation in the last checkin

11 years agoFix and use elf_append_rel
H.J. Lu [Wed, 19 Dec 2012 19:45:43 +0000 (19:45 +0000)]
Fix and use elf_append_rel

* elf32-i386.c (elf_i386_relocate_section): Replace
bfd_elf32_swap_reloc_out with elf_append_rel.
(elf_i386_finish_dynamic_symbol): Likewise.

* elflink.c (elf_append_rel): Call swap_reloc_out instead of
swap_reloca_out.

11 years agoReindent elf_i386_finish_dynamic_symbol
H.J. Lu [Wed, 19 Dec 2012 19:41:18 +0000 (19:41 +0000)]
Reindent elf_i386_finish_dynamic_symbol

* elf32-i386.c (elf_i386_finish_dynamic_symbol): Reindent.

11 years agoChange copyright from Cavium to FSF.
Joel Brobecker [Wed, 19 Dec 2012 15:49:44 +0000 (15:49 +0000)]
Change copyright from Cavium to FSF.

gdb/testsuite/ChangeLog:

        * gdb.arch/mips-octeon-bbit.exp: Fix copyright header from
        Cavium to FSF.

11 years agoAdd copyright header to stubs/buildvms.com.
Joel Brobecker [Wed, 19 Dec 2012 10:54:54 +0000 (10:54 +0000)]
Add copyright header to stubs/buildvms.com.

gdb/stubs/ChangeLog:

        * buildvms.com: Add copyright header.

11 years agoFix copyright years in gdbarch.h and gdbarch.c.
Joel Brobecker [Wed, 19 Dec 2012 08:20:43 +0000 (08:20 +0000)]
Fix copyright years in gdbarch.h and gdbarch.c.

copyright.py was updating gdbarch.sh' copyright years, but not
the function that genarates the copyright headers for gdbarch.[hc].

This patch makes the following changes:
  - fixes gdbarch.sh and regenerates gdbarch.[hc]

  - Modify copyright.py to remind the user to update gdbarch.sh
    by hand.  This should also remind the user to rerun the script
    and update gdbarch.[hc] - see next point;

  - Allow copyright.py to update gdbarch.[hc]'c copyright years,
    even though these are generated files;  This should free
    the user from having to update gdbarch.[hc] himself;

gdb/ChangeLog:

        * gdbarch.sh (copyright): Update copyright years.
        * gdbarch.h, gdbarch.c: Regenerate.
        * copyright.py (EXCLUDE_LIST): Remove gdbarch.h and gdbarch.c.
        (MULTIPLE_COPYRIGHT_HEADERS): Add 'gdb/gdbarch.sh'.

11 years agoupdate copyright notices in various GDB files.
Joel Brobecker [Wed, 19 Dec 2012 08:19:59 +0000 (08:19 +0000)]
update copyright notices in various GDB files.

Update some files in GDB that were accidently left with a GPL v2
copyright header.

Update some files where the copyright notice still provides the
old contact info, using the approach for providing the FSF's contact
info.

gdb/ChangeLog:

        * acinclude.m4: Update contact info in copyright notice.

gdb/doc/ChangeLog:

        * refcard.tex: Update copyright notice to GPL v3 or later.
        Update contact info.

gdb/testsuite/ChangeLog:

        * dg-extract-results.sh: Update contact info in copyright notice.
        * gdb.arch/mips-octeon-bbit.exp: Update copyright notice to
        GPL v3 or later.  Update contact info.
        * gdb.fortran/logical.f90, gdb.threads/watchpoint-fork-child.c,
        gdb.threads/watchpoint-fork-mt.c,
        gdb.threads/watchpoint-fork-parent.c,
        gdb.threads/watchpoint-fork-st.c,
        gdb.threads/watchpoint-fork.h: Likewise.

11 years agogdb/
Yao Qi [Wed, 19 Dec 2012 07:51:50 +0000 (07:51 +0000)]
gdb/
2012-12-19  Yao Qi  <yao@codesourcery.com>

* maint.c (maintenance_print_statistics): Make it static.
* symtab.h (maintenance_print_statistics): Remove declaration.

11 years agoUpdate sim's COPYING files.
Joel Brobecker [Wed, 19 Dec 2012 07:19:14 +0000 (07:19 +0000)]
Update sim's COPYING files.

sim/arm/ChangeLog:

* COPYING: Update to GPL version 3.

sim/ppc/ChangeLog:

* COPYING: Update to GPL version 3.

11 years ago[sim] Update old contact info in GPL license notices
Joel Brobecker [Wed, 19 Dec 2012 07:18:22 +0000 (07:18 +0000)]
[sim] Update old contact info in GPL license notices

sim/ChangeLog:

        Update old contact info in GPL license notices.

11 years agoUpdate sim copyright headers from GPLv2-or-later to GPLv3-or-later.
Joel Brobecker [Wed, 19 Dec 2012 07:12:02 +0000 (07:12 +0000)]
Update sim copyright headers from GPLv2-or-later to GPLv3-or-later.

gdb/sim/ChangeLog:

        Update the non-FSF-copyrighted files in sim to GPLv3 or later.

11 years agoNEWS: Announce ppc-lynx178 support.
Joel Brobecker [Wed, 19 Dec 2012 04:28:53 +0000 (04:28 +0000)]
NEWS: Announce ppc-lynx178 support.

gdb/ChangeLog:

        * NEWS: Add entry announcing ppc-lynx178 support.

11 years agoRevert "Import gnulib's errno module."
Joel Brobecker [Wed, 19 Dec 2012 04:13:54 +0000 (04:13 +0000)]
Revert "Import gnulib's errno module."

There are some compatibility concerns with libiconv to be
discussed first.

gdb/ChangeLog:

        Revert the following change:
        * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add errno.
        * gnulib/import/errno.in.h: Import.
        * gnulib/import/m4/errno_h.m4: Import.
        * gnulib/aclocal.m4: Regenerate.
        * gnulib/configure: Regenerate.
        * gnulib/import/Makefile.am: Update.
        * gnulib/import/Makefile.in: Update.
        * gnulib/import/m4/gnulib-cache.m4: Update.
        * gnulib/import/m4/gnulib-comp.m4: Update.

11 years agoGroup text sections with prefixes .text.unlikely,.text.hot and .text.startup
Sriraman Tallam [Wed, 19 Dec 2012 02:55:15 +0000 (02:55 +0000)]
Group text sections with prefixes .text.unlikely,.text.hot and .text.startup
by default.

2012-12-18  Sriraman Tallam  <tmsriram@google.com>

* layout.cc (Layout::is_section_name_prefix_grouped): New function.
* layout.h (Layout::is_section_name_prefix_grouped): New function.
* output.cc (Output_section::add_input_section): Check if section
name contains special prefix.  Keep input sections to sort such
sections.
(Output_section::Input_section_sort_section_order_index_compare
 ::operator()): Group sections according to prefixes.
* (Output_section::sort_attached_input_sections): Add condition
to Input_section_entry constructor call.
* testsuite/Makefile.am (text_section_grouping): New test.
* testsuite/Makefile.in: Regenerate.
* testsuite/text_section_grouping.cc: New file.
* testsuite/text_section_grouping.sh: New file.

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

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

11 years agold/
Roland McGrath [Tue, 18 Dec 2012 20:42:43 +0000 (20:42 +0000)]
ld/
* ld.texinfo (Options): Describe -Trodata-segment.
* ldlex.h (enum option_values): Add OPTION_TRODATA_SEGMENT.
* lexsup.c (ld_options, parse_args): Handle -Trodata-segment.
* scripttempl/elf.sc (RODATA_ADDR, SHLIB_RODATA_ADDR): Wrap
SEGMENT_START("rodata-segment", ...) + SIZEOF_HEADERS around the value.

11 years agofix some bad ChangeLog dates from today
Tom Tromey [Tue, 18 Dec 2012 19:33:44 +0000 (19:33 +0000)]
fix some bad ChangeLog dates from today

11 years ago * defs.h (directory_command): Don't declare.
Tom Tromey [Tue, 18 Dec 2012 19:32:41 +0000 (19:32 +0000)]
* defs.h (directory_command): Don't declare.
* source.c (directory_command): Now static.

11 years ago * infcmd.c (all_registers_info, nexti_command, stepi_command)
Tom Tromey [Tue, 18 Dec 2012 19:31:17 +0000 (19:31 +0000)]
* infcmd.c (all_registers_info, nexti_command, stepi_command)
(continue_command, interrupt_target_command): Now static.
(registers_info): Remove declaration.
* inferior.h (all_registers_info, nexti_command, stepi_command)
(continue_command, interrupt_target_command): Don't declare.

11 years ago * cli/cli-cmds.c (apropos_command): Now static.
Tom Tromey [Tue, 18 Dec 2012 19:27:35 +0000 (19:27 +0000)]
* cli/cli-cmds.c (apropos_command): Now static.

11 years ago * breakpoint.c (dprintf_command): Now static.
Tom Tromey [Tue, 18 Dec 2012 19:27:00 +0000 (19:27 +0000)]
* breakpoint.c (dprintf_command): Now static.

11 years ago * Makefile.in (init.c): Declare initialize_all_files;
Tom Tromey [Tue, 18 Dec 2012 19:26:29 +0000 (19:26 +0000)]
* Makefile.in (init.c): Declare initialize_all_files;
don't include call-cmds.h.
* call-cmds.h: Remove.
* symtab.c: Don't include call-cmds.h.
* top.c: Don't include call-cmds.h.  Declare
initialize_all_files.

11 years ago * symfile.c (list_overlays_command, map_overlay_command)
Tom Tromey [Tue, 18 Dec 2012 19:25:24 +0000 (19:25 +0000)]
* symfile.c (list_overlays_command, map_overlay_command)
(unmap_overlay_command): Now static.

11 years ago * cli/cli-cmds.c (_initialize_cli_cmds): Remove "document",
Tom Tromey [Tue, 18 Dec 2012 19:24:40 +0000 (19:24 +0000)]
* cli/cli-cmds.c (_initialize_cli_cmds): Remove "document",
"define", "while", and "if" commands.
* cli/cli-script.c (while_command, if_command, define_command)
(document_command): Now static.
(_initialize_cli_script): New function.
* cli/cli-script.h (while_command, if_command, define_command)
(document_command): Don't declare.

11 years ago * cli/cli-cmds.c (_initialize_cli_cmds): New function.
Tom Tromey [Tue, 18 Dec 2012 19:23:33 +0000 (19:23 +0000)]
* cli/cli-cmds.c (_initialize_cli_cmds): New function.
(init_cli_cmds): Move most code into new function.

11 years ago * minsyms.c (lookup_solib_trampoline_symbol_by_pc): Now static.
Tom Tromey [Tue, 18 Dec 2012 19:21:53 +0000 (19:21 +0000)]
* minsyms.c (lookup_solib_trampoline_symbol_by_pc): Now static.
* minsyms.h (lookup_solib_trampoline_symbol_by_pc): Don't
declare.

11 years agomerge from gcc
DJ Delorie [Tue, 18 Dec 2012 17:41:27 +0000 (17:41 +0000)]
merge from gcc

11 years agoPR ld/14736
Michael Eager [Tue, 18 Dec 2012 16:01:02 +0000 (16:01 +0000)]
PR ld/14736
bfd:
* elf32-microblaze.c (calc_fixup): Add end range.
gas/testsuite:
* gas/microblaze/relax_size.exp: New file - test object size after linker
relaxation
* gas/microblaze/relax_size.s: Likewise
* gas/microblaze/relax_size.elf: Likewise
* gas/microblaze/relax_size2.s: Likewise
* gas/microblaze/relax_size2.elf: Likewise

11 years agoPort GDB to powerpc-lynx178.
Joel Brobecker [Tue, 18 Dec 2012 14:52:59 +0000 (14:52 +0000)]
Port GDB to powerpc-lynx178.

gdb/ChangeLog:

        * defs.h (enum gdb_osabi): Add GDB_OSABI_LYNXOS178.
        * osabi.c (gdb_osabi_names): Add entry for GDB_OSABI_LYNXOS178.
        * xcoffread.c (xcoff_get_core_n_import_files): New function.
        (xcoff_get_n_import_files): New function.
        * xcoffread.h (xcoffread.h): Add declaration.
        * rs6000-aix-tdep.c: #include "xcoffread.h".
        (rs6000_aix_osabi_sniffer): Do not return GDB_OSABI_AIX for
        XCOFF executables that do not depend on any shared library.
        * rs6000-lynx178-tdep.c: New file.
        * configure.tgt: Add powerpc-*-lynx*178 handling.
        * Makefile.in (ALL_TARGET_OBS): Add rs6000-lynx178-tdep.o.
        (ALLDEPFILES): Add rs6000-lynx178-tdep.c.

11 years ago PR ld/14962
Alan Modra [Tue, 18 Dec 2012 13:38:10 +0000 (13:38 +0000)]
PR ld/14962
* ld-scripts/pr14962.d, * ld-scripts/pr14962.t,
* ld-scripts/pr14962a.s, * ld-scripts/pr14962b.s: New test.
* ld-scripts/expr.exp: Run it.

11 years ago * elf.c (swap_out_syms): Set shndx to SHN_ABS when not one of
Alan Modra [Tue, 18 Dec 2012 13:25:46 +0000 (13:25 +0000)]
* elf.c (swap_out_syms): Set shndx to SHN_ABS when not one of
the special MAP_* values.

11 years agoFix ChangeLog format.
Markus Metzger [Tue, 18 Dec 2012 08:01:42 +0000 (08:01 +0000)]
Fix ChangeLog format.

11 years ago2012-12-18 Hui Zhu <hui_zhu@mentor.com>
Hui Zhu [Tue, 18 Dec 2012 07:01:58 +0000 (07:01 +0000)]
2012-12-18  Hui Zhu  <hui_zhu@mentor.com>

* ui-file.c (ui_file): Add to_fseek.
(ui_file_new): Call set_ui_file_fseek.
(null_file_fseek, ui_file_fseek, set_ui_file_fseek,
 stdio_file_fseek): New functions.
(stdio_file_new): Call set_ui_file_fseek.
* ui-file.h (ui_file_fseek_ftype): New typedef.
(set_ui_file_fseek, ui_file_fseek): New externs.

11 years ago2012-12-18 Hui Zhu <hui_zhu@mentor.com>
Hui Zhu [Tue, 18 Dec 2012 06:39:37 +0000 (06:39 +0000)]
2012-12-18  Hui Zhu  <hui_zhu@mentor.com>

* ui-file.c (set_ui_file_flush): Change flush to flush_ptr.
(set_ui_file_isatty): Change isatty to isatty_ptr.
(set_ui_file_rewind): Change rewind to rewind_ptr.
(set_ui_file_put): Change put to put_ptr.
(set_ui_file_write): Change write to write_ptr.
(set_ui_file_write_async_safe): Change write_async_safe to
write_async_safe_ptr.
(set_ui_file_read): Change read to read_ptr.
(set_ui_file_fputs): Change fputs to fputs_ptr.
(set_ui_file_data): Change delete to delete_ptr.

11 years agosolib-darwin.c: handle PIE when attaching processes.
Joel Brobecker [Tue, 18 Dec 2012 06:19:54 +0000 (06:19 +0000)]
solib-darwin.c: handle PIE when attaching processes.

gdb/ChangeLog:

        * solib-darwin.c (darwin_current_sos): Fix indentation.
        (darwin_read_exec_load_addr): New function.
        (darwin_solib_create_inferior_hook): Rebase executable.
        * objfiles.c (objfile_rebase1, objfile_rebase): New functions.
        * objfiles.h (objfile_rebase1, objfile_rebase): Add prototypes.

11 years agoImport gnulib's errno module.
Joel Brobecker [Tue, 18 Dec 2012 06:02:32 +0000 (06:02 +0000)]
Import gnulib's errno module.

gdb/ChangeLog:

        * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add errno.
        * gnulib/import/errno.in.h: Import.
        * gnulib/import/m4/errno_h.m4: Import.
        * gnulib/aclocal.m4: Regenerate.
        * gnulib/configure: Regenerate.
        * gnulib/import/Makefile.am: Update.
        * gnulib/import/Makefile.in: Update.
        * gnulib/import/m4/gnulib-cache.m4: Update.
        * gnulib/import/m4/gnulib-comp.m4: Update.

11 years agoUpdate gnulib to current HEAD.
Joel Brobecker [Tue, 18 Dec 2012 06:00:55 +0000 (06:00 +0000)]
Update gnulib to current HEAD.

gdb/ChangeLog:

        * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
        8d5bd1402003bd0153984b138735adf537d960b0.
        * gnulib/aclocal.m4, configure, config.in: Regenerate.
        * gnulib/import/m4/extern-inline.m4: Import.
        * gnulib/import/wctype-h.c: Import.
        * gnulib/import/Makefile.am: Update.
        * gnulib/import/Makefile.in: Update.
        * gnulib/import/alloca.in.h: Update.
        * gnulib/import/extra/snippet/warn-on-use.h: Update.
        * gnulib/import/localcharset.c: Update.
        * gnulib/import/m4/fcntl-o.m4: Update.
        * gnulib/import/m4/gnulib-cache.m4: Update.
        * gnulib/import/m4/gnulib-comp.m4: Update.
        * gnulib/import/m4/wctype_h.m4: Update.
        * gnulib/import/stdbool.in.h: Update.
        * gnulib/import/verify.h: Update.
        * gnulib/import/wctype.in.h: Update.

11 years agoFix author in last ChangeLog entry.
Joel Brobecker [Tue, 18 Dec 2012 04:41:41 +0000 (04:41 +0000)]
Fix author in last ChangeLog entry.

11 years agoAdd call to autoheader in update-gnulib.sh.
Joel Brobecker [Tue, 18 Dec 2012 04:40:25 +0000 (04:40 +0000)]
Add call to autoheader in update-gnulib.sh.

gdb/ChangeLog:

        * gnulib/update-gnulib.sh: Add call to autoheader.

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

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

11 years agoEnable accidentally commented out code.
Doug Evans [Mon, 17 Dec 2012 19:40:24 +0000 (19:40 +0000)]
Enable accidentally commented out code.

11 years agold/testsuite/
Roland McGrath [Mon, 17 Dec 2012 19:32:52 +0000 (19:32 +0000)]
ld/testsuite/
* ld-elf/elf.exp (stack exec, stack size): Run for *-*-nacl* targets.
* ld-i386/export-class.exp: Run for i?86-*-nacl* targets.

11 years agobfd/
Roland McGrath [Mon, 17 Dec 2012 19:13:07 +0000 (19:13 +0000)]
bfd/
* elf32-arm.c (elf32_arm_size_stubs): Skip input BFDs that are
not ARM ELF.

11 years ago2012-12-17 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston [Mon, 17 Dec 2012 17:46:09 +0000 (17:46 +0000)]
2012-12-17  Jeff Johnston  <jjohnstn@redhat.com>

        * COPYING.LIBGLOSS: Add license for bfin libgloss.

11 years agoRemove the leading zero
H.J. Lu [Mon, 17 Dec 2012 17:20:07 +0000 (17:20 +0000)]
Remove the leading zero

* ld-elf/var1.d: Remove the leading zero.

11 years agoAdd copyright notices
Nick Clifton [Mon, 17 Dec 2012 16:56:12 +0000 (16:56 +0000)]
Add copyright notices

11 years agoUpdate PR ld/14962 testcase
H.J. Lu [Mon, 17 Dec 2012 15:37:40 +0000 (15:37 +0000)]
Update PR ld/14962 testcase

11 years ago * top.c (xgdb_verbose): Remove.
Tom Tromey [Mon, 17 Dec 2012 15:11:56 +0000 (15:11 +0000)]
* top.c (xgdb_verbose): Remove.

11 years agoAdd a testcase for PR ld/14962
H.J. Lu [Mon, 17 Dec 2012 14:53:35 +0000 (14:53 +0000)]
Add a testcase for PR ld/14962

PR ld/14962
* ld-elf/var1.d: New file.
* ld-elf/var1.s: Likewise.
* ld-elf/var1.t: Likewise.

11 years agolynx-low: Add debug trace when new thread is discovered.
Joel Brobecker [Mon, 17 Dec 2012 11:17:12 +0000 (11:17 +0000)]
lynx-low: Add debug trace when new thread is discovered.

gdb/gdbserver/ChangeLog:

        * lynx-low.c (lynx_wait_1): Add debug trace before adding
        new thread.

11 years agoAdd PTRACE_GETTRACESIG handling in ptrace_request_to_str
Joel Brobecker [Mon, 17 Dec 2012 11:13:52 +0000 (11:13 +0000)]
Add PTRACE_GETTRACESIG handling in ptrace_request_to_str

We use this ptrace request when handling SIGTRAP signals,
and without this change, the debug trances show:

    PTRACE (<unknown-request>, ...

This patch fixes this.

gdb/gdbserver/ChangeLog:

        * lynx-low.c (ptrace_request_to_str): Add handling for
        PTRACE_GETTRACESIG.

11 years agoDelete unused variable in lynx_attach.
Joel Brobecker [Mon, 17 Dec 2012 11:03:00 +0000 (11:03 +0000)]
Delete unused variable in lynx_attach.

gdb/gdbserver/ChangeLog:

        * lynx-low.c (lynx_attach): Delete variable new_process.

11 years agoremove unused variable in lynx_create_inferior.
Joel Brobecker [Mon, 17 Dec 2012 11:02:47 +0000 (11:02 +0000)]
remove unused variable in lynx_create_inferior.

gdb/gdbserver/ChangeLog:

        * lynx-low.c (lynx_create_inferior): Delete variable new_process.

11 years agolynx-low.c: PTRACE_GETTHREADLIST may not be defined.
Joel Brobecker [Mon, 17 Dec 2012 10:51:29 +0000 (10:51 +0000)]
lynx-low.c: PTRACE_GETTHREADLIST may not be defined.

LynxOS 178 does not define this macro.

gdb/gdbserver/ChangeLog:

        * lynx-low.c (ptrace_request_to_str): Do not handle
        PTRACE_GETTHREADLIST if this macro does not exist.

11 years ago PR ld/14962
Alan Modra [Mon, 17 Dec 2012 00:16:49 +0000 (00:16 +0000)]
PR ld/14962
* ldexp.h (struct ldexp_control): Add "assign_name".
* ldexp.c (fold_name <NAME>): Compare and clear assign_name on match.
(exp_fold_tree_1): Remove existing code testing for self assignment.
Instead set and test expld.assign_name.
* ldlang.c (scan_for_self_assignment): Delete.
(print_assignment): Instead set and test expld.assign_name.

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

11 years agoDon't check IFUNC relocations in elf_*_check_relocs
H.J. Lu [Sun, 16 Dec 2012 23:01:13 +0000 (23:01 +0000)]
Don't check IFUNC relocations in elf_*_check_relocs

* elf32-i386.c (elf_i386_check_relocs): Don't check IFUNC
relocations here.
* elf64-x86-64.c (elf_x86_64_check_relocs): Likewise.

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

11 years agoAlso check local IFUNC references
H.J. Lu [Sun, 16 Dec 2012 20:31:08 +0000 (20:31 +0000)]
Also check local IFUNC references

bfd/

PR ld/14968
* elf32-i386.c (elf_i386_adjust_dynamic_symbol): Also check
local IFUNC references.
* elf64-x86-64.c (elf_x86_64_adjust_dynamic_symbol): Likewise.

ld/testsuite/

PR ld/14968
* ld-ifunc/ifunc-18a-i386.d: New file.
* ld-ifunc/ifunc-18a-x86-64.d: Likewise.
* ld-ifunc/ifunc-18a.s: Likewise.
* ld-ifunc/ifunc-18b-i386.d: Likewise.
* ld-ifunc/ifunc-18b-x86-64.d: Likewise.
* ld-ifunc/ifunc-18b.s: Likewise.
* ld-ifunc/ifunc-19a-i386.d: Likewise.
* ld-ifunc/ifunc-19a-x86-64.d: Likewise.
* ld-ifunc/ifunc-19a.s: Likewise.
* ld-ifunc/ifunc-19b-i386.d: Likewise.
* ld-ifunc/ifunc-19b-x86-64.d: Likewise.
* ld-ifunc/ifunc-19b.s: Likewise.

11 years agogdb/
Jan Kratochvil [Sun, 16 Dec 2012 19:00:04 +0000 (19:00 +0000)]
gdb/
Code cleanup.
* skip.c (skip_function_command, skip_file_command, skip_info): Remove
unused forward declarations.
(skip_file_command): Make variables symtab and filename targets const.
Use proper 0 vs. NULL constant everywhere.
(skip_function_command): Use proper 0 vs. NULL constant everywhere.
Include empty line after declarations.  Use GNU spacing in a comment.
Do not use strlen for end of string check.
(skip_info): Use proper 0 vs. NULL constant everywhere.  Add column 5
comments.
(skip_enable_command, skip_disable_command, skip_delete_command)
(add_skiplist_entry): Use proper 0 vs. NULL constant everywhere.
(function_pc_is_marked_for_skip): Make variable filename target const.
Use proper 0 vs. NULL constant everywhere.  Fix GNU non-compliant
comment formatting.
(skip_re_set): Add empty line after function comment.  Use proper 0 vs.
NULL constant everywhere.  Include empty line after declarations.  Make
variable symtab target const.  Do not use strlen for end of string
check.

gdb/doc/
* gdbint.texinfo (Coding Standards) (C Usage): New rule for 0 vs. NULL.

11 years agogdb/
Jan Kratochvil [Sun, 16 Dec 2012 18:57:16 +0000 (18:57 +0000)]
gdb/
Code cleanup.
* breakpoint.c (clear_command): Remove variable sal_name_len and its
initialization, remove it from the compare_filenames_for_search call.
* dwarf2read.c (dw2_map_symtabs_matching_filename): Remove variable
name_len and its initialization, remove it from the
compare_filenames_for_search calls.
* psymtab.c (partial_map_symtabs_matching_filename): Likewise.
* symtab.c (compare_filenames_for_search): Remove the search_len
parameter, update the function comment, new variable search_len
initialized from SEARCH_NAME.
(iterate_over_some_symtabs): Remove variable name_len and its
initialization, remove it from the compare_filenames_for_search calls.
* symtab.h (compare_filenames_for_search): Remove the search_len
parameter,

11 years ago * configure.ac (ENABLE_GOLD): Consider *-*-gnu* targets ELF.
Thomas Schwinge [Sun, 16 Dec 2012 07:10:07 +0000 (07:10 +0000)]
* configure.ac (ENABLE_GOLD): Consider *-*-gnu* targets ELF.
* configure: Regenerate.

11 years agoMakefile.in: Move ravenscar-thread.c from SFILES to ALLDEPFILES.
Joel Brobecker [Sun, 16 Dec 2012 04:46:40 +0000 (04:46 +0000)]
Makefile.in: Move ravenscar-thread.c from SFILES to ALLDEPFILES.

gdb/ChangeLog:

* Makefile.in (SFILES): Move ravenscar-thread.c from here...
(ALLDEPFILES): ... to there.

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

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

11 years agoMinor ChangeLog fix.
Joel Brobecker [Sat, 15 Dec 2012 14:44:56 +0000 (14:44 +0000)]
Minor ChangeLog fix.