Alan Modra [Thu, 20 Dec 2012 23:00:05 +0000 (23:00 +0000)]
daily update
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.
Richard Earnshaw [Thu, 20 Dec 2012 16:31:15 +0000 (16:31 +0000)]
Fix commit date in previous commit.
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.
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.
Doug Evans [Thu, 20 Dec 2012 05:05:49 +0000 (05:05 +0000)]
* gdb.base/maint.exp: Handle testing with .gdb_index.
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).
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.
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.
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.
gdbadmin [Thu, 20 Dec 2012 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***
Alan Modra [Wed, 19 Dec 2012 23:00:04 +0000 (23:00 +0000)]
daily update
Maxim Kuvyrkov [Wed, 19 Dec 2012 22:07:44 +0000 (22:07 +0000)]
* MAINTAINERS: Add myself to write-after-approval maintainers.
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.
H.J. Lu [Wed, 19 Dec 2012 19:50:40 +0000 (19:50 +0000)]
Fix indentation in the last checkin
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.
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.
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.
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.
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'.
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.
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.
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.
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.
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.
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.
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.
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.
gdbadmin [Wed, 19 Dec 2012 00:00:32 +0000 (00:00 +0000)]
*** empty log message ***
Alan Modra [Tue, 18 Dec 2012 23:00:04 +0000 (23:00 +0000)]
daily update
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.
Tom Tromey [Tue, 18 Dec 2012 19:33:44 +0000 (19:33 +0000)]
fix some bad ChangeLog dates from today
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.
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.
Tom Tromey [Tue, 18 Dec 2012 19:27:35 +0000 (19:27 +0000)]
* cli/cli-cmds.c (apropos_command): Now static.
Tom Tromey [Tue, 18 Dec 2012 19:27:00 +0000 (19:27 +0000)]
* breakpoint.c (dprintf_command): Now static.
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.
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.
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.
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.
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.
DJ Delorie [Tue, 18 Dec 2012 17:41:27 +0000 (17:41 +0000)]
merge from gcc
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
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.
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.
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.
Markus Metzger [Tue, 18 Dec 2012 08:01:42 +0000 (08:01 +0000)]
Fix ChangeLog format.
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.
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.
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.
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.
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.
Joel Brobecker [Tue, 18 Dec 2012 04:41:41 +0000 (04:41 +0000)]
Fix author in last ChangeLog entry.
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.
gdbadmin [Tue, 18 Dec 2012 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***
Alan Modra [Mon, 17 Dec 2012 23:00:08 +0000 (23:00 +0000)]
daily update
Doug Evans [Mon, 17 Dec 2012 19:40:24 +0000 (19:40 +0000)]
Enable accidentally commented out code.
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.
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.
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.
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.
Nick Clifton [Mon, 17 Dec 2012 16:56:12 +0000 (16:56 +0000)]
Add copyright notices
H.J. Lu [Mon, 17 Dec 2012 15:37:40 +0000 (15:37 +0000)]
Update PR ld/14962 testcase
Tom Tromey [Mon, 17 Dec 2012 15:11:56 +0000 (15:11 +0000)]
* top.c (xgdb_verbose): Remove.
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.
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.
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.
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.
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.
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.
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.
gdbadmin [Mon, 17 Dec 2012 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***
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.
Alan Modra [Sun, 16 Dec 2012 23:00:07 +0000 (23:00 +0000)]
daily update
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.
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.
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,
Thomas Schwinge [Sun, 16 Dec 2012 07:10:07 +0000 (07:10 +0000)]
* configure.ac (ENABLE_GOLD): Consider *-*-gnu* targets ELF.
* configure: Regenerate.
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.
gdbadmin [Sun, 16 Dec 2012 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***
Alan Modra [Sat, 15 Dec 2012 23:00:05 +0000 (23:00 +0000)]
daily update
Joel Brobecker [Sat, 15 Dec 2012 14:44:56 +0000 (14:44 +0000)]
Minor ChangeLog fix.
Joel Brobecker [Sat, 15 Dec 2012 14:34:20 +0000 (14:34 +0000)]
Add missing backslash in configure.tgt gdb_target_ops (sparc-*-*)
I forgot to put a '\' when splitting the line in two.
gdb/ChangeLog:
* configure.tgt (sparc-*-*): Add missing '\' in gdb_target_ops.
Joel Brobecker [Sat, 15 Dec 2012 14:30:18 +0000 (14:30 +0000)]
Add ravenscar-thread support for powerpc.
gdb/ChangeLog:
* ppc-ravenscar-thread.h, ppc-ravenscar-thread.c: New files.
* Makefile.in (ALL_TARGET_OBS): Add ppc-ravenscar-thread.o.
(HFILES_NO_SRCDIR): Add ppc-ravenscar-thread.h.
(ALLDEPFILES): Add ppc-ravenscar-thread.c.
* configure.tgt: Add ravenscar-thread.o and ppc-ravenscar-thread.o
to gdb_target_obs for every target that uses rs6000-tdep.o.
* rs6000-tdep.c: #include "ppc-ravenscar-thread.h".
(rs6000_gdbarch_init): Call register_e500_ravenscar_ops
or register_ppc_ravenscar_ops.
Joel Brobecker [Sat, 15 Dec 2012 14:29:31 +0000 (14:29 +0000)]
change ravenscar_sparc prefixes into sparc_ravenscar...
... following the file renaming in the previous commit.
gdb/ChangeLog:
* sparc-ravenscar-thread.h: SPARC_RAVENSCAR_THREAD_H renames
RAVENSCAR_SPARC_THREAD_H.
* sparc-ravenscar-thread.c: Rename all global entities
whose name is uses "ravenscar_sparc" as the prefix to use
"sparc_ravenscar" instead.
Joel Brobecker [Sat, 15 Dec 2012 14:29:00 +0000 (14:29 +0000)]
Rename ravenscar-sparc-thread.[hc] into sparc-ravenscar-thread.[hc].
gdb/ChangeLog:
* sparc-ravenscar-thread.h: Renames ravenscar-sparc-thread.h.
* sparc-ravenscar-thread.c: Renames ravenscar-sparc-thread.c.
Adjust sparc-ravenscar-thread.h #include.
* sparc-tdep.c: Adjust sparc-ravenscar-thread.h #include
accordingly.
* Makefile.in: Replace ravenscar-sparc-thread with
sparc-ravenscar-thread throughout.
* configure.tgt: Likewise.
Joel Brobecker [Sat, 15 Dec 2012 14:27:56 +0000 (14:27 +0000)]
gdbarch-ification of ravenscar-thread support.
gdb/ChangeLog:
* gdbarch.sh: Add "struct ravenscar_arch_ops" advance
declaration.
(ravenscar_ops): New gdbarch variable.
* gdbarch.h, gdbarch.c: Regenerate.
* ravenscar-thread.h (ravenscar_register_arch_ops): Delete.
* ravenscar-thread.c (current_arch_ops): Delete.
(ravenscar_fetch_registers): Get the ravenscar_arch_ops
from the gdbarch.
(ravenscar_store_registers, ravenscar_prepare_to_store): Likewise.
(ravenscar_inferior_created): Add gdbarch_ravenscar_ops check.
(ravenscar_register_arch_ops): Delete.
* ravenscar-sparc-thread.h: New file.
* ravenscar-sparc-thread.c: #include "ravenscar-sparc-thread.h".
(ravenscar_sparc_ops): Define value statically.
(_initialize_ravenscar_sparc): Delete.
(register_sparc_ravenscar_ops): New function.
* sparc-tdep.c: #include "ravenscar-sparc-thread.h".
(sparc32_gdbarch_init): Add call to register_sparc_ravenscar_ops.
* Makefile.in (ALL_TARGET_OBS): Add ravenscar-thread.o and
ravenscar-sparc-thread.o.
(SFILES): Add ravenscar-thread.c.
(HFILES_NO_SRCDIR): Add ravenscar-sparc-thread.h.
(ALLDEPFILES): ravenscar-sparc-thread.c.
* configure.tgt: Add ravenscar-thread.o and ravenscar-sparc-thread.o
to gdb_target_obs
for all the targets that use sparc-tdep.o.
Joel Brobecker [Sat, 15 Dec 2012 14:27:13 +0000 (14:27 +0000)]
minor ravenscar-thread cleanup
The use of the ravenscar_open static global is unnecessary.
This patch removes it. It also removes some routines that
were created in association with the management of this global.
gdb/ChangeLog:
* ravenscar-thread.c (ravenscar_is_open): Delete.
(ravenscar_initialize): Move most of the code from here...
(ravenscar_inferior_created): ... to there. Invert logic.
(ravenscar_close): Delete.
(init_ravenscar_thread_ops): Remove setting of
ravenscar_ops.to_close.
Joel Brobecker [Sat, 15 Dec 2012 13:11:18 +0000 (13:11 +0000)]
Move init_entry_point_info to symfile.c and make it static.
gdb/ChangeLog:
* objfiles.c (init_entry_point_info): Move function from here...
* symfile.c (init_entry_point_info): ... to there. Make static.
* objfiles.h (objfiles.h): Delete declaration.
Joel Brobecker [Sat, 15 Dec 2012 13:10:50 +0000 (13:10 +0000)]
Fix NULL objfile's section_offsets dereference during symbol load.
gdb/ChangeLog:
* symfile.c (syms_from_objfile_1): Renames syms_from_objfile.
Remove call to init_entry_point_info. Add OBJFILE's
section_offsets and num_sections initialization. Add note
about entry info in the function documentation.
(syms_from_objfile): New function.
* coffread.c (coff_symfile_init): Remove call to
init_entry_point_info.
* machoread.c (macho_symfile_init): Likewise.
* xcoffread.c(xcoff_symfile_init): Likewise.
Thomas Schwinge [Sat, 15 Dec 2012 10:34:14 +0000 (10:34 +0000)]
Fix copy'n'paste-o.
Thomas Schwinge [Sat, 15 Dec 2012 10:28:17 +0000 (10:28 +0000)]
ld/testsuite/
* ld-elf/elf.exp (stack exec, stack size): Run for any GNU target.
* ld-elf/maxpage3c.d: Run for any x86 GNU target.
* ld-elf/maxpage4.d: Likewise.
* ld-elf/maxpage5.d: Likewise.
* ld-i386/export-class.exp: Likewise.
Yao Qi [Sat, 15 Dec 2012 04:06:40 +0000 (04:06 +0000)]
gdb/
2012-12-15 Yao Qi <yao@codesourcery.com>
* remote-notif.c (_initialize_notif): Add new commands
'set debug notification' and 'show debug notification'.
* NEWS: Mention these new commands.
gdb/doc/
2012-12-15 Yao Qi <yao@codesourcery.com>
* gdb.texinfo (Debugging Output): Document 'set debug
notification' and 'show debug notification'.
Yao Qi [Sat, 15 Dec 2012 03:50:22 +0000 (03:50 +0000)]
gdb/
2012-12-15 Yao Qi <yao@codesourcery.com>
* Makefile.in (REMOTE_OBS): Add "remote-notif.o".
(SFILES): Add "remote-notif.c".
(HFILES_NO_SRCDIR): Add "remote-notif.h" and "common/queue.h".
* remote-notif.c: New. Factored out from remote.c.
* remote-notif.h: New.
* remote.c: Include "remote-notif.h".
(stop_reply_xmalloc, do_stop_reply_xfree):
(remote_parse_stop_reply, remote_get_pending_stop_replies):
(remote_async_get_pending_events_handler): Remove declarations.
(remote_parse_stop_reply): Declare.
(pending_stop_reply): Remove.
(remote_async_get_pending_events_token): Move to
remote-notif.c.
(remote_close): Replace 'delete_async_event_handler' with
remote_notif_unregister_async_event_handler.
Don't call discard_pending_stop_replies.
(remote_start_remote): Replace code with remote_notif_parse
and remote_notif_get_pending_replies.
(remote_open_1): Replace 'create_async_event_handler' with
remote_notif_register_async_event_handler.
(extended_remote_attach_1): Call remote_notif_parse and
notif_stop_reply_push.
(struct stop_reply) <next>: Remove.
<base>: New field.
Callers update.
(stop_reply_queue): Change its type.
(stop_reply_xmalloc, do_stop_reply_xfree): Remove.
(remote_notif_remove_all): New.
(discard_pending_stop_replies): Update.
(remote_notif_stop_ack, stop_reply_dtr): New.
(remote_notif_stop_alloc_event): New.
(notif_client_stop): New variable.
(stop_reply_match_ptid, stop_reply_match_ptid_and_ws: New.
(queued_stop_reply, peek_stop_reply): Adjust.
(remote_get_pending_stop_replies): Rename to
remote_notif_get_pending_events.
(handle_notification): Move to remote-notif.c.
(remote_async_get_pending_events_handler): Likewise.
(remote_wait_as): Adjust to call remote_notif_parse.
Call 'getpkt_or_notif_sane' instead of 'getpkt_sane'.
Return minus_one_ptid early if gets a notification.
(remote_wait): Call QUEUE_is_empty (notif_reply_p).
(_initialize_remote): Call QUEUE_alloc. Update caller.
(remote_resume): Call 'remote_notif_process' in all-stop mode.
* remote.h: Include "remote-notif.h".
(remote_notif_get_pending_replies): Declare.
Yao Qi [Sat, 15 Dec 2012 03:34:03 +0000 (03:34 +0000)]
gdb/
2012-12-15 Yao Qi <yao@codesourcery.com>
* remote.c (discard_pending_stop_replies): Update declaration.
(remote_detach_1, extended_remote_mourn_1): Likewise.
(discard_pending_stop_replies): Change parameter from PID to
INF.
(remote_close): Update caller.
(_initialize_remote): Attach discard_pending_stop_replies to
inferior_exit observer.
Yao Qi [Sat, 15 Dec 2012 03:14:22 +0000 (03:14 +0000)]
gdb/
2012-12-15 Yao Qi <yao@codesourcery.com>
* remote.c (getpkt_or_notif_sane): Add one more argument in
its declaration.
(getpkt_or_notif_sane_1): Add one more argument.
(getpkt_sane): Update caller.
(getpkt_or_notif_sane): Likewise. Update call
togetpkt_or_notif_sane_1.
(remote_wait_ns): Update caller.
Yao Qi [Sat, 15 Dec 2012 02:48:18 +0000 (02:48 +0000)]
gdb/gdbserver/
2012-12-15 Yao Qi <yao@codesourcery.com>
* Makefile.in (OBS): Add notif.o.
* notif.c, notif.h: New.
* server.c: Include "notif.h".
(struct vstop_notif) <next>: Remove.
<base>: New field.
(queue_stop_reply): Update.
(push_event, send_next_stop_reply): Remove.
(discard_queued_stop_replies): Update.
(notif_stop): New variable.
(handle_v_stopped): Remove.
(handle_v_requests): Don't call handle_v_stopped. Call
handle_ack_notif instead.
(queue_stop_reply_callback): Call notif_event_enque instead
of queue_stop_reply.
(handle_status): Don't call send_next_stop_reply, call
notif_write_event instead.
(kill_inferior_callback): Likewise.
(detach_or_kill_inferior_callback): Likewise.
(main): Call initialize_notif.
(process_serial_event): Call QUEUE_is_empty.
(handle_target_event): Call notif_push instead of push event.
* server.h (push_event): Remove declaration.
Yao Qi [Sat, 15 Dec 2012 02:25:34 +0000 (02:25 +0000)]
gdb/
2012-12-15 Yao Qi <yao@codesourcery.com>
Doug Evans <dje@google.com>
* common/queue.h: New.
Yao Qi [Sat, 15 Dec 2012 02:19:21 +0000 (02:19 +0000)]
2012-12-15 Yao Qi <yao@codesourcery.com>
* breakpoint.c (print_one_breakpoint_location): Display the
state of 'installed' of each non-pending location of a tracepoint
in both CLI and MI.
(download_tracepoint_locations): Notify 'breakpoint-modified'
observer if any tracepoint location is downloaded.
* tracepoint.c (start_tracing): Likewise.
(merge_uploaded_tracepoints): Record all modified
tracepoints and notify 'breakpoint-modified' observer for them.
* NEWS: Mention the change for CLI and MI.
gdb/doc:
2012-12-15 Yao Qi <yao@codesourcery.com>
* gdb.texinfo (Listing Tracepoints): New item and example about
'installed on target' output.
Add more in the example about 'installed on target'.
(GDB/MI Breakpoint Commands): Doc about 'installed field.
gdb/testsuite:
2012-12-15 Yao Qi <yao@codesourcery.com>
* gdb.trace/mi-tracepoint-changed.exp (test_pending_resolved): Check
'installed' field in '=breakpoint-modified'.
(test_reconnect): Check 'installed' field in
'=breakpoint-modified' and '=breakpoint-created'.
* gdb.trace/actions.exp: Update test for 'installed' field.
* gdb.trace/change-loc.exp (tracepoint_change_loc_1):
(tracepoint_change_loc_2): Likewise.
Check 'info tracepoint' display nothing else.
* gdb.trace/deltrace.exp: Likewise.
* gdb.trace/infotrace.exp: Likewise.
* gdb.trace/mi-traceframe-changed.exp (test_tfind_remote):
Likewise.
* gdb.trace/passcount.exp: Likewise.
* gdb.trace/tracecmd.exp: Likewise.
* gdb.trace/while-stepping.exp: Likewise.
Cary Coutant [Sat, 15 Dec 2012 01:55:08 +0000 (01:55 +0000)]
gold/
* testsuite/Makefile.am (exception_separate_shared_12_test): Add
--no-as-needed flag.
(exception_separate_shared_12_test): Likewise.
(incremental_copy_test): Likewise.
* testsuite/Makefile.in: Regenerate.
This page took 0.042157 seconds and 4 git commands to generate.