binutils-gdb.git
11 years agoppc-aix: .bss relocation problem when overlapping with the .data section
Joel Brobecker [Tue, 1 Jan 2013 11:04:34 +0000 (11:04 +0000)]
ppc-aix: .bss relocation problem when overlapping with the .data section

Add missing ChangeLog entry.

11 years agoppc-aix: .bss relocation problem when overlapping with the .data section
Joel Brobecker [Tue, 1 Jan 2013 08:37:20 +0000 (08:37 +0000)]
ppc-aix: .bss relocation problem when overlapping with the .data section

It has been observed that the GNU linker can sometimes improperly
set the address of the .bss section in such a way that it overlaps
with the end of the .data section.  This causes problems in GDB
when trying to print the value of variables located in that section,
because the loader appears to be gracefully but silently adjusting
the address of the .bss section to avoid the overlap, thus causing
a mismatch between the address where GDB thinks it is, vs the address
where it actually lives.

This patch works around the problem while it a fix in the linker
is being explored.

gdb/ChangeLog:

        * rs6000-nat.c (bss_data_overlap): New function.
        (vmap_symtab): Use it to adjust the .bss section's offset.

11 years agoAdd make_cleanup_free_command_lines declaration "extern".
Joel Brobecker [Tue, 1 Jan 2013 07:38:02 +0000 (07:38 +0000)]
Add make_cleanup_free_command_lines declaration "extern".

gdb/ChangeLog:

* cli/cli-script.h (make_cleanup_free_command_lines): Make extern.

11 years agoUpdate years in copyright notice for the GDB files.
Joel Brobecker [Tue, 1 Jan 2013 06:41:43 +0000 (06:41 +0000)]
Update years in copyright notice for the GDB files.

Two modifications:
  1. The addition of 2013 to the copyright year range for every file;
  2. The use of a single year range, instead of potentially multiple
     year ranges, as approved by the FSF.

11 years agoUpdate years in copyright notice for the GDB files.
Joel Brobecker [Tue, 1 Jan 2013 06:33:28 +0000 (06:33 +0000)]
Update years in copyright notice for the GDB files.

Two modifications:
  1. The addition of 2013 to the copyright year range for every file;
  2. The use of a single year range, instead of potentially multiple
     year ranges, as approved by the FSF.

11 years agoUpdate copyright year in gdb/gdbserver/gdbreplay version output.
Joel Brobecker [Tue, 1 Jan 2013 05:45:22 +0000 (05:45 +0000)]
Update copyright year in gdb/gdbserver/gdbreplay version output.

gdb/ChangeLog:

        * top.c (print_gdb_version): Update copyright year.

gdb/gdbserver/ChangeLog:

        * gdbreplay.c (gdbreplay_version): Update copyright year.
        * server.c (gdbserver_version): Likewise.

11 years agoRotate gdb's ChangeLog file.
Joel Brobecker [Tue, 1 Jan 2013 05:30:40 +0000 (05:30 +0000)]
Rotate gdb's ChangeLog file.

gdb:

        * ChangeLog-2012: Renamed from ChangeLog:
        * ChangeLog: New file.
        * config/djgpp/fnchange.lst: Add entry for ChangeLog-2012.

11 years ago*** empty log message ***
gdbadmin [Tue, 1 Jan 2013 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

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

11 years agogdb/doc/
Yao Qi [Mon, 31 Dec 2012 03:00:11 +0000 (03:00 +0000)]
gdb/doc/
* gdb.texinfo (Remote Non-Stop): Move paragraphs to ...
(Packets): Move "vStopped" packet to ...
(Notification Packets): ... here.  Describe the components
of notification.  Add a table of supported notifications.
Add an example on the process of he async notification.

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

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

11 years ago * ld-scripts/pr14962.d: Don't run for mmix-knuth-mmixware. Add
Hans-Peter Nilsson [Sun, 30 Dec 2012 20:15:07 +0000 (20:15 +0000)]
* ld-scripts/pr14962.d: Don't run for mmix-knuth-mmixware.  Add
comment punctuation.

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

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

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

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

11 years agogdb/
Jan Kratochvil [Fri, 28 Dec 2012 09:05:40 +0000 (09:05 +0000)]
gdb/
* symtab.c (find_line_symtab): Call symtab_to_fullname instead of
accessing FULLNAME directly.

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

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

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

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

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

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

11 years ago2012-12-25 Sergio Durigan Junior <sergiodj@redhat.com>
Sergio Durigan Junior [Tue, 25 Dec 2012 17:27:49 +0000 (17:27 +0000)]
2012-12-25  Sergio Durigan Junior  <sergiodj@redhat.com>

* frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Fix typo.

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.