OSDN Git Service
amodra [Tue, 5 Oct 2010 05:48:09 +0000 (05:48 +0000)]
* bucomm.c (bfd_nonfatal): Flush stdout before output to stderr.
(bfd_nonfatal_message, report, list_matching_formats): Likewise.
(list_supported_targets): Tidy.
* objdump.c (free_only_list): Formatting.
(slurp_dynamic_symtab): Non-zero exit status for "not a dynamic
object".
(update_source_path): Delete redundant check for NULL filename.
(disassemble_bytes): Error if disassemble_fn returns a value
that won't increment address.
(disassemble_data): Don't capitalize error message.
(read_section_stabs): Likewise.
(main): Return non-zero exit status on bad options.
devans [Tue, 5 Oct 2010 04:28:12 +0000 (04:28 +0000)]
* cc-with-index.sh: New file.
devans [Tue, 5 Oct 2010 03:10:28 +0000 (03:10 +0000)]
* dwarf2read.c (hash_strtab_entry): Insert blank line after
function comment.
(eq_strtab_entry, create_strtab, add_string): Ditto.
(hash_symtab_entry, eq_symtab_entry, delete_symtab_entry): Ditto.
(create_index_table, create_mapped_symtab, find_slot): Ditto.
(hash_expand, add_index_entry, add_indices_to_cpool): Ditto.
(write_hash_table, add_address_entry, write_psymbols): Ditto.
(write_obstack, unlink_if_set, write_one_signatured_type): Ditto.
(write_psymtabs_to_index): Ditto.
devans [Tue, 5 Oct 2010 02:56:35 +0000 (02:56 +0000)]
* dwarf2read.c (dw2_do_instantiate_symtab): Insert blank line after
function comment.
(dw2_instantiate_symtab, dw2_get_cu, extract_cu_value): Ditto.
(create_cus_from_index, create_addrmap_from_index): Ditto.
(mapped_index_string_hash, find_slot_in_mapped_hash): Ditto.
(dw2_setup, dw2_require_line_header, dw2_require_full_path): Ditto.
(dw2_do_expand_symtabs_matching): Ditto.
gdbadmin [Tue, 5 Oct 2010 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***
devans [Mon, 4 Oct 2010 23:32:39 +0000 (23:32 +0000)]
* Makefile.in (uninstall): Use $(DESTDIR).
amodra [Mon, 4 Oct 2010 23:00:07 +0000 (23:00 +0000)]
daily update
brobecke [Mon, 4 Oct 2010 22:32:27 +0000 (22:32 +0000)]
[Ada/funcalls] do not coerce fat pointers on the stack
When one of the parameter values in a subprogram calls is an array
whose value does not come from inferior memory, the debugger first
copies the array value in inferior memory. Up to now, the memory
used to hold that copy was taken from the stack (just below the SP),
but this is causing problems on SPARC v9.
So the immediate fix is to follow what C does with arrays and strings,
which is allocate memory on the heap.
gdb/ChangeLog:
* ada-lang.c: #include "value.h".
(ensure_lval): Delete advance declaration. Remove gdbarch and sp
arguments. Implement using value_allocate_space_in_inferior
instead of allocating memory from the stack.
(make_array_descriptor): Remove gdbarch and sp parameters. Update
calls to ensure_lval.
(ada_convert_actual): Remove gdbarch and sp parameters. Update
calls to make_array_descriptor and ensure_lval.
* ada-lang.h (ada_convert_actual): Update declaration.
* infcall.c (value_arg_coerce): Update call to ada_convert_actual.
devans [Mon, 4 Oct 2010 15:30:19 +0000 (15:30 +0000)]
* python/python.c (_initialize_python): Define new function
GdbSetPythonDirectory in python. Use it to update sys.path and
gdb.__path__.
daney [Mon, 4 Oct 2010 15:24:45 +0000 (15:24 +0000)]
2010-10-04 David Daney <ddaney@caviumnetworks.com>
* config/tc-mips.c (mips_fix_cn63xxp1): New variable.
(mips_ip): Add errata work around when mips_fix_cn63xxp1 set.
(OPTION_FIX_CN63XXP1, OPTION_NO_FIX_CN63XXP1): New enum options
enumerations.
(md_longopts): Add options for -mfix-cn63xxp1 and -mno-fix-cn63xxp1.
(md_parse_option): Handle OPTION_FIX_CN63XXP1 and
OPTION_NO_FIX_CN63XXP1.
(md_show_usage): Add documentation for -mfix-cn63xxp1.
* doc/c-mips.texi (-mfix-cn63xxp1, -mno-fix-cn63xxp1): Document
the new options.
2010-10-04 David Daney <ddaney@caviumnetworks.com>
* gas/mips/mips.exp (octeon-pref): Run the new test.
* gas/mips/octeon-pref.s: New test.
* gas/mips/octeon-pref.d: New expected results for the new test.
bernds [Mon, 4 Oct 2010 14:13:08 +0000 (14:13 +0000)]
bfd/
* elf-bfd.h (struct bfd_elf_section_reloc_data): New structure.
(struct bfd_elf_section_data): New members REL and RELA; delete
members REL_HDR, REL_HDR2, REL_COUNT, REL_COUNT2, REL_IDX,
REL_IDX2, REL_HASHES.
(_bfd_elf_init_reloc_shdr): Adjust declaration.
(_bfd_elf_single_rel_hdr): Declare.
(RELOC_AGAINST_DISCARDED_SECTION): Use it.
* elf.c (bfd_section_from_shdr): Adjusted to match changes in
data structures.
(_bfd_elf_init_reloc_shdr): New arg RELDATA. Remove arg REL_HDR.
All callers changed. Allocate memory for the Elf_Internal_Shdr
structure.
(_bfd_elf_single_rel_hdr): New function.
(struct fake_section_arg): New structure.
(elf_fake_section): Expect to see a pointer to it in the third
argument. If doing a relocatable link, allocate both REL and RELA
sections as needed.
(assign_section_numbers): Adjusted to match changes in
data structures.
(_bfd_elf_compute_section_file_positions): Call elf_fake_sections
with a struct fake_section_args argument.
* elfcode.h (elf_write_relocs): Adjusted to match changes in
data structures.
(elf_slurp_reloc_table): Likewise.
* elflink.c (_bfd_elf_link_read_relocs): Likewise.
(_bfd_elf_link_size_reloc_section): Remove arg REL_HDR, replace with
RELDATA. Remove argument O. All callers changed. Remove code to
discover the right rel_hdr and count.
(_bfd_elf_link_output_relocs): Adjusted to match changes in
data structures.
(elf_link_adjust_relocs): Remove args REL_HDR, COUNT and REL_HASH;
replace with RELDATA. All callers changed.
(elf_link_input_bfd): Correctly generate rel_hash data when both
REL and RELA sections are present.
(elf_reloc_link_order): Adjusted to match changes in
data structures.
(bfd_elf_final_link): Simplify code to count relocs. Free the
hashes array for both REL and RELA.
(get_dynamic_reloc_section_name): Use _bfd_elf_single_reloc_hdr
* elf32-m32r.c (m32r_elf_fake_sections, elf_backend_fake_sections):
Delete.
* elf32-tic6x.c (elf32_tic6x_fake_sections, elf_backend_fake_sections):
Delete.
(elf32_tic6x_rel_relocation_p): Adjusted to match changes in
data structures.
* elf32-microblaze.c (microblaze_elf_check_relocs): Use
_bfd_elf_single_rel_hdr.
* elf32-ppc.c (ppc_elf_relax_section): Likewise.
* elf32-spu.c (spu_elf_relocate_section): Likewise.
* elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
* elf64-hppa.c (get_reloc_section): Likewise.
* elf64-mips.c (mips_elf64_slurp_reloc_table): Adjusted to match
changes in data structures.
(mips_elf64_write_relocs): Use _bfd_elf_single_rel_hdr.
* elf64-ppc.c (ppc64_elf_edit_opd): Likewise.
(ppc64_elf_edit_toc): Likewise.
(get_relocs): Adjusted to match changes in data structures.
Allocate an Elf_Internal_Shdr structure if necessary.
(ppc64_elf_finish_dynamic_sections): Use _bfd_elf_single_rel_hdr.
* elf64-sparc.c (elf64_sparc_slurp_reloc_table): Adjusted to match
changes in data structures.
* elfxx-ia64.c (get_reloc_section): Use _bfd_elf_single_rel_hdr.
* elfxx-mips.c (MIPS_RELOC_RELA_P): Remove macro.
(mips_elf_rel_relocation_p): Adjusted to match changes in data
structures.
(_bfd_mips_elf_relocate_section): Use mips_elf_rel_relocation_p rather
than MIPS_RELOC_RELOCA_P.
* elfxx-sparc.c (_bfd_sparc_elf_check_relocs): Use
_bfd_elf_single_rel_hdr.
(_bfd_sparc_elf_relocate_section): Likewise.
ld/
* emultempl/xtensaelf.em (replace_insn_sec_with_prop_sec): Use
_bfd_elf_single_rel_hdr.
hilfingr [Mon, 4 Oct 2010 06:37:53 +0000 (06:37 +0000)]
Have ptype handle types declared pragma Unchecked_Variants.
When a type is marked with pragma Unchecked_Variants, ptype did not print
variants having a single component, since the compiler produces incorrect
debugging output for such cases. With this patch, we special-case these
components so that they print.
Changelog:
* gdb/ada-typeprint.c (print_selected_record_field_types): New function,
incorporating and generalizing print_record_field_types.
(print_record_field_types): Change return value and update comment.
Re-implement using print_selected_record_field_types.
(print_choices): Print "=>" here.
Handle case of unencoded variant branch.
(print_variant_clauses): Reformat comment.
Special-case unencoded variant branch.
hilfingr [Mon, 4 Oct 2010 06:34:37 +0000 (06:34 +0000)]
Replace wild_match with faster version and modify its interface.
This new version of wild_match is comparable in speed to strcmp_iw, and has
the same signature and same return value for equal names.
gdb/ChangeLog:
* ada-lang.c (wild_match): Reimplement.
Change API to eliminate unused length argument, reverse arguments and
make 0 the 'true' return value.
(advance_wild_match): New auxiliary function for wild_match to improve
readability.
(ada_match_name, ada_add_block_symbols): Use new API for wild_match.
* psymtab.c (ada_lookup_partial_symbol, map_ada_symtabs): Use new
API for wild_match.
* symfile.h (map_ada_symtabs): Modify declaration to use new API for
wild_match.
* dwarf2read.c (dw2_map_ada_symtabs): Ditto.
gdbadmin [Mon, 4 Oct 2010 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***
amodra [Sun, 3 Oct 2010 23:00:05 +0000 (23:00 +0000)]
daily update
hjl [Sun, 3 Oct 2010 10:49:19 +0000 (10:49 +0000)]
Set BFD target to "plugin" for "nm --plugin".
2010-10-03 H.J. Lu <hongjiu.lu@intel.com>
PR binutils/12088
* nm.c (plugin_target): New.
(main): Set plugin_target to "plugin" for --plugin.
(display_file): Pass plugin_target to bfd_openr if target
isn't set.
gdbadmin [Sun, 3 Oct 2010 00:00:02 +0000 (00:00 +0000)]
*** empty log message ***
amodra [Sat, 2 Oct 2010 23:00:05 +0000 (23:00 +0000)]
daily update
green [Sat, 2 Oct 2010 19:54:12 +0000 (19:54 +0000)]
add missing object files to qemu support library.
green [Sat, 2 Oct 2010 19:34:25 +0000 (19:34 +0000)]
Minor crt0 improvement for moxie
cgf [Sat, 2 Oct 2010 19:08:20 +0000 (19:08 +0000)]
* dcrt0.cc (dll_crt0_0): Move _main_tls initialization here.
(__dll_crt0): Only initialize _main_tls if it changes.
* fhandler_console.cc (fhandler_console::write): Fix debugging output.
corinna [Sat, 2 Oct 2010 19:03:43 +0000 (19:03 +0000)]
* fhandler_disk_file.cc (fhandler_base::fstat_by_nfs_ea): Simplify.
Just call nfs_fetch_fattr3 if called via fstat.
* nfs.cc (nfs_fetch_fattr3): New function to fetch NFS fattr3 info from
file handle.
* nfs.h (nfs_fetch_fattr3): Declare.
* path.cc (symlink_info::check): Simplify NFS case. Just call
nfs_fetch_fattr3.
macro [Sat, 2 Oct 2010 17:48:21 +0000 (17:48 +0000)]
* lib/mi-support.exp (thread_selected_re): Correct pattern used
to match a thread ID.
rwild [Sat, 2 Oct 2010 14:54:05 +0000 (14:54 +0000)]
Allow to pass separate configure arguments for build, host and target.
/:
PR bootstrap/45326
PR bootstrap/45174
* configure.ac: Honor initial values of $build_configargs,
$host_configargs, $target_configargs. Mark the precious, so
environment settings get recorded.
* configure: Regenerate.
rwild [Sat, 2 Oct 2010 14:42:47 +0000 (14:42 +0000)]
Sync toplevel and config from GCC.
/:
Sync from GCC:
2010-09-30 Michael Eager <eager@eagercon.com>
* configure.ac (microblaze): Add target-libssp to noconfigdirs.
* configure: Regenerate.
2010-09-21 Iain Sandoe <iains@gcc.gnu.org>
* configure.ac (enable-lto): Add Darwin to the list of supported lto
targets and amend comment.
* configure: Regenerate.
2010-09-03 Jack Howarth <howarth@bromo.med.uc.edu>
* configure.ac: Enable LTO by default on Darwin.
* configure: Regenerate.
2010-07-23 Marc Glisse <marc.glisse@normalesup.org>
PR bootstrap/44455
* configure.ac (extra_mpfr_configure_flags): Copy from
extra_mpc_gmp_configure_flags.
* configure: Re-generated.
config/:
Sync from GCC:
2010-09-10 Jonathan Yong <jon_y@users.sourceforge.net>
* dfp.m4: Enable decimal float for i?86 cygwin
and mingw, and for x86_64 mingw.
jkratoch [Sat, 2 Oct 2010 13:31:47 +0000 (13:31 +0000)]
gdb/testsuite/
Fix s390x testcase compatibility.
* gdb.dwarf2/dw2-double-set-die-type.S: Use .2byte, not .value.
dougkwan [Sat, 2 Oct 2010 09:35:19 +0000 (09:35 +0000)]
2010-10-02 Doug Kwan <dougkwan@google.com>
* symtab.cc (Symbol_table::Symbol_table_hash::operator()): Move
defintion to symtab.h
* symtab.h (Symbol_table::Symbol_table_hash::operator()): Change
declaration to defintion.
corinna [Sat, 2 Oct 2010 08:44:06 +0000 (08:44 +0000)]
* fhandler_procsys.cc (fhandler_procsys::exists): Return virt_none
if path is invalid.
hjl [Sat, 2 Oct 2010 07:04:07 +0000 (07:04 +0000)]
Remove duplicated RMAL.
2010-10-02 H.J. Lu <hongjiu.lu@intel.com>
PR binutils/12076
* i386-dis.c (RMAL): Remove duplicate.
gdbadmin [Sat, 2 Oct 2010 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***
amodra [Sat, 2 Oct 2010 00:00:05 +0000 (00:00 +0000)]
daily update
cgf [Fri, 1 Oct 2010 21:53:11 +0000 (21:53 +0000)]
* autoload.cc (std_dll_init): Add a retry loop.
devans [Fri, 1 Oct 2010 20:47:44 +0000 (20:47 +0000)]
* dwarf2read.c (_initialize_dwarf2_read): Add usage info to help text
for `save gdb-index' command.
tromey [Fri, 1 Oct 2010 20:26:06 +0000 (20:26 +0000)]
* symfile.h (allocate_symtab): Update.
* symfile.c (allocate_symtab): Make 'filename' const.
* psymtab.c (add_psymbol_to_bcache): Make 'name' const.
(add_psymbol_to_list): Likewise.
* psympriv.h (struct partial_symtab) <filename, dirname>: Now
const.
(add_psymbol_to_list): Update.
* mdebugread.c (new_symtab): Make 'name' const.
(psymtab_to_symtab_1): Make 'filename' const.
* elfread.c (elfstab_offset_sections): Update.
* dwarf2read.c (dwarf_decode_lines): Make 'comp_dir' const.
(dwarf2_start_subfile): Make 'dirname' and 'comp_dir' const.
(psymtab_include_file_name): Update.
* dbxread.c (find_stab_function_addr): Make 'filename' const.
* buildsym.h (start_subfile): Update.
* buildsym.c (start_subfile): Make arguments const.
msnyder [Fri, 1 Oct 2010 17:35:27 +0000 (17:35 +0000)]
2010-09-30 Ali Lakhia <lakhia@alumni.utexas.net>
* fork-child.c (breakup_args): Fix crash if shell forking is
disabled at compile time.
devans [Fri, 1 Oct 2010 17:03:49 +0000 (17:03 +0000)]
* lib/gdb-python.exp: New file.
* gdb.python/py-block.exp: Use it.
* gdb.python/py-breakpoint.exp: Ditto.
* gdb.python/py-frame.exp: Ditto.
* gdb.python/py-inferior.exp: Ditto.
* gdb.python/py-param.exp: Ditto.
* gdb.python/py-prettyprint.exp: Ditto.
* gdb.python/py-shared.exp: Ditto.
* gdb.python/py-symbol.exp: Ditto.
* gdb.python/py-symtab.exp: Ditto.
* gdb.python/py-type.exp: Ditto.
* gdb.python/py-value.exp: Ditto.
* gdb.python/python.exp: Ditto.
brobecke [Fri, 1 Oct 2010 16:25:00 +0000 (16:25 +0000)]
[Ada] array and bounds in fat pointer can be a stub
This patch adds handling of the case when a fat pointer has the
P_ARRAY and/or P_BOUNDS fields defined as a stub. In that case,
this stub needs to be resolved.
There are two issues:
. First, making sure that the resolution takes place itself.
That's the change to ada_check_typedef.
. Make sure that the type returned after resolution is not itself
a typedef. This is the change to ada_check_typedef.
gdb/ChangeLog (Jerome Guitton, Joel Brobecker):
* ada-lang.c (desc_bounds): Add handling of the case where
the P_BOUNDS field is a pointer to a stub.
(desc_data_target_type): Same for P_ARRAY field.
(ada_check_typedef): Strip the typedef layers from the type
found by ada_find_any_type.
brobecke [Fri, 1 Oct 2010 15:55:12 +0000 (15:55 +0000)]
[sparc] inferior SEGV while calling Ada subprogram
gdb/ChangeLog:
* sparc-tdep.c (sparc32_frame_align): New function.
(sparc32_gdbarch_init): Set the frame_align gdbarch method.
* sparc64-tdep.c (sparc64_frame_align): New function.
(sparc64_gdbarch_init): Set the frame_align gdbarch method.
nickc [Fri, 1 Oct 2010 15:02:32 +0000 (15:02 +0000)]
* expression.cc (eval): Replace dummy argument with NULL.
(eval_maybe_dot): Check for a NULL result section pointer.
(Symbol_expression::value): Likewise.
(Dot_expression::value): Likewise.
(BINARY_EXPRESSION): Likewise.
(Max_expression::value): Likewise.
(Min_expression::value): Likewise.
(Absolute_expression::value): Likewise.
(Addr_expression::value_from_output_section): Likewise.
(Loaddddr_expression::value_from_output_section): Likewise.
(Segment_start_expression::value): Likewise.
* script-sections.cc
(Sections_elememt_dot_assignment::finalize_symbols): Replace dummy
argument with NULL.
(Sections_elememt_dot_assignment::set_section_addresses):
Likewise.
(Output_data_expression::do_write_to_buffer): Likewise.
(Output_section_definition::finalize_symbols): Likewise.
(Output_section_definition::set_section_addresses): Likewise.
tschwinge [Fri, 1 Oct 2010 11:22:40 +0000 (11:22 +0000)]
2010-10-01 Thomas Schwinge <thomas@codesourcery.com>
* elf32-arm.c (elf32_arm_size_stubs): Don't choke on local symbols in
SHN_UNDEF, SHN_ABS, SHN_COMMON.
amodra [Fri, 1 Oct 2010 08:15:41 +0000 (08:15 +0000)]
PR ld/12066
* ldexp.c (fold_name): Treat absolute symbols as plain numbers.
* ld.texinfo (Expression Section): Don't say absolute symbols
are addresses.
hjl [Fri, 1 Oct 2010 04:47:01 +0000 (04:47 +0000)]
Add 2 tests for PR ld/11812.
2010-09-30 H.J. Lu <hongjiu.lu@intel.com>
PR ld/11812
* ld-i386/nogot2.d: New
* ld-i386/nogot2.s: Likewise.
* ld-x86-64/nogot2.d: Likewise.
* ld-x86-64/nogot2.s: Likewise.
* ld-i386/i386.exp: Run nogot2.
* ld-x86-64/x86-64.exp: Likewise.
hjl [Fri, 1 Oct 2010 04:28:01 +0000 (04:28 +0000)]
Clear non_elf on ELF linker defined symbols.
2010-09-30 H.J. Lu <hongjiu.lu@intel.com>
PR ld/11812
* elf32-i386.c (elf_i386_size_dynamic_sections): Don't
allocate .got.plt section if there are no GOT nor PLT
entries and there is no refeence to _GLOBAL_OFFSET_TABLE_.
* elf64-x86-64.c (elf64_x86_64_size_dynamic_sections): Li.kewise.
* elflink.c (_bfd_elf_define_linkage_sym): Clear non_elf.
hjl [Fri, 1 Oct 2010 00:43:40 +0000 (00:43 +0000)]
Set MAX_REGISTER_SIZE to 64.
2010-09-30 H.J. Lu <hongjiu.lu@intel.com>
* defs.h (MAX_REGISTER_SIZE): Set to 64.
gdbadmin [Fri, 1 Oct 2010 00:00:32 +0000 (00:00 +0000)]
*** empty log message ***
amodra [Fri, 1 Oct 2010 00:00:04 +0000 (00:00 +0000)]
daily update
rwild [Thu, 30 Sep 2010 21:55:13 +0000 (21:55 +0000)]
build: info-gcc, dvi-gcc etc work from unbuilt configured tree.
/:
Sync from GCC:
PR bootstrap/45796
* Makefile.def (info-gcc, dvi-gcc, pdf-gcc, html-gcc):
Depend on all-build-libiberty.
* Makefile.in: Regenerate.
tromey [Thu, 30 Sep 2010 19:14:29 +0000 (19:14 +0000)]
* symfile.h (struct sym_fns) <next>: Remove.
(add_symtab_fns): Update.
* symfile.c (sym_fns_ptr): New typedef.
(symtab_fns): Now a VEC.
(add_symtab_fns): Update. Change argument type.
(find_sym_fns): Update. Change return type.
(get_symfile_segment_data): Update.
* objfiles.h (struct objfile) <sf>: Now const.
* somread.c (som_sym_fns): Now const. Update.
* xcoffread.c (xcoff_sym_fns): Now const. Update.
* mipsread.c (ecoff_sym_fns): Now const. Update.
* machoread.c (macho_sym_fns): Now const. Update.
* elfread.c (elf_sym_fns): Now const. Update.
(elf_sym_fns_gdb_index): Likewise.
* dbxread.c (aout_sym_fns): Now const. Update.
* coffread.c (coff_sym_fns): Now const. Update.
tromey [Thu, 30 Sep 2010 18:58:06 +0000 (18:58 +0000)]
gdb
* value.c (value_primitive_field): Take 'offset' into account for
packed field.
gdb/testsuite
* gdb.base/anon.exp: New file.
* gdb.base/anon.c: New file.
tromey [Thu, 30 Sep 2010 17:51:34 +0000 (17:51 +0000)]
gdb
* completer.c (count_struct_fields): Handle anonymous structs and
unions.
(add_struct_fields): Likewise.
gdb/testsuite
* gdb.base/completion.exp: Test completion through anonymous
union.
* gdb.base/break1.c (struct some_struct): Add anonymous union.
muller [Thu, 30 Sep 2010 16:02:34 +0000 (16:02 +0000)]
* s390-mkopc.c (main): Exit with error 1 if sscanf fails
to parse all 6 parameters.
corinna [Thu, 30 Sep 2010 13:52:31 +0000 (13:52 +0000)]
* fhandler.cc: Drop including nfs.h.
* fhandler_disk_file.cc: Ditto.
(fhandler_base::fstat_by_nfs_ea): Use fattr3 from path_conv member,
unless called from fstat.
* path.cc: Drop including nfs.h.
(symlink_info::check): Rearrange definition of file info buffers.
Fetch fattr3 info for files on NFS and store in conv_hdl for later
use in fhandler_base::fstat_by_nfs_ea. Use fattr3 file type to
recognize symlink on NFS and try to fetch symlink target only for
actual symlinks.
* path.h: Include nfs.h.
(class path_conv_handle): Change file info storage to union of
FILE_NETWORK_OPEN_INFORMATION and fattr3 structures.
(path_conv_handle::fnoi): Align to aforementioned change.
(path_conv_handle::nfsattr): New method.
(path_conv::nfsattr): New method.
muller [Thu, 30 Sep 2010 11:32:15 +0000 (11:32 +0000)]
* s390-mkopc.c (main): Change description array size to 80.
Add maximum length of 79 to description parsing.
corinna [Thu, 30 Sep 2010 10:42:34 +0000 (10:42 +0000)]
* path.cc (symlink_info::check): Remove erroneous assumption about
required permissions when reading NFS symlinks.
jkratoch [Thu, 30 Sep 2010 10:28:59 +0000 (10:28 +0000)]
gdb/
Fix printing parameters of inlined functions.
* ada-lang.c (is_known_support_routine)
(ada_unhandled_exception_name_addr_from_raise): Provide NULL parameter
for find_frame_funname.
* python/py-frame.c (frapy_name): Likewise.
* stack.c (find_frame_funname): New parameter funcp. Update the
function comment. Fill it in.
(print_frame): New variable func. Initialize it by
find_frame_funname. Print arguments only if FUNC is not NULL. Use
FUNC as the parameter of print_args_stub.
* stack.h (find_frame_funname): New parameter funcp. Remove the
function declaration comment.
gdb/testsuite/
Fix printing parameters of inlined functions.
* gdb.dwarf2/dw2-inline-param.exp: New file.
* gdb.dwarf2/dw2-inline-param-main.c: New file.
* gdb.dwarf2/dw2-inline-param.S: New file.
jkratoch [Thu, 30 Sep 2010 10:24:39 +0000 (10:24 +0000)]
gdb/
PR corefiles/12071.
* inferior.c (have_live_inferiors): New variables old_chain, inf and
tp. Iterate INFERIOR_LIST and call target_has_execution.
gdb/testsuite/
PR corefiles/12071.
* gdb.base/corefile.exp (quit with a process, no question: load core)
(quit with a core file): New tests.
dougkwan [Thu, 30 Sep 2010 08:12:39 +0000 (08:12 +0000)]
2010-09-30 Doug Kwan <dougkwan@google.com>
* gold/testsuite/arm_branch_out_of_range.sh: Fix broken tests.
kevinb [Thu, 30 Sep 2010 00:03:23 +0000 (00:03 +0000)]
* mem.c (rx_mem_ptr): When invalidating the decode cache, account
for the fact that the instruction decoder never uses swapped
addresses.
gdbadmin [Thu, 30 Sep 2010 00:01:03 +0000 (00:01 +0000)]
*** empty log message ***
amodra [Thu, 30 Sep 2010 00:00:05 +0000 (00:00 +0000)]
daily update
jkratoch [Wed, 29 Sep 2010 22:32:48 +0000 (22:32 +0000)]
gdb/
Fix GDB crash on inferior calls with self-referencing classes.
* gnu-v3-abi.c (gnuv3_pass_by_reference): Do not call itself on static
member fields.
gdb/testsuite/
Fix GDB crash on inferior calls with self-referencing classes.
* gdb.dwarf2/dw2-cp-infcall-ref-static.exp: New file.
* gdb.dwarf2/dw2-cp-infcall-ref-static-main.c: New file.
* gdb.dwarf2/dw2-cp-infcall-ref-static.S: New file.
devans [Wed, 29 Sep 2010 16:41:20 +0000 (16:41 +0000)]
Workaround for gcc/45682.
* dwarf2read.c (partial_die_info): New fields fixup_called,
linkage_name.
(guess_partial_die_structure_name): Renamed from guess_structure_name.
Move definition next to use. Use linkage_name to determine if class
is in a namespace. All callers updated.
(fixup_partial_die): Return early if already called.
Set fixup_called when done.
(guess_full_die_structure_name): New function.
(determine_prefix): Call it for class/struct/union dies if c++ and
.debug_types section is present and parent is DW_TAG_compile_unit.
nickc [Wed, 29 Sep 2010 15:47:45 +0000 (15:47 +0000)]
* rx.c (decode_opcode: RXO_int): Only break out of the emulation
loop if rx_syscall() does not return a RX_STEPPED result.
cgf [Wed, 29 Sep 2010 15:08:48 +0000 (15:08 +0000)]
* fhandler_tty.cc (fhandler_tty_slave::init): Revert to using tc->setpgid since
previous change broke some use cases.
bernds [Wed, 29 Sep 2010 10:14:00 +0000 (10:14 +0000)]
include/
* opcode/tic6x-control-registers.h (tscl): Now read_write.
gas/testsuite/
* gas/tic6x/insns-bad-1.s: Remove test for readonly tscl.
* gas/tic6x/insns-bad-1.l: Likewise.
* gas/tic6x/insns-c674x.d: Add test for writeable tscl.
* gas/tic6x/insns-c674x.s: Likewise.
amodra [Wed, 29 Sep 2010 06:49:32 +0000 (06:49 +0000)]
* gas/all/fwdexp.d, * gas/all/fwdexp.s: New test.
* gas/all/gas.exp: Run it.
amodra [Wed, 29 Sep 2010 06:48:30 +0000 (06:48 +0000)]
* expr.c (expr): Correct returned segment value.
amodra [Wed, 29 Sep 2010 06:20:06 +0000 (06:20 +0000)]
* ld-h8300/h8300.exp: Use is_elf_format.
amodra [Wed, 29 Sep 2010 06:17:11 +0000 (06:17 +0000)]
* ldlang.c (lang_place_orphans): Zero vma when relocatable or non-load
section for orphans handled here.
amodra [Wed, 29 Sep 2010 06:06:00 +0000 (06:06 +0000)]
* lib/ld-lib.exp (is_elf_format): Merge with binutils and gas versions.
(is_aout_format): Update target list.
(is_pecoff_format): Remove unnecessary line continuation.
amodra [Wed, 29 Sep 2010 06:05:16 +0000 (06:05 +0000)]
* lib/gas-defs.exp (is_elf_format): Merge with binutils and ld versions.
(is_aout_format): Copy from ld testsuite.
(is_pecoff_format): Merge with ld version.
amodra [Wed, 29 Sep 2010 06:04:40 +0000 (06:04 +0000)]
* lib/utils-lib.exp (is_elf_format): Merge with gas and ld versions.
cgf [Wed, 29 Sep 2010 03:57:24 +0000 (03:57 +0000)]
* fhandler_tty.cc (fhandler_tty_slave::init): Add debugging. Use tcsetpgrp to
potentially set pgid since it is smarter about deciding if a process is in the
background.
* include/sys/cygwin.h (PID_ORPHANED): Actually delete as planned.
(PID_NOTCYGWIN): Correctly define.
gdbadmin [Wed, 29 Sep 2010 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***
amodra [Wed, 29 Sep 2010 00:00:05 +0000 (00:00 +0000)]
daily update
brobecke [Tue, 28 Sep 2010 21:46:09 +0000 (21:46 +0000)]
Add a sparc simulator with the sparc bareboard target.
gdb/ChangeLog:
* configure.tgt (sparc-*-*): Set gdb_sim to ../sim/erc32/libsim.a.
(sparc-*-rtems*): Delete, now redundant with the sparc-*-* case.
brobecke [Tue, 28 Sep 2010 21:40:22 +0000 (21:40 +0000)]
[doco] document support for Ravenscar profile
This announces the support for debugging Ada programs using
the Ravenscar Profile, as well as documents the new commands
introduced as part of this effort.
gdb/ChangeLog:
* NEWS: Announce Ravenscar Profile support.
gdb/doc/ChangeLog:
* gdb.texinfo (Ravenscar Profile): New node.
brobecke [Tue, 28 Sep 2010 21:39:31 +0000 (21:39 +0000)]
Add support for GNAT Ravenscar run-time library.
gdb/ChangeLog (Jerome Guitton, Joel Brobecker):
* ravenscar-thread.c, ravenscar-thread.h, ravenscar-sparc-thread.c:
New files.
* configure.tgt (sparc-*-*): Add ravenscar-thread.o and
ravenscar-sparc-thread.o to gdb_target_obs.
brobecke [Tue, 28 Sep 2010 21:39:03 +0000 (21:39 +0000)]
[Ada] Add ada-tasks.c:iterate_over_live_ada_tasks
This new function is needed by the ravenscar-thread layer.
gdb/ChangeLog:
* ada-tasks.c (iterate_over_live_ada_tasks): New function.
* ada-lang.h (iterate_over_live_ada_tasks): Declare.
tmsriram [Tue, 28 Sep 2010 17:14:15 +0000 (17:14 +0000)]
2010-09-28 Sriraman Tallam <tmsriram@google.com>
* target.h (Target::can_icf_inline_merge_sections): New virtual
function.
* x86_64.cc (Target__x86_64::can_icf_inline_merge_sections): New
virtual function.
* i386.cc (Target_i386::can_icf_inline_merge_sections): New
virtual function.
* icf.cc (get_section_contents): Inline merge sections only when
target allows it.
corinna [Tue, 28 Sep 2010 16:18:56 +0000 (16:18 +0000)]
* net.cc (getdomainname): Drop special case for NT4.
corinna [Tue, 28 Sep 2010 14:49:31 +0000 (14:49 +0000)]
Revert accidental previous login.
corinna [Tue, 28 Sep 2010 14:40:16 +0000 (14:40 +0000)]
* Makefile.in (DLL_IMPORTS): Remove libadvapi32.a.
* autoload.cc: Add all advapi32 entry points.
* mount.cc (mount_info::init): Read user fstab only if we have a
username.
* passwd.cc (pwdgrp::read_passwd): Only use username if we have one.
* shared.cc (user_info::initialize): Set cb last so as not to override
planned behaviour in pwdgrp::read_passwd.
* uinfo.cc (cygheap_user::init): Fetch Windows username from environment
variable $USERNAME. Don't set name in cygheap if variable is empty.
(internal_getlogin): If we still have no username, try GetUserNameW.
corinna [Tue, 28 Sep 2010 10:13:19 +0000 (10:13 +0000)]
* fhandler_tty.cc (fhandler_pty_master::setup): Always create master
thread.
corinna [Tue, 28 Sep 2010 07:54:52 +0000 (07:54 +0000)]
* syscalls.cc (gethostid): Use correct path to ProductId registry value.
gdbadmin [Tue, 28 Sep 2010 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***
amodra [Tue, 28 Sep 2010 00:00:06 +0000 (00:00 +0000)]
daily update
muller [Mon, 27 Sep 2010 22:05:40 +0000 (22:05 +0000)]
* amd64-windows-tdep.c (amd64_skip_main_prologue): New function.
(amd64_windows_init_abi): Register amd64_skip_main_prologue as gdbarch
skip_main_prologue method.
dj [Mon, 27 Sep 2010 21:01:11 +0000 (21:01 +0000)]
merge from gcc
rwild [Mon, 27 Sep 2010 20:22:45 +0000 (20:22 +0000)]
Fix unportable shell quoting.
/:
Sync from GCC:
PR bootstrap/44621
* configure.ac: Fix unportable shell quoting.
* configure: Regenerate.
config/:
* po.m4 (AM_PO_SUBDIRS): Fix unportable shell quoting.
bfd/:
* configure: Regenerate.
gas/:
* configure: Regenerate.
gold/:
* configure: Regenerate.
intl/:
* configure: Regenerate.
ld/:
* configure: Regenerate.
opcodes/:
* configure: Regenerate.
binutils/:
* configure: Regenerate.
gprof/:
* configure: Regenerate.
tromey [Mon, 27 Sep 2010 18:42:35 +0000 (18:42 +0000)]
* dwarf2read.c (dwarf2_read_index): Only allow version 3.
(write_psymbols): Add 'psyms_seen' and 'is_static' arguments.
Only emit a given psymbol once.
(struct signatured_type_index_data) <psyms_seen>: New field.
(write_one_signatured_type): Update.
(cleanup_htab): New function.
(write_psymtabs_to_index): Update. Create psyms_seen hash. Bump
version to 3.
(save_gdb_index_command): Update index documentation.
tromey [Mon, 27 Sep 2010 17:41:35 +0000 (17:41 +0000)]
* bcache.c (expand_hash_table): Use hash_function, not hash.
tromey [Mon, 27 Sep 2010 17:28:47 +0000 (17:28 +0000)]
* gdb_wchar.h: Change minimum libiconv to 0x108.
corinna [Mon, 27 Sep 2010 16:46:34 +0000 (16:46 +0000)]
* pathnames.sgml (mount-table): Fix pathnames-mount-ex example. Change
an expression.
corinna [Mon, 27 Sep 2010 16:37:57 +0000 (16:37 +0000)]
* new-features.sgml (ov-new1.7.8): Document dropped NT4 pre-SP4 support.
* faq-what.xml (faq.what.supported): Change accordingly.
* ntsec.sgml (ntsec-mapping): Add 2008 R2.
corinna [Mon, 27 Sep 2010 16:10:12 +0000 (16:10 +0000)]
* mount.cc (fs_info::update): Remove erroneous NtClose on random handle
value.
bernds [Mon, 27 Sep 2010 15:52:39 +0000 (15:52 +0000)]
gas/
* config/tc-tic6x.c (tic6x_fix_adjustable): New function.
* config/tc-tic6x.h (tic6x_fix_adjustable): Declare.
(tc_fix_adjustable): New macro.
gas/testsuite/
* gas/tic6x/got-reloc.s: New test.
* gas/tic6x/got-reloc.d: New test.
krebbel [Mon, 27 Sep 2010 13:36:45 +0000 (13:36 +0000)]
2010-09-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
* s390-mkopc.c (enum s390_opcde_cpu_val): Add S390_OPCODE_Z196.
(main): Recognize the new CPU string.
* s390-opc.c: Add new instruction formats and masks.
* s390-opc.txt: Add new z196 instructions.
2010-09-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
* opcode/s390.h: Add S390_OPCODE_Z196 to enum s390_opcode_cpu_val.
2010-09-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
* config/tc-s390.c: (md_parse_option): New option -march=z196.
* doc/c-s390.texi: Document new option.
2010-09-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
* gas/s390/s390.exp: Run the zarch-z196 test.
* gas/s390/zarch-z196.d: Add new instructions.
* gas/s390/zarch-z196.s: Likewise.
* gas/s390/zarch-z9-109.d: Likewise.
* gas/s390/zarch-z9-109.s: Likewise.
krebbel [Mon, 27 Sep 2010 13:32:58 +0000 (13:32 +0000)]
2010-09-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
* s390-dis.c (print_insn_s390): Pick instruction with most
specific mask.
* s390-opc.c: Add unused bits to the insn mask.
* s390-opc.txt: Reorder some instructions to prefer more recent
versions.
2010-09-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
* gas/s390/esa-g5.d: Adjust serveral instructions.
* gas/s390/esa-reloc.d: Likewise.
* gas/s390/esa-z990.d: Likewise.
* gas/s390/zarch-reloc.d: Likewise.
* gas/s390/zarch-z10.d: Likewise.
* gas/s390/zarch-z9-ec.d: Likewise.
* gas/s390/zarch-z900.d: Likewise.
2010-09-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
* ld-s390/tlsbin.dd: bcr 0,%r7 -> nopr %r7.
* ld-s390/tlsbin_64.dd: Likewise.
* ld-s390/tlspic.dd: Likewise.
* ld-s390/tlspic_64.dd: Likewise.
mgretton [Mon, 27 Sep 2010 09:47:04 +0000 (09:47 +0000)]
2010-09-27 Tejas Belagod <tejas.belagod@arm.com>
* gas/config/tc-arm.c (do_neon_ldr_str): Deprecate ARM-mode PC-relative
VSTR, issue an error in THUMB mode.
* opcodes/arm_dis.c (print_insn_coprocessor): Apply off-by-alignment
correction to unaligned PCs while printing comment.
* gas/testsuite/gas/arm/vldr.s: New test for pc-relative VLDR disassembly comment.
* gas/testsuite/gas/arm/vldr.d: Likewise.
* gas/testsuite/gas/arm/vstr-bad.s: New test for PC-relative VSTR.
* gas/testsuite/gas/arm/vstr-thumb-bad.l: Likewise.
* gas/testsuite/gas/arm/vstr-thumb-bad.d: Likewise.
* gas/testsuite/gas/arm/vstr-arm-bad.l: Likewise.
* gas/testsuite/gas/arm/vstr-arm-bad.d: Likewise.