Pedro Alves [Wed, 7 Nov 2012 20:10:13 +0000 (20:10 +0000)]
2012-11-07 Pedro Alves <palves@redhat.com>
* arm-tdep.c: Make defs.h be the first include.
* coff-pe-read.c: Ditto.
* gnu-nat.c: Ditto.
* go32-nat.c: Ditto.
* i386-nat.c: Ditto.
* ppcnbsd-nat.c: Ditto.
* ada-varobj.h: Don't include defs.h.
* i386-darwin-tdep.h: Ditto.
* i386-nat.h: Ditto.
Pedro Alves [Wed, 7 Nov 2012 15:39:09 +0000 (15:39 +0000)]
2012-11-07 Pedro Alves <palves@redhat.com>
* MAINTAINERS: New FSF-appointed maintainers replace the Steering
Committee.
Michael Eager [Wed, 7 Nov 2012 15:36:09 +0000 (15:36 +0000)]
2012-11-07 David Holsgrove <david.holsgrove@xilinx.com>
* config/tc-microblaze.c: Remove special register condition check
for INST_TYPE_RFSL related instructions.
2012-11-07 David Holsgrove <david.holsgrove@xilinx.com>
* testsuite/gas/microblaze/special_reg.exp: Add test case.
* testsuite/gas/microblaze/special_reg.s: Likewise.
* testsuite/gas/microblaze/special_reg.d: Likewise.
Pierre Muller [Wed, 7 Nov 2012 12:35:05 +0000 (12:35 +0000)]
* common/linux-osdata.c (dirent.h): ARI fix: Remove.
File already uses "gdb_dirent.h" header.
H.J. Lu [Wed, 7 Nov 2012 06:16:26 +0000 (06:16 +0000)]
Don't read beyond section end
* objcopy.c (copy_section): Don't read beyond section end.
H.J. Lu [Wed, 7 Nov 2012 05:57:24 +0000 (05:57 +0000)]
Replace memcpy with memmove
* section.c (bfd_get_section_contents): Replace memcpy
with memmove.
Hans-Peter Nilsson [Wed, 7 Nov 2012 05:51:37 +0000 (05:51 +0000)]
PR binutils/14481
* aout-target.h (MY_close_and_cleanup): Make local function
instead of alias of MY_bfd_free_cached_info. Also call
_bfd_generic_close_and_cleanup.
H.J. Lu [Wed, 7 Nov 2012 00:55:04 +0000 (00:55 +0000)]
Change return type of bclose to bfd_boolean
PR binutils/14813
* bfdio.c (bfd_iovec): Change return type of bclose to
bfd_boolean.
(memory_bclose): Change return type to bfd_boolean.
* cache.c (cache_bclose): Likewise.
* opncls.c (opncls_bclose): Likewise. Return TRUE on success.
* vms-lib.c (vms_lib_bclose): Likewise. Return TRUE.
* libbfd.h: Regenerated.
Yao Qi [Wed, 7 Nov 2012 00:42:14 +0000 (00:42 +0000)]
gdb:
* breakpoint.c (get_tracepoint_by_number): Remove 'extern int
tracepoint_count'.
gdbadmin [Wed, 7 Nov 2012 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***
H.J. Lu [Tue, 6 Nov 2012 23:45:43 +0000 (23:45 +0000)]
Add a testcase for PR binutils/14567
binutils/
PR binutils/14567
* Makefile.am (BFDTEST2_PROG): New.
(bfdtest2_DEPENDENCIES): Likewise.
(TEST_PROGS): Add $(BFDTEST2_PROG).
* Makefile.in: Regenerated.
* bfdtest2.c: New file.
binutils/testsuite/
PR binutils/14567
* binutils-all/ar.exp (bfdtest1): Removed.
(long_filenames): Take bfdtests.
(thin_archive): Likewise.
(thin_archive_with_nested): Likewise.
(bfdtests): New.
Pass $bfdtests to long_filenames, thin_archive and
thin_archive_with_nested.
Alan Modra [Tue, 6 Nov 2012 23:00:05 +0000 (23:00 +0000)]
daily update
Tristan Gingold [Tue, 6 Nov 2012 16:11:07 +0000 (16:11 +0000)]
2012-11-06 Tristan Gingold <gingold@adacore.com>
* coff-x86_64.c (_bfd_generic_find_nearest_line_discriminator):
Define as coff_find_nearest_line_discriminator.
Tom Tromey [Tue, 6 Nov 2012 16:01:58 +0000 (16:01 +0000)]
* target.h (inferior_has_forked, inferior_has_vforked)
(inferior_has_execd, inferior_has_called_syscall): Remove
declarations.
Pierre Muller [Tue, 6 Nov 2012 15:59:17 +0000 (15:59 +0000)]
* remote.c (remote_insert_hw_breakpoint): ARI fix,
add missing internalization markup.
Pedro Alves [Tue, 6 Nov 2012 15:25:05 +0000 (15:25 +0000)]
gdb/
2012-11-06 Pedro Alves <palves@redhat.com>
PR gdb/14810
* breakpoint.c (bpstat_stop_status): Skip disabled locations.
gdb/testsuite/
2012-11-06 Pedro Alves <palves@redhat.com>
PR gdb/14810
* gdb.base/disabled-location.c: New file.
* gdb.base/disabled-location.exp: New file.
Tom Tromey [Tue, 6 Nov 2012 15:21:24 +0000 (15:21 +0000)]
* gdb.threads/gcore-thread.exp: Use gdb_gcore_cmd.
* gdb.python/py-strfns.exp (test_strfns_core_file): Use
gdb_gcore_cmd.
* gdb.cell/gcore.exp: Use gdb_gcore_cmd.
* gdb.base/gcore.exp: Use gdb_gcore_cmd.
* gdb.base/gcore-relro.exp: Use gdb_gcore_cmd.
* gdb.base/gcore-buffer-overflow.exp: Use gdb_gcore_cmd.
* gdb.base/auxv.exp: Use gdb_gcore_cmd.
* gdb.arch/vsx-regs.exp: Use gdb_gcore_cmd.
* gdb.arch/system-gcore.exp: Use gdb_gcore_cmd.
* gdb.arch/pa-nullify.exp (test_core_bt): Use gdb_gcore_cmd.
* lib/gdb.exp (gdb_gcore_cmd): New proc.
Alan Modra [Tue, 6 Nov 2012 10:03:32 +0000 (10:03 +0000)]
* config/tc-xgate.c: Make some functions static. Formatting
style and whitespace fixes. Wrap overly long lines. Format
help message.
Alan Modra [Tue, 6 Nov 2012 09:31:12 +0000 (09:31 +0000)]
PR binutils/14567
* opncls.c (opncls_iovec): Forward declare.
(_bfd_new_bfd_contained_in): If using opncls_iovec, copy iostream
to new bfd.
Pierre Muller [Tue, 6 Nov 2012 08:24:44 +0000 (08:24 +0000)]
* contrib/ari/create-web-ari-in-src.sh: Avoid problem if script
is not executable.
Alan Modra [Tue, 6 Nov 2012 06:44:01 +0000 (06:44 +0000)]
* mach-o.c (bfd_mach_o_close_and_cleanup): Don't call
_bfd_generic_close_and_cleanup for mach_o_fat archives.
Alan Modra [Tue, 6 Nov 2012 06:36:42 +0000 (06:36 +0000)]
Allow SEC_CODE and SEC_READONLY in section flags.
Alan Modra [Tue, 6 Nov 2012 05:51:18 +0000 (05:51 +0000)]
bfd/
* coff-tic4x.c (tic4x_coff0_vec, tic4x_coff0_beh_vec,
tic4x_coff1_vec, tic4x_coff1_beh_vec, tic4x_coff2_vec,
tic4x_coff2_beh_vec): Allow SEC_CODE and SEC_READONLY in
section flags.
gas/
* config/tc-tic4x.c: Remove alignment TODO comments.
(tic4x_do_align): Enable subseg_text_p test.
Alan Modra [Tue, 6 Nov 2012 05:18:03 +0000 (05:18 +0000)]
bfd/
* elf64-ppc.c (struct ppc_link_hash_table): Add dot_toc_dot.
(ppc64_elf_size_stubs): Lookup ".TOC.".
(ppc64_elf_relocate_section): Resolve special symbol ".TOC.".
gas/
* config/tc-ppc.c (ppc_elf_adjust_symtab): New function, split out..
(ppc_frob_file_before_adjust): ..from here.
(md_apply_fix): Set BSF_KEEP on .TOC. if not @tocbase.
* config/tc-ppc.h (ppc_elf_adjust_symtab): Declare.
(tc_adjust_symtab): Define.
Alan Modra [Tue, 6 Nov 2012 03:44:51 +0000 (03:44 +0000)]
* elf64-ppc.c (maybe_strip_output): Heed SEC_KEEP.
Alan Modra [Tue, 6 Nov 2012 03:20:31 +0000 (03:20 +0000)]
* config/tc-ppc.c (md_apply_fix): Fix xcoff build breakage from
last patch.
Sean Keys [Tue, 6 Nov 2012 00:49:37 +0000 (00:49 +0000)]
* config/tc-xgate.c: Remove bogus use of <fx_pcrel_adjust>.
* config/tc-m68hc11.c: Likewise.
gdbadmin [Tue, 6 Nov 2012 00:00:02 +0000 (00:00 +0000)]
*** empty log message ***
Joel Brobecker [Mon, 5 Nov 2012 23:07:39 +0000 (23:07 +0000)]
Fix entry ordering issue in gdb/ChangeLog...
Joel Brobecker [Mon, 5 Nov 2012 23:06:31 +0000 (23:06 +0000)]
New script to update our gnulib import
gdb/ChangeLog:
* gnulib/update-gnulib.sh: New script.
Alan Modra [Mon, 5 Nov 2012 23:00:04 +0000 (23:00 +0000)]
daily update
Stephane Carrez [Mon, 5 Nov 2012 22:08:10 +0000 (22:08 +0000)]
* MAINTAINERS: Update my email address.
Tom Tromey [Mon, 5 Nov 2012 21:43:12 +0000 (21:43 +0000)]
* frame.c (put_frame_register): Don't use temporary buffer.
Stephane Carrez [Mon, 5 Nov 2012 20:16:53 +0000 (20:16 +0000)]
* MAINTAINERS: Update my email address.
Tom Tromey [Mon, 5 Nov 2012 19:36:38 +0000 (19:36 +0000)]
PR python/14802:
* gdb.texinfo (Functions In Python): Add example.
Pedro Alves [Mon, 5 Nov 2012 18:56:45 +0000 (18:56 +0000)]
gdb/
2012-11-05 Pedro Alves <palves@redhat.com>
* inferior.c (exit_inferior_1): Clear 'vfork_parent' in the vfork
child. Clear 'pending_detach'.
* infrun.c (handle_vfork_child_exec_or_exit): Clear
'pending_detach' in the vfork parent.
gdb/testsuite/
2012-11-05 Pedro Alves <palves@redhat.com>
* gdb.base/foll-vfork.exp (vfork_relations_in_info_inferiors): New
procedure.
(do_vfork_and_follow_child_tests_exec)
(do_vfork_and_follow_child_tests_exit): Call it.
Pedro Alves [Mon, 5 Nov 2012 16:23:36 +0000 (16:23 +0000)]
2012-11-05 Pedro Alves <palves@redhat.com>
* gdb.base/foll-vfork.c (main): Call perror and _exit if execlp()
fails.
Doug Evans [Mon, 5 Nov 2012 15:50:22 +0000 (15:50 +0000)]
Add support for DWP files. gcc.gnu.org/wiki/DebugFissionDWP
* contrib/cc-with-tweaks.sh: Add -p parameter to invoke dwp.
* dwarf2read.c: #include "elf-bfd.h".
(struct dwarf2_per_objfile): New members dwp_checked, dwp_file.
(dwop_section_names): Renamed from dwo_section names. All uses
updated. Add entries for .debug_cu_index, .debug_tu_index.
(struct dwo_file): Rename dwo_name to name, dwo_bfd to dbfd.
All uses updated.
(struct dwp_sections): New type.
(struct virtual_dwo_sections): New type.
(struct dwp_hash_table): New type.
(struct dwp_file): New type.
(init_cutu_and_read_dies): Ensure DWO info/types section has been
read in. Handle DWOs coming from DWP files.
(lookup_dwo_file_slot): New function.
(dwarf2_locate_dwo_sections): Move definition closer to use.
(create_dwo_debug_info_hash_table_reader): Renamed from
create_debug_info_hash_table_reader. All callers updated.
(create_dwo_debug_info_hash_table): Renamed from
create_debug_info_hash_table. All callers updated.
(create_dwp_hash_table): New function.
(locate_virtual_dwo_sections, create_dwo_in_dwp): New functions.
(lookup_dwo_in_dwp): New function.
(try_open_dwop_file): Renamed from try_open_dwo_file. New parameter
is_dwp. All callers updated.
(open_dwop_file): Renamed from open_dwo_file. All callers updated.
(open_and_init_dwo_file): Renamed from init_dwo_file.
All callers updated.
(lookup_dwo_file): Delete.
(dwarf2_locate_dwp_sections): New function.
(hash_dwp_loaded_cutus, eq_dwp_loaded_cutus): New functions.
(allocate_dwp_loaded_cutus_table): New function.
(open_and_init_dwp_file): New function.
(lookup_dwo_cutu): New function.
(lookup_dwo_comp_unit, lookup_dwo_type_unit): Call it.
Andreas Krebbel [Mon, 5 Nov 2012 12:31:08 +0000 (12:31 +0000)]
2012-11-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
PR target/14788
* elf32-s390.c (elf_s390_relocate_section): Set elf.dynobj for
local ifunc symbols.
* elf64-s390.c (elf_s390_relocate_section): Likewise.
Alan Modra [Mon, 5 Nov 2012 12:26:55 +0000 (12:26 +0000)]
* configure.ac: Apply 2012-09-10 change to config.in here.
* configure: Regenerate.
Alan Modra [Mon, 5 Nov 2012 12:26:11 +0000 (12:26 +0000)]
* configure.in: Apply 2012-09-10 change to config.in here. Add
__CONFIG_H__ check.
* config.in: Regenerate.
Alan Modra [Mon, 5 Nov 2012 10:45:32 +0000 (10:45 +0000)]
* configure.in: Apply 2012-09-10 change to config.in here.
Alan Modra [Mon, 5 Nov 2012 10:00:12 +0000 (10:00 +0000)]
* config/tc-ppc.c (md_chars_to_number): Delete.
(ppc_setup_opcodes): Assert num_powerpc_operands fit.
(ppc_is_toc_sym): Move earlier in file.
(md_assemble): Move code setting reloc from md_apply_fix. Combine
non-ELF code setting fixup with ELF code. Stash opindex in
fx_pcrel_adjust. Adjust fixup offset for VLE. Don't set
fx_no_overflow here.
(md_apply_fix): Rewrite to use ppc_insert_operand for all
resolved instruction fields. Leave insn field zero when
emitting an ELF reloc in most cases.
Alan Modra [Mon, 5 Nov 2012 07:10:37 +0000 (07:10 +0000)]
* write.h (struct fix <fx_pcrel_adjust>): Make it a signed char.
* config/tc-m68k.c (tc_gen_reloc, md_pcrel_from): Remove explicit
sign extendion of fx_pxrel_adjust.
Alan Modra [Mon, 5 Nov 2012 05:17:34 +0000 (05:17 +0000)]
* elf64-ppc.c (ppc64_elf_edit_toc): Clear "repeat" inside
loop. Really mark toc entry referring to another toc entry
only if the first is used.
Alan Modra [Mon, 5 Nov 2012 03:29:58 +0000 (03:29 +0000)]
* powerpc.cc (Powerpc_relobj): Delete "Offset" typedef.
(struct Opd_ent): Use "Address" rather than "Offset".
(Output_data_got_powerpc::got_base_offset): Return Valtype.
(Target_powerpc::got_section): Make public.
(Target_powerpc::scan_relocs): Move code setting symbols..
(Powerpc_relobj::do_scan_relocs): ..to here, new function.
Create _SDA_BASE_ only when referenced.
gdbadmin [Mon, 5 Nov 2012 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***
Alan Modra [Sun, 4 Nov 2012 23:00:04 +0000 (23:00 +0000)]
daily update
H.J. Lu [Sun, 4 Nov 2012 00:09:53 +0000 (00:09 +0000)]
Add --disable-libstdcxx configure option
2012-11-03 H.J. Lu <hongjiu.lu@intel.com>
* configure: Regenerated.
2012-11-03 Robert Mason <rbmj@verizon.net>
* configure.ac: add --disable-libstdcxx configure option
and handle defaulted state only for VxWorks, ARM-wince-pe and AVR.
gdbadmin [Sun, 4 Nov 2012 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***
H.J. Lu [Sat, 3 Nov 2012 23:53:02 +0000 (23:53 +0000)]
Add gthr.m4
2012-10-15 Pavel Chupin <pavel.v.chupin@intel.com>
* gthr.m4: New. Define GCC_AC_THREAD_HEADER.
Alan Modra [Sat, 3 Nov 2012 23:00:06 +0000 (23:00 +0000)]
daily update
Yao Qi [Sat, 3 Nov 2012 12:14:47 +0000 (12:14 +0000)]
gdb:
Fix PR gdb/14617.
* breakpoint.c (trace_pass_set_count): Call
observer_notify_breakpoint_modified instead of
observer_notify_tracepoint_modified.
* mi/mi-cmd-break.c (mi_cmd_break_passcount): Likewise.
gdb/doc:
* observer.texi (GDB Observers): Remove observer
'tracepoint_modified', 'tracepoint_created' and
'tracepoint_deleted'.
gdb/testsuite:
Fix PR gdb/14617.
* gdb.mi/mi-breakpoint-changed.exp (test_insert_delete_modify):
Remove setup_kfail, and update test.
gdbadmin [Sat, 3 Nov 2012 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***
Alan Modra [Fri, 2 Nov 2012 23:00:04 +0000 (23:00 +0000)]
daily update
Roland McGrath [Fri, 2 Nov 2012 19:50:36 +0000 (19:50 +0000)]
gold/
* i386.cc (Target_i386::relocate_relocs): Remove extraneous typename
from last change.
Tom Tromey [Fri, 2 Nov 2012 19:05:12 +0000 (19:05 +0000)]
* breakpoint.c (catch_syscall_completer): Pass 'word' as second
argument to complete_on_enum.
testsuite
* gdb.base/catch-syscall.exp (do_syscall_tests): Add completion
test.
Tom Tromey [Fri, 2 Nov 2012 18:53:54 +0000 (18:53 +0000)]
* configure: Rebuild.
* configure.ac (build_warnings): Add -Wempty-body.
* m68k-tdep.c (m68k_gdbarch_init): Remove empty 'if'.
* remote.c (handle_notification): Use braces for empty 'else' body.
* s390-tdep.c (s390_analyze_prologue): Use braces for empty
'else' body.
* sh64-tdep.c (sh64_push_dummy_call): Use braces for empty
'else' body.
* solib-som.c (som_relocate_section_addresses): Use braces
for empty 'else' body.
* ui-file.c (stdio_file_write): Use braces for empty 'if' body.
(stdio_file_write_async_safe, stdio_file_fputs): Likewise.
Pierre Muller [Fri, 2 Nov 2012 18:19:36 +0000 (18:19 +0000)]
Re-added with correct permissions
Pierre Muller [Fri, 2 Nov 2012 18:18:46 +0000 (18:18 +0000)]
Removed to be re-added with correct permissions
Pedro Alves [Fri, 2 Nov 2012 18:13:37 +0000 (18:13 +0000)]
gdb/
2012-11-02 Pedro Alves <palves@redhat.com>
PR gdb/14766
* infrun.c (handle_inferior_event)
<TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Switch to
null_ptid before handling a vfork child exec or exit. Switch to
the event ptid afterwards.
gdb/testsuite/
2012-11-02 Pedro Alves <palves@redhat.com>
PR gdb/14766
* gdb.base/foll-vfork.exp (vfork_child_follow_to_exit): Remove
setup_kfail.
(tcatch_vfork_then_child_follow_exit): No longer expect "Couldn't
get registers".
Pedro Alves [Fri, 2 Nov 2012 18:10:29 +0000 (18:10 +0000)]
2012-11-02 Pedro Alves <palves@redhat.com>
* gdb.base/foll-vfork-exit.c: New file.
* gdb.base/foll-vfork.exp (top level): New file-describing
comment.
(vfork_child_follow_to_exit): New procedure.
(tcatch_vfork_then_child_follow): Rename as ...
(tcatch_vfork_then_child_follow_exec): ... this.
(tcatch_vfork_then_child_follow_exit): New procedure.
(do_vfork_and_follow_parent_tests): New procedure, factored out
from do_vfork_and_exec_tests.
(do_vfork_and_follow_child_tests_exec): Ditto.
(do_vfork_and_exec_tests): Delete.
(do_vfork_and_follow_child_tests_exit): New procedure.
(top level): Run tests with both the program that has the vfork
child execing, and the program has the vfork child exiting.
Pedro Alves [Fri, 2 Nov 2012 18:06:46 +0000 (18:06 +0000)]
Move entries to correct ChangeLog file...
gdb/ChangeLog -> gdb/testsuite/ChangeLog
Pedro Alves [Fri, 2 Nov 2012 18:02:01 +0000 (18:02 +0000)]
2012-11-02 Pedro Alves <palves@redhat.com>
* gdb.base/foll-vfork.exp (setup_gdb): New procedure.
(check_vfork_catchpoints, vfork_parent_follow_through_step)
(vfork_parent_follow_to_bp): Call it.
(kill_child): Delete.
(vfork_and_exec_child_follow_to_main_bp)
(vfork_and_exec_child_follow_through_step): Call setup_gdb. No
longer call kill_child.
(tcatch_vfork_then_parent_follow): Call setup_gdb.
(do_vfork_and_exec_tests): Don't runto_main before calling each
test procedure.
(top level): Don't clean restart and set verbose before running
each test procedure.
Pedro Alves [Fri, 2 Nov 2012 18:00:00 +0000 (18:00 +0000)]
2012-11-02 Pedro Alves <palves@redhat.com>
* gdb.base/foll-vfork.exp (vfork_parent_follow_through_step)
(vfork_parent_follow_to_bp)
(vfork_and_exec_child_follow_to_main_bp)
(vfork_and_exec_child_follow_through_step)
(tcatch_vfork_then_parent_follow)
(tcatch_vfork_then_parent_follow, tcatch_vfork_then_child_follow):
Use with_test_prefix.
Pedro Alves [Fri, 2 Nov 2012 17:59:13 +0000 (17:59 +0000)]
2012-11-02 Pedro Alves <palves@redhat.com>
* gdb.base/foll-vfork.c: Add copyright header.
* gdb.base/vforked-prog.c: Add copyright header.
Pedro Alves [Fri, 2 Nov 2012 17:58:39 +0000 (17:58 +0000)]
2012-11-02 Pedro Alves <palves@redhat.com>
* gdb.base/foll-vfork.exp
(vfork_and_exec_child_follow_through_step): Don't skip on
non-HP/UX targets. Expect the next to only step one line on
non-HP/UX targets, rather than stopping only after the exec.
Pedro Alves [Fri, 2 Nov 2012 17:57:45 +0000 (17:57 +0000)]
2012-11-02 Pedro Alves <palves@redhat.com>
Don't hard code line numbers.
* gdb.base/foll-vfork.exp (vfork_parent_follow_through_step):
Expect text from the sources instead of a line number.
(vfork_parent_follow_to_bp)
(vfork_and_exec_child_follow_to_main_bp)
(vfork_and_exec_child_follow_through_step)
(tcatch_vfork_then_parent_follow, tcatch_vfork_then_child_follow):
Use gdb_get_line_number.
Pedro Alves [Fri, 2 Nov 2012 17:57:04 +0000 (17:57 +0000)]
2012-11-02 Pedro Alves <palves@redhat.com>
Modernize.
* gdb.base/foll-vfork.exp: Use standard_testfile and
build_executable. Pass descriptive string to untested.
(vfork_parent_follow_through_step, vfork_parent_follow_to_bp)
(vfork_and_exec_child_follow_to_main_bp)
(vfork_and_exec_child_follow_through_step)
(tcatch_vfork_then_parent_follow, tcatch_vfork_then_child_follow)
(do_vfork_and_exec_tests): Use gdb_test/gdb_test_multiple instead
of send_gdb/gdb_expect.
(kill_child): New procedure.
(vfork_and_exec_child_follow_to_main_bp)
(vfork_and_exec_child_follow_through_step): Use it.
Yao Qi [Fri, 2 Nov 2012 00:14:39 +0000 (00:14 +0000)]
gdb:
2012-11-02 Yao Qi <yao@codesourcery.com>
* std-operator.def: Remove OP_LABELED.
* eval.c: Remove the declaration of 'get_label'.
(get_label): Remove.
(evaluate_struct_tuple): Remove code handling OP_LABELED.
Update comment.
Remove local variable 'variantno' and related code.
Replace 'substruct_type' with 'struct_type'. Replace 'subfieldno'
with 'fieldno'.
* expprint.c (print_subexp_standard): Likewise.
(dump_subexp_body_standard): Likewise.
* parse.c (operator_length_standard): Likewise.
gdb/testsuite:
2012-11-02 Yao Qi <yao@codesourcery.com>
* gdb.base/setvar.exp: Test setting nested struct.
* gdb.base/setvar.c (v_struct3): New.
gdbadmin [Fri, 2 Nov 2012 00:00:32 +0000 (00:00 +0000)]
*** empty log message ***
Roland McGrath [Thu, 1 Nov 2012 23:27:00 +0000 (23:27 +0000)]
gold/
* target.h (Sized_target::relocate_relocs): Use Elf_Off
for offset_in_output_section parameter.
(Sized_target::relocate_special_relocatable): Likewise.
* arm.cc (Target_arm::relocate_relocs): Likewise.
(Target_arm::relocate_special_relocatable): Likewise.
* i386.cc (Target_i386::relocate_relocs): Likewise.
* powerpc.cc (Target_powerpc::relocate_relocs): Likewise.
* sparc.cc (Target_sparc::relocate_relocs): Likewise.
* target-reloc.h (relocate_relocs): Likewise.
* testsuite/testfile.cc (Target_test): Likewise.
* tilegx.cc (Target_tilegx::relocate_relocs): Likewise.
* x86_64.cc (Target_x86_64::relocate_relocs): Likewise.
Maciej W. Rozycki [Thu, 1 Nov 2012 23:03:16 +0000 (23:03 +0000)]
* config/tc-mips.c (is_delay_slot_valid): Simplify expression.
Alan Modra [Thu, 1 Nov 2012 23:00:04 +0000 (23:00 +0000)]
daily update
Maciej W. Rozycki [Thu, 1 Nov 2012 22:54:11 +0000 (22:54 +0000)]
gas/
* config/tc-mips.c (append_insn): Set fx_no_overflow for 16-bit
microMIPS branch relocations.
gas/testsuite/
* gas/mips/micromips-b16.d: New test.
* gas/mips/micromips-b16.s: New test source.
* gas/mips/mips.exp: Run the new test.
Maciej W. Rozycki [Thu, 1 Nov 2012 22:49:28 +0000 (22:49 +0000)]
gas/
* config/tc-mips.c (is_delay_slot_valid): Don't accept macros
in 16-bit delay slots.
(macro_build_jalr): Emit 32-bit JALR if placed in a 32-bit delay
slot.
(macro) <M_JAL_2>: Likewise
gas/testsuite/
* gas/mips/micromips-branch-delay.l: Update messages for 16-bit
delay slot changes.
* gas/mips/micromips-warn-branch-delay.d: New test.
* gas/mips/micromips-warn-branch-delay.l: Stderr output for the
new test.
* gas/mips/micromips-warn-branch-delay-1.d: New test.
* gas/mips/micromips-warn-branch-delay.s: New test source.
* gas/mips/micromips-warn-branch-delay-1.s: New test source.
* gas/mips/mips.exp: Run the new tests.
Roland McGrath [Thu, 1 Nov 2012 22:44:58 +0000 (22:44 +0000)]
gold/
* system.h: Move inclusion of <clocale> to after <libintl.h> in
[ENABLE_NLS] section, and separately at top of [!ENABLE_NLS] section.
Roland McGrath [Thu, 1 Nov 2012 22:43:26 +0000 (22:43 +0000)]
gold/
* descriptors.cc (set_close_on_exec): Add ATTRIBUTE_UNUSED to the
parameter, which is unused in the [!F_SETFD] case.
Roland McGrath [Thu, 1 Nov 2012 22:35:06 +0000 (22:35 +0000)]
gold/
* dwarf_reader.cc (Sized_elf_reloc_mapper::symbol_section): Cast
SYMNDX to off_t before comparing it to this->data_size().
* output.cc (Output_symtab_xindex::endian_do_write): Likewise.
* incremental.cc (Output_section_incremental_inputs::do_write):
Cast GLOBAL_SYM_COUNT to off_t before comparing it to SYMTAB_SIZE.
Pierre Muller [Thu, 1 Nov 2012 21:22:27 +0000 (21:22 +0000)]
Incorporate ARI web page generator into GDB sources.
* contrib/ari/create-web-ari-in-src.sh: New file.
* contrib/ari/gdb_ari.sh: New file.
* contrib/ari/gdb_find.sh: New file.
* contrib/ari/update-web-ari.sh: New file.
Roland McGrath [Thu, 1 Nov 2012 18:16:23 +0000 (18:16 +0000)]
gold/
* nacl.cc: Include "libiberty.h" for vasprintf declaration.
Doug Evans [Thu, 1 Nov 2012 17:53:05 +0000 (17:53 +0000)]
* gdb.arch/amd64-pseudo.c (main): Mark registers that the testsuite
changes as clobbered (e.g., amd64-dword.exp) so gcc doesn't try to
use them.
Tom Tromey [Thu, 1 Nov 2012 14:57:22 +0000 (14:57 +0000)]
binutils
* readelf.c (get_note_type): Handle NT_386_TLS, NT_386_IOPERM.
include/common/elf
* common.h (NT_386_TLS, NT_386_IOPERM): New defines.
Nathan Sidwell [Thu, 1 Nov 2012 14:26:47 +0000 (14:26 +0000)]
* emultempl/elf32.em: Print stacksize help.
Alan Modra [Thu, 1 Nov 2012 04:15:07 +0000 (04:15 +0000)]
* ldlang.c (insert_pad): Correct output section size calculation.
(lang_size_sections_1): Likewise for lang_data_statement and
lang_reloc_statement.
gdbadmin [Thu, 1 Nov 2012 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***
Alan Modra [Wed, 31 Oct 2012 23:00:05 +0000 (23:00 +0000)]
daily update
Michael Eager [Wed, 31 Oct 2012 15:27:37 +0000 (15:27 +0000)]
2012-10-31 David Holsgrove <david.holsgrove@xilinx.com>
* config/tc-microblaze.c: Check for weak symbols before
emitting relocation.
2012-10-31 David Holsgrove <david.holsgrove@xilinx.com>
* gas/microblaze: New.
* gas/microblaze/reloc_sym.exp: Add test case.
* gas/microblaze/reloc_strongsym.s: Likewise.
* gas/microblaze/reloc_weaksym.s: Likewise.
* gas/microblaze/reloc_sym.d: Likewise.
Tom Tromey [Wed, 31 Oct 2012 14:29:10 +0000 (14:29 +0000)]
* gdbarch.c: Rebuild.
* gdbarch.sh: Remove references to gdbarch_swap.
* corelow.c (core_open): Remove obsolete comment.
Andrew Burgess [Wed, 31 Oct 2012 09:26:22 +0000 (09:26 +0000)]
sourceware.org/ml/gdb-patches/2012-10/msg00525.html
gdb/ChangeLog
PR cli/14772
* c-typeprint.c (c_print_type): Don't print a space for vector
types, this is handled within the suffix.
(c_type_print_varspec_suffix): Add a space to vector suffix
gdb/testsuite/ChangeLog
PR cli/14772
* gdb.base/gnu_vector.c (union_with_vector_1)
(struct_with_vector_1): Add new struct and union for testing
ptype.
* gdb.base/gnu_vector.exp: Add testing of ptype on vectors, and
structs / unions containing vectors.
Nick Clifton [Wed, 31 Oct 2012 08:42:11 +0000 (08:42 +0000)]
oops accidentally omitted from previous delta
gdbadmin [Wed, 31 Oct 2012 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***
H.J. Lu [Tue, 30 Oct 2012 13:30:15 +0000 (13:30 +0000)]
Handle --enable-64-bit-bfd when setting CORE_HEADER
* configure.in: Also handle --enable-64-bit-bfd when setting
CORE_HEADER for 'i[3-7]86-*-linux-*'.
Nick Clifton [Tue, 30 Oct 2012 12:44:58 +0000 (12:44 +0000)]
bfd:
* elf32-arm.c (elf32_arm_print_private_bfd_data): Recognise and
display the new ARM hard-float/soft-float ABI flags for EABI_VER5
(elf32_arm_post_process_headers): Add the hard-float/soft-float
ABI flag as appropriate for ET_DYN/ET_EXEC in EABI_VER5.
binutils:
* readelf.c (decode_ARM_machine_flags): Recognise and display the
new ARM hard-float/soft-float ABI flags for EABI_VER5. Split out
the code for EABI_VER4 and EABI_VER5 to allow this.
elfcpp:
* arm.h: New enum for EABI soft- and hard-float flags.
gold:
* gold.cc (Target_arm::do_adjust_elf_header): Add the
hard-float/soft-float ABI flag as appropriate for ET_DYN/ET_EXEC
in EABI_VER5.
include:
* elf/arm.h (EF_ARM_ABI_FLOAT_SOFT): New define.
(EF_ARM_ABI_FLOAT_HARD): Likewise.
ld/testsuite:
* ld-arm/eabi-hard-float.s: New test source.
* ld-arm/eabi-soft-float.s: New test source.
* ld-arm/eabi-hard-float.d: New test.
* ld-arm/eabi-soft-float.d: New test.
* ld-arm/eabi-soft-float-ABI4.d: New test.
* ld-arm/eabi-soft-float-r.d: New test.
* ld-arm/arm-elf.xp: Use the new tests.
binutils:
PR binutils/14779
* configure.in: Add checks for wchar.h and mbstate_t.
* config.in: Regenerate.
* configure: Regenerate.
* readelf.c: Conditionally include wchar.h.
(print_symbol): Conditionally use mbstate_t.
H.J. Lu [Tue, 30 Oct 2012 08:36:10 +0000 (08:36 +0000)]
Add Linux/x86_64 core support to i[3-7]86-*-linux
* configure.in: Set CORE_HEADER to hosts/x86-64linux.h for
'i[3-7]86-*-linux-*' if x86_64-*linux is enabled.
* configure: Regenerated.
* elf64-x86-64.c (elf_x86_64_write_core_note): Replace type
'prpsinfo_t' and 'prstatus_t' with 'prpsinfo64_t' and
'prstatus64_t' respectively.
* hosts/x86-64linux.h (a8_uint64_t): New.
(user_regsx32_struct): Renamed to ...
(user_regs64_struct): This. Replace uint64_t with a8_uint64_t.
(elf_gregx32_t): Renamed to ...
(elf_greg64_t): This. Replace uint64_t with a8_uint64_t.
(ELF_NGREGX32): Removed.
(ELF_NGREG64): New.
(elf_gregx32_t): Removed.
(elf_greg64_t): New.
(struct prstatus64_timeval): New.
(elf_prstatusx32): Replace elf_gregsetx32_t with elf_gregset64_t.
(elf_prstatus64): New.
(elf_prpsinfo64): New.
(prstatus64_t, prpsinfo64_t): New typedef.
gdbadmin [Tue, 30 Oct 2012 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***
Cary Coutant [Mon, 29 Oct 2012 23:01:51 +0000 (23:01 +0000)]
gold/
* dwp.cc (usage): Add file and exit status parameters;
add --help and --version options.
(print_version): New function.
(main): Add --help and --version options.
Alan Modra [Mon, 29 Oct 2012 23:00:04 +0000 (23:00 +0000)]
daily update
Sean Keys [Mon, 29 Oct 2012 21:28:09 +0000 (21:28 +0000)]
* elf32-xgate.c(elf_xgate_howto_table): Fix src and dest mask for
R_XGATE_16
Alan Modra [Mon, 29 Oct 2012 10:17:52 +0000 (10:17 +0000)]
* sb.c (sb_check): Use __builtin_clzll when size_t is not the
same size as long.