external/binutils.git
15 years ago * gdbarch.sh (target_gdbarch): New global variable.
Ulrich Weigand [Tue, 26 Aug 2008 17:21:29 +0000 (17:21 +0000)]
* gdbarch.sh (target_gdbarch): New global variable.
(deprecated_current_gdbarch_select_hack): Set it.
* gdbarch.c, gdbarch.h: Regenerate.

* arch-utils.c (gdbarch_update_p): Use target_gdbarch instead
of current_gdbarch.
* target-descriptions.c (target_find_description): Likewise.
* arm-tdep.c (arm_update_current_architecture): Likewise.
(show_fp_model, arm_show_abi, arm_show_fallback_mode,
arm_show_force_mode): Likewise.
* mips-tdep.c (show_mask_address, show_mipsfpu_command,
show_mips_abi): Likewise.
* mep-tdep.c (me_module_register_set, current_me_module): Likewise.

* target.c (target_translate_tls_address): Use target_gdbarch
instead of current_gdbarch.
* remote.c (struct packet_reg): Likewise.
(get_remote_arch_state, packet_reg_from_regnum,
packet_reg_from_pnum, remote_check_symbols, remote_wait,
remote_address_masked, remote_insert_breakpoint,
remote_insert_hw_breakpoint, remote_read_description): Likewise.
* remote-m32r-sdi.c (m32r_resume, m32r_wait): Likewise.
* remote-mips.c (mips_open, mips_common_breakpoint): Likewise.
* cris-tdep.c (cris_can_use_hardware_watchpoint): Likewise.

* solib.c (solib_open, solib_map_sections, solib_read_symbols,
solib_add, info_sharedlibrary_command, solib_address,
solib_create_inferior_hook, in_solib_dynsym_resolve_code,
solib_global_lookup): Likewise.
* solib-frv.c (enable_break2, frv_relocate_main_executable): Likewise.
* solib-irix.c (irix_current_sos, irix_open_symbol_file_object):
Likewise.
* solib-sunos.c (sunos_solib_create_inferior_hook): Likewise.
* solib-svr4.c (exec_entry_point, enable_break, svr4_free_so,
set_solib_svr4_fetch_link_map_offsets, svr4_fetch_link_map_offsets):
Likewise.
* nto-tdep.c (nto_find_and_open_solib, nto_init_solib_absolute_prefix,
nto_truncate_ptr): Likewise.
* mips-linux-tdep.c (mips_linux_in_dynsym_stub): Likewise.

15 years ago * c-arm.texi: Add tutorial on ARM unwinding pseudo ops.
Mark Mitchell [Tue, 26 Aug 2008 16:02:59 +0000 (16:02 +0000)]
* c-arm.texi: Add tutorial on ARM unwinding pseudo ops.

15 years ago * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections) New structure.
Luis Machado [Tue, 26 Aug 2008 15:16:41 +0000 (15:16 +0000)]
* ppc-linux-tdep.c (ppc_linux_vsx_regset_sections) New structure.
(ppc_linux_vmx_regset_sections): New structure.
(ppc_linux_fp_regset_sections): New structure.
(ppc_linux_init_abi): Select core-file regset  based on target
features.

15 years ago * elf32-arm.c: Fix up comment describing Thumb to ARM interworking
Nick Clifton [Tue, 26 Aug 2008 14:40:18 +0000 (14:40 +0000)]
        * elf32-arm.c: Fix up comment describing Thumb to ARM interworking
            stub.

15 years ago * target.c (debug_print_register): Use regcache_raw_collect
Ulrich Weigand [Tue, 26 Aug 2008 12:42:00 +0000 (12:42 +0000)]
* target.c (debug_print_register): Use regcache_raw_collect
instead of regcache_cooked_read.  Only handle raw registers.

15 years agobfd/
Nick Clifton [Tue, 26 Aug 2008 11:46:41 +0000 (11:46 +0000)]
bfd/
        * elf32-arm.c (arm_thumb_arm_v4t_short_branch_stub): Define.
        (elf32_arm_stub_type): Add arm_thumb_arm_v4t_stub_short_branch.
        (arm_type_of_stub): Handle armv4t short branches. Update
        prototype.
        (arm_stub_is_thumb): Handle arm_thumb_arm_v4t_stub_short_branch.
        (arm_build_one_stub): Likewise.
        (arm_size_one_stub): Likewise.
        (elf32_arm_size_stubs): Use new arm_type_of_stub prototype.
        (arm_map_one_stub): Handle arm_thumb_arm_v4t_stub_short_branch.

        ld/testsuite/
        * ld-arm/arm-elf.exp: Add farcall-thumb-arm-short test.
        * ld-arm/farcall-group2.s: Fix comment.
        * ld-arm/farcall-thumb-arm-short.d: New test.
        * ld-arm/farcall-thumb-arm-short.s: New test.

15 years agoPR 6727
Nick Clifton [Tue, 26 Aug 2008 11:11:17 +0000 (11:11 +0000)]
PR 6727
   * emultempl/armelf.em (arm_elf_set_bfd_for_interworking): Scan all
   input sections in all input bfds and always select the last
   suitable one, so that interworking stubs are always processed
   after all other input sections.
   (arm_elf_before_allocation): Remove redundant use of
   output_has_begun flag.

15 years ago * config/bfin-parse.y (check_macfunc_option): Fix instruction
Jie Zhang [Tue, 26 Aug 2008 10:03:24 +0000 (10:03 +0000)]
* config/bfin-parse.y (check_macfunc_option): Fix instruction
mode checking.
(asm_1): Check mode for 16-bit multiply instructions.

testsuite/
* gas/bfin/arith_mode.d: New test.
* gas/bfin/arith_mode.s: New test.
* gas/bfin/invalid_arith_mode.l: New test.
* gas/bfin/invalid_arith_mode.s: New test.
* gas/bfin/bfin.exp: Add arith_mode and invalid_arith_mode.

15 years ago*** empty log message ***
gdbadmin [Tue, 26 Aug 2008 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

15 years agodaily update
Alan Modra [Tue, 26 Aug 2008 00:00:05 +0000 (00:00 +0000)]
daily update

15 years ago * cp-name-parser.y: Include config.h before system headers.
Pedro Alves [Mon, 25 Aug 2008 21:50:25 +0000 (21:50 +0000)]
* cp-name-parser.y: Include config.h before system headers.

15 years ago * m88k-tdep.c: Update for unwinder changes.
Ulrich Weigand [Mon, 25 Aug 2008 21:03:29 +0000 (21:03 +0000)]
* m88k-tdep.c: Update for unwinder changes.

15 years agoMerge from gcc:
DJ Delorie [Mon, 25 Aug 2008 17:26:06 +0000 (17:26 +0000)]
Merge from gcc:
2008-08-16  Nicolas Roche  <roche@adacore.com>
* Makefile.tpl: Add BOOT_ADAFLAGS.
* Makefile.in: Regenerate.

15 years agoMerge from gcc.
DJ Delorie [Mon, 25 Aug 2008 17:07:33 +0000 (17:07 +0000)]
Merge from gcc.

15 years ago * gmon_io.h: Don't include sysdep.h here.
Alan Modra [Mon, 25 Aug 2008 04:38:45 +0000 (04:38 +0000)]
* gmon_io.h: Don't include sysdep.h here.
(O_BINARY, SET_BINARY): Don't define here.
* gmon_io.c: Include "binary-io.h".
(gmon_out_read): Remove #ifdef SET_BINARY.
* Makefile.am: Run "make dep-am"
* Makefile.in: Regenerate.

15 years ago * sysdep.h: Include "binary-io.h".
Alan Modra [Mon, 25 Aug 2008 04:38:13 +0000 (04:38 +0000)]
* sysdep.h: Include "binary-io.h".
(O_BINARY): Don't define here.
* bin2c.c (O_BINARY, O_TEXT, SET_BINARY): Don't define here.
* strings.c: Likewise.
(main): Remove #ifdef SET_BINARY.
* Makefile.am: Run "make dep-am"
* Makefile.in: Regenerate.

15 years ago * binary-io.h: New file, imported from gnulib, but don't
Alan Modra [Mon, 25 Aug 2008 04:36:03 +0000 (04:36 +0000)]
* binary-io.h: New file, imported from gnulib, but don't
#include <fcntl.h> or <stdio.h>.

15 years ago*** empty log message ***
gdbadmin [Mon, 25 Aug 2008 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

15 years agodaily update
Alan Modra [Mon, 25 Aug 2008 00:00:05 +0000 (00:00 +0000)]
daily update

15 years ago(_bfd_elf_write_section_eh_frame): Do proper
Andreas Schwab [Sun, 24 Aug 2008 21:43:00 +0000 (21:43 +0000)]
(_bfd_elf_write_section_eh_frame): Do proper
extension when calculating difference of offsets.

15 years ago * s390-tdep.c (s390_address_class_type_flags): Use
Tom Tromey [Sun, 24 Aug 2008 20:33:33 +0000 (20:33 +0000)]
* s390-tdep.c (s390_address_class_type_flags): Use
TYPE_INSTANCE_FLAG_ADDRESS_CLASS_1.
(s390_address_class_type_flags_to_name): Likewise.
(s390_address_class_name_to_type_flags): Likewise.

15 years ago* Makefile.in (uninstall): Apply $(EXEEXT) too.
Maciej W. Rozycki [Sun, 24 Aug 2008 18:40:37 +0000 (18:40 +0000)]
* Makefile.in (uninstall): Apply $(EXEEXT) too.

15 years ago * rs6000-tdep.c (rs6000_builtin_type_vec128): Don't use
Tom Tromey [Sun, 24 Aug 2008 18:01:15 +0000 (18:01 +0000)]
* rs6000-tdep.c (rs6000_builtin_type_vec128): Don't use
TYPE_FLAGS.
* features/rs6000/powerpc-vsx32l.c
(initialize_tdesc_powerpc_vsx32l): Update.
* features/rs6000/powerpc-vsx32.c
(initialize_tdesc_powerpc_vsx32): Update.
* features/rs6000/powerpc-vsx64.c
(initialize_tdesc_powerpc_vsx64): Update.
* features/rs6000/powerpc-vsx64l.c
(initialize_tdesc_powerpc_vsx64l): Update.
* target-descriptions.c (maint_print_c_tdesc_cmd): Emit
TYPE_VECTOR, not TYPE_FLAGS.

15 years agogdb:
Tom Tromey [Sun, 24 Aug 2008 16:39:57 +0000 (16:39 +0000)]
gdb:
* xml-tdesc.c (tdesc_end_union): Update.
* stabsread.c (define_symbol): Update.
(read_type): Update.
(read_struct_type): Update.
(read_enum_type): Update.
* spu-tdep.c (spu_builtin_type_vec128): Update.
* sh-tdep.c (sh_push_dummy_call_fpu): Update.
(sh_push_dummy_call_nofpu): Update.
* mdebugread.c (parse_symbol): Update.
(parse_symbol): Update.
(parse_symbol): Update.
(upgrade_type): Update.
* jv-lang.c (java_lookup_class): Update.
* iq2000-tdep.c (iq2000_pointer_to_address): Update.
* i386-tdep.c (i386_mmx_type): Update.
(i386_sse_type): Update.
* gdbtypes.h (enum type_flag_value): New enum.
(enum type_instance_flag_value): New enum.
(TYPE_FLAG_UNSIGNED, TYPE_FLAG_NOSIGN, TYPE_FLAG_STUB,
TYPE_FLAG_TARGET_STUB, TYPE_FLAG_STATIC, TYPE_FLAG_PROTOTYPED,
TYPE_FLAG_INCOMPLETE, TYPE_FLAG_VARARGS, TYPE_FLAG_VECTOR,
TYPE_FLAG_FIXED_INSTANCE, TYPE_FLAG_STUB_SUPPORTED,
TYPE_FLAG_NOTTEXT): Now enum constants.
(TYPE_FLAG_CONST, TYPE_FLAG_VOLATILE, TYPE_FLAG_CODE_SPACE,
TYPE_FLAG_DATA_SPACE, TYPE_FLAG_ADDRESS_CLASS_1,
TYPE_FLAG_ADDRESS_CLASS_2): Remove.
(TYPE_INSTANCE_FLAG_CONST, TYPE_INSTANCE_FLAG_VOLATILE,
TYPE_INSTANCE_FLAG_CODE_SPACE, TYPE_INSTANCE_FLAG_DATA_SPACE,
TYPE_INSTANCE_FLAG_ADDRESS_CLASS_1,
TYPE_INSTANCE_FLAG_ADDRESS_CLASS_2): New constants.
(TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB, TYPE_TARGET_STUB,
TYPE_STATIC, TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_VARARGS,
TYPE_VECTOR, TYPE_FIXED_INSTANCE, TYPE_STUB_SUPPORTED,
TYPE_NOTTEXT): Update.
(TYPE_FLAG_ADDRESS_CLASS_ALL): Remove.
(TYPE_INSTANCE_FLAG_ADDRESS_CLASS_ALL): New define.
(TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE,
TYPE_ADDRESS_CLASS_1, TYPE_ADDRESS_CLASS_2,
TYPE_ADDRESS_CLASS_ALL): Update.
(struct main_type) <flags>: Remove.
<flag_unsigned, flag_nosign, flag_stub, flag_target_stub,
flag_static, flag_prototyped, flag_incomplete, flag_varargs,
flag_vector, flag_stub_supported, flag_nottext,
flag_fixed_instance>: New fields.
<nfields, vptr_fieldno>: Move earlier.
(TYPE_FLAGS): Remove.
* gdbtypes.c (make_pointer_type): Update.
(address_space_name_to_int): Update.
(address_space_int_to_name): Update.
(make_type_with_address_space): Update.
(make_cv_type): Update.
(create_range_type): Update.
(get_discrete_bounds): Update.
(create_set_type): Update.
(make_vector_type): Update.
(smash_to_method_type): Update.
(check_typedef): Update.
(check_stub_method): Update.
(init_type): Individually assign flag fields.
(recursive_dump_type): Don't print entire TYPE_FLAGS field.  Do
print TYPE_FIXED_INSTANCE, TYPE_STUB_SUPPORTED, and TYPE_NOTTEXT.
(copy_type_recursive): Copy the entire main type.  Don't use
TYPE_FLAGS.
* features/rs6000/powerpc-altivec64l.c
(initialize_tdesc_powerpc_altivec64l): Update.
* features/rs6000/powerpc-altivec64.c
(initialize_tdesc_powerpc_altivec64): Update.
* features/rs6000/powerpc-altivec32l.c
(initialize_tdesc_powerpc_altivec32l): Update.
* features/rs6000/powerpc-altivec32.c
(initialize_tdesc_powerpc_altivec32): Update.
* features/rs6000/powerpc-7400.c (initialize_tdesc_powerpc_7400):
Update.
* features/arm-with-iwmmxt.c (initialize_tdesc_arm_with_iwmmxt):
Update.
* dwarf2read.c (read_structure_type): Update.
(read_enumeration_type): Likewise.
(process_enumeration_scope): Likewise.
(read_tag_pointer_type): Likewise.
(read_subroutine_type): Likewise.
(read_subroutine_type): Likewise.
(read_base_type): Likewise.
* coffread.c (coff_read_enum_type): Update.
* ada-valprint.c (adjust_type_signedness): Update.
* ada-typeprint.c (print_record_field_types): Update.
* ada-lang.c (packed_array_type): Update.
(empty_record): Don't reset TYPE_FLAGS.
(ada_template_to_fixed_record_type_1): Update.
(ada_template_to_fixed_record_type_1): Likewise.
(template_to_static_fixed_type): Likewise.
(to_record_with_fixed_variant_part): Likewise.
(to_fixed_record_type): Likewise.
(to_fixed_array_type): Likewise.
(to_static_fixed_type): Likewise.
gdb/testsuite:
* gdb.base/maint.exp: Update "maint print type".

15 years ago * Makefile.am (chew.o): Delete rule.
Alan Modra [Sun, 24 Aug 2008 03:57:28 +0000 (03:57 +0000)]
* Makefile.am (chew.o): Delete rule.
($(MKDOC)): Move options before C file.
* Makefile.in: Regenerate.

15 years agoUpdate a number of obsolete autoconf macros.
Alan Modra [Sun, 24 Aug 2008 03:13:05 +0000 (03:13 +0000)]
Update a number of obsolete autoconf macros.

15 years agodaily update
Alan Modra [Sun, 24 Aug 2008 00:00:06 +0000 (00:00 +0000)]
daily update

15 years ago*** empty log message ***
gdbadmin [Sun, 24 Aug 2008 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

15 years ago2008-08-23 Jim Blandy <jimb@redhat.com>
Tom Tromey [Sat, 23 Aug 2008 20:31:37 +0000 (20:31 +0000)]
2008-08-23  Jim Blandy  <jimb@redhat.com>

PR macros/607:
* symmisc.c (print_symbol_bcache_statistics): Include statistics
for the macro bcache.

15 years ago * macrotab.h (struct macro_definition) <kind>: Shrink to one bit.
Tom Tromey [Sat, 23 Aug 2008 20:30:15 +0000 (20:30 +0000)]
* macrotab.h (struct macro_definition) <kind>: Shrink to one bit.
(argc): Now 31 bits.

15 years ago(find_separate_debug_file): Use the canonical
Andreas Schwab [Sat, 23 Aug 2008 08:08:58 +0000 (08:08 +0000)]
(find_separate_debug_file): Use the canonical
absolute name of the bfd object for finding the debug file in
the global debugfile directory.

15 years ago*** empty log message ***
gdbadmin [Sat, 23 Aug 2008 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

15 years agodaily update
Alan Modra [Sat, 23 Aug 2008 00:00:14 +0000 (00:00 +0000)]
daily update

15 years ago * NEWS: Move macro entries back under "New commands".
Tom Tromey [Fri, 22 Aug 2008 17:26:54 +0000 (17:26 +0000)]
* NEWS: Move macro entries back under "New commands".

15 years ago * config/tc-mcore.c (md_assemble): Increase length of name array
Nick Clifton [Fri, 22 Aug 2008 17:05:40 +0000 (17:05 +0000)]
        * config/tc-mcore.c (md_assemble): Increase length of name array
            to include terminating NUL.

15 years ago * breakpoint.c (create_overlay_event_breakpoint): Rename to ...
Ulrich Weigand [Fri, 22 Aug 2008 15:50:44 +0000 (15:50 +0000)]
* breakpoint.c (create_overlay_event_breakpoint): Rename to ...
(create_overlay_event_breakpoint_1): ... this.  Add OBJFILE parameter.
(create_overlay_event_breakpoint): Loop over all objfiles to install
multiple instances of the overlay event breakpoint if present.

15 years ago * spu-tdep.c (spu_overlay_new_objfile): Only consider SPU objfiles.
Ulrich Weigand [Fri, 22 Aug 2008 15:32:43 +0000 (15:32 +0000)]
* spu-tdep.c (spu_overlay_new_objfile): Only consider SPU objfiles.
(info_spu_event_command): Command only supported on SPU architecture.
(info_spu_signal_command): Likewise.
(info_spu_mailbox_command): Likewise.
(info_spu_dma_command): Likewise.
(info_spu_proxydma_command): Likewise.

15 years ago * infrun.c (adjust_pc_after_break): Do not call get_thread_regcache
Ulrich Weigand [Fri, 22 Aug 2008 14:47:13 +0000 (14:47 +0000)]
* infrun.c (adjust_pc_after_break): Do not call get_thread_regcache
if the thread has already exited.

15 years ago * infrun.c (proceed): Move back setting previous_inferior_ptid
Pedro Alves [Fri, 22 Aug 2008 14:06:29 +0000 (14:06 +0000)]
* infrun.c (proceed): Move back setting previous_inferior_ptid
from here ...
(wait_for_inferior): ... to here.
(fetch_inferior_event): ... and here.

15 years ago * gdbarch.sh: Include "regcache.h" into gdbarch.c.
Ulrich Weigand [Fri, 22 Aug 2008 13:35:00 +0000 (13:35 +0000)]
* gdbarch.sh: Include "regcache.h" into gdbarch.c.
(deprecated_current_gdbarch_select_hack): Call registers_changed
instead of reinit_frame_cache.
* gdbarch.c: Regenerate.

15 years agobfd/
Jan Kratochvil [Fri, 22 Aug 2008 08:32:40 +0000 (08:32 +0000)]
bfd/
Fix PR ld/3290 regression for cross-files DW_FORM_ref_addr relocations.
* elflink.c (elf_link_add_object_symbols): Make debug symbols local
now only for non-RELOCATABLE targets.

ld/testsuite/
* ld-x86-64/dwarfreloc.exp, ld-x86-64/dwarfreloc.rd,
ld-x86-64/dwarfreloc1.s, ld-x86-64/dwarfreloc2.s: New test.

15 years ago * config/bfin-lex.l (NUMBER): Protect special `.'.
Jie Zhang [Fri, 22 Aug 2008 07:21:49 +0000 (07:21 +0000)]
* config/bfin-lex.l (NUMBER): Protect special `.'.

testsuite/
* gas/bfin/misc.s: New test.
* gas/bfin/misc.d: New test.
* gas/bfin/bfin.exp: Add misc test.

15 years ago * symbols.c (symbol_clone): Ensure clones are not external.
Alan Modra [Fri, 22 Aug 2008 06:07:45 +0000 (06:07 +0000)]
* symbols.c (symbol_clone): Ensure clones are not external.

15 years ago * config/tc-hppa.c (md_begin): Set BSF_KEEP for "dummy_symbol".
Alan Modra [Fri, 22 Aug 2008 00:41:37 +0000 (00:41 +0000)]
* config/tc-hppa.c (md_begin): Set BSF_KEEP for "dummy_symbol".

15 years agodaily update
Alan Modra [Fri, 22 Aug 2008 00:00:05 +0000 (00:00 +0000)]
daily update

15 years ago*** empty log message ***
gdbadmin [Fri, 22 Aug 2008 00:00:02 +0000 (00:00 +0000)]
*** empty log message ***

15 years ago * elfread.c (elf_symtab_read): Do not relocate thread-local symbols.
Ulrich Weigand [Thu, 21 Aug 2008 22:28:00 +0000 (22:28 +0000)]
* elfread.c (elf_symtab_read): Do not relocate thread-local symbols.

15 years ago * xcoffread.c (SYMNAME_ALLOC): Correct syntax.
Daniel Jacobowitz [Thu, 21 Aug 2008 21:22:39 +0000 (21:22 +0000)]
* xcoffread.c (SYMNAME_ALLOC): Correct syntax.

15 years ago * findvar.c (locate_var_value): Do not call get_frame_arch
Ulrich Weigand [Thu, 21 Aug 2008 20:29:00 +0000 (20:29 +0000)]
* findvar.c (locate_var_value): Do not call get_frame_arch
with a NULL frame argument.

15 years ago * frame.h (frame_map_regnum_to_name): Remove prototype.
Ulrich Weigand [Thu, 21 Aug 2008 20:13:08 +0000 (20:13 +0000)]
* frame.h (frame_map_regnum_to_name): Remove prototype.
(frame_map_name_to_regnum): Remove prototype.
* frame.c (frame_map_regnum_to_name): Remove.
(frame_map_name_to_regnum): Remove.
(frame_unwind_register_value): Use user_reg_map_regnum_to_name
instead of frame_map_regnum_to_name.
* ax-gdb.c: Include "user-regs.h".
(gen_expr): Use user_reg_map_name_to_regnum instead of
frame_map_name_to_regnum.
* eval.c:  Include "user-regs.h".
(evaluate_subexp_standard): Use user_reg_map_name_to_regnum
instead of frame_map_name_to_regnum.
* infcmd.c (registers_info): Likewise.
* parse.c: Include "user-regs.h".
(write_dollar_variable): Use user_reg_map_name_to_regnum
instead of frame_map_name_to_regnum.
* tracepoint.c: Include "user-regs.h".
(encode_actions): Use user_reg_map_name_to_regnum
instead of frame_map_name_to_regnum.
* valops.c: Include "user-regs.h".
(value_fetch_lazy): Use user_reg_map_regnum_to_name instead
of frame_map_regnum_to_name.

15 years ago * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): Read
Ulrich Weigand [Thu, 21 Aug 2008 19:54:34 +0000 (19:54 +0000)]
* ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): Read
and manually relocate .opd contents from BFD instead of reading
them from target memory.

15 years ago * dw2gencfi.c (DWARF2_FDE_RELOC_SIZE): New.
Richard Henderson [Thu, 21 Aug 2008 19:49:22 +0000 (19:49 +0000)]
    * dw2gencfi.c (DWARF2_FDE_RELOC_SIZE): New.
        (output_cie, output_fde): Use it.
        (DWARF2_EH_FRAME_READ_ONLY): New.
        (cfi_finish): Use it.

        * config/tc-hppa.h (DWARF2_FDE_RELOC_SIZE): Set to 8 for 64-bit.
        (DWARF2_CIE_DATA_ALIGNMENT): Change sign.
        (DWARF2_EH_FRAME_READ_ONLY): New.
        * config/tc-hppa.c (tc_gen_reloc): Generate pc-relative relocations
        from the results of DIFF_EXPR_OK manipulation.

15 years ago * gas/cfi/cfi-common-1.d: Allow for differing offsets, and
Richard Henderson [Thu, 21 Aug 2008 19:49:02 +0000 (19:49 +0000)]
    * gas/cfi/cfi-common-1.d: Allow for differing offsets, and
        for DW_CFA_offset_extended_sf results.  Allow for differing nops.
        * gas/cfi/cfi-hppa-1.d: Invert data alignment sign.  Change
        offsets to match 64-bit offsets.
        * gas/cfi/cfi.exp: Don't run common tests on hppa64.

15 years ago * readelf.c (is_32bit_pcrel_reloc): Fix hppa entry.
Richard Henderson [Thu, 21 Aug 2008 19:38:58 +0000 (19:38 +0000)]
    * readelf.c (is_32bit_pcrel_reloc): Fix hppa entry.
        (is_64bit_pcrel_reloc): New.
        (debug_apply_relocations): Use it.  Handle hppa pcrel bias.

15 years ago * dwarf2read.c (processing_current_prefix): Delete static
Daniel Jacobowitz [Thu, 21 Aug 2008 18:57:34 +0000 (18:57 +0000)]
* dwarf2read.c (processing_current_prefix): Delete static
variable.
(process_full_comp_unit): Do not set processing_current_prefix.
(dwarf2_full_name): New function.
(read_func_scope): Do not set processing_current_prefix.  Use
determine_prefix.
(read_structure_type): Do not set processing_current_prefix.  Remove
unused inner cleanup.
(process_structure_scope): Do not set processing_current_prefix.
(read_enumeration_type): Use dwarf2_full_name.
(determine_class_name): Return a const char *.  Put the result
on the objfile obstack.  Use dwarf2_full_name.
(read_namespace_type): New function.
(read_namespace): Do not create the type here.  Use
determine_prefix.
(read_typedef): Use dwarf2_full_name.  Do not pass the name
to init_type.
(read_base_type): Do not pass the name to init_type.  Handle
TYPE_FLAG_NOSIGN.
(read_unspecified_type): Do not pass the name to init_type.
(new_symbol): Use dwarf2_full_name instead of
processing_current_prefix.
(read_type_die): Do not set processing_current_prefix.  Handle
DW_TAG_namespace.
(determine_prefix): Handle specifications.  Return the result
on the objfile obstack.  Handle unions correctly.

15 years ago * buildsym.c (add_symbol_to_list): Do not call
Daniel Jacobowitz [Thu, 21 Aug 2008 18:40:34 +0000 (18:40 +0000)]
* buildsym.c (add_symbol_to_list): Do not call
cp_scan_for_anonymous_namespaces here.
(finish_block): Do not call cp_set_block_scope here.
* cp-namespace.c (processing_has_namespace_info)
(processing_current_prefix): Delete.
(cp_initialize_namespace): Do not initialize
processing_has_namespace_info.
(cp_scan_for_anonymous_namespaces): Use SYMBOL_DEMANGLED_NAME.  Do
not check processing_has_namespace_info.
(cp_set_block_scope): Take prefix and namespace info flag as
arguments.  Honor namespaces regardless of a demangled name.
* cp-support.h (processing_has_namespace_info)
(processing_current_prefix): Delete declarations.
(cp_set_block_scope): Update prototype.
* dwarf2read.c (processing_has_namespace_info)
(processing_current_prefix): New static variables.
(read_file_scope): Initialize processing_has_namespace_info.
(read_func_scope): Call cp_set_block_scope for C++.
(new_symbol): Call cp_scan_for_anonymous_namespaces for C++.
* symtab.c (symbol_demangled_name): Accept a const argument.
* symtab.h (symbol_demangled_name): Update prototype.

15 years ago * ax-gdb.c (gen_var_ref): Use SYMBOL_LINKAGE_NAME.
Daniel Jacobowitz [Thu, 21 Aug 2008 18:14:39 +0000 (18:14 +0000)]
* ax-gdb.c (gen_var_ref): Use SYMBOL_LINKAGE_NAME.
* blockframe.c (find_pc_partial_function): Likewise.
* buildsym.c (find_symbol_in_list): Likewise.
* c-valprint.c (c_val_print): Likewise.
* coffread.c (patch_opaque_types, process_coff_symbol): Likewise.
(coff_read_enum_type): Likewise.  Use SYMBOL_SET_LINKAGE_NAME.
* cp-support.c (cp_remove_params): Renamed from remove_params and
made global.
(overload_list_add_symbol): Update call to remove_params.
* cp-support.h (cp_remove_params): Declare.
* dwarf2read.c (process_enumeration_scope): Use SYMBOL_LINKAGE_NAME.
(dwarf2_const_value): Use SYMBOL_PRINT_NAME.
* expprint.c (dump_subexp_body_standard): Likewise.
* f-valprint.c (info_common_command, there_is_a_visible_common_named):
Use SYMBOL_LINKAGE_NAME to find symbols and SYMBOL_PRINT_NAME
for messages.
* findvar.c (read_var_value): Use SYMBOL_LINKAGE_NAME.
* gnu-v2-abi.c (gnuv2_value_rtti_type): Likewise.
* hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
(hppa_hpux_skip_trampoline_code): Use SYMBOL_LINKAGE_NAME to find
symbols and SYMBOL_PRINT_NAME for messages.
* jv-lang.c (add_class_symbol): Use SYMBOL_SET_LINKAGE_NAME.
* linespec.c (decode_line_2): Use SYMBOL_LINKAGE_NAME.
* mdebugread.c (parse_symbol): Use SYMBOL_LINKAGE_NAME and
SYMBOL_SET_LINKAGE_NAME.
(mylookup_symbol): Use SYMBOL_LINKAGE_NAME.
* minsyms.c (add_minsym_to_demangled_hash_table): Use
SYMBOL_SEARCH_NAME.
(lookup_minimal_symbol): Use SYMBOL_LINKAGE_NAME or
SYMBOL_MATCHES_SEARCH_NAME, depending on the pass.
* objfiles.h (ALL_OBJFILE_MSYMBOLS): Use SYMBOL_LINKAGE_NAME.
* printcmd.c (build_address_symbolic): Use SYMBOL_LINKAGE_NAME.
(address_info): Use SYMBOL_PRINT_NAME for messages and
SYMBOL_LINKAGE_NAME for lookups.
* sol-thread.c (info_cb): Use SYMBOL_PRINT_NAME for messages.
* stabsread.c (patch_block_stabs, define_symbol)
(read_type, read_enum_type, common_block_end)
(cleanup_undefined_types_1, scan_file_globals): Use
SYMBOL_LINKAGE_NAME, SYMBOL_SET_LINKAGE_NAME, ALL_OBJFILE_MSYMBOLS,
and SYMBOL_PRINT_NAME.
* stack.c (print_frame_args): Use SYMBOL_LINKAGE_NAME.
(print_frame, frame_info): Use SYMBOL_PRINT_NAME for output.  Use
cp_remove_params instead of cplus_demangle.
(print_block_frame_labels, print_frame_arg_vars): Use
SYMBOL_LINKAGE_NAME.
* symmisc.c (dump_msymbols): Use ALL_OBJFILE_MSYMBOLS and
SYMBOL_LINKAGE_NAME.
(dump_symtab_1, print_symbol, print_partial_symbols)
(maintenance_check_symtabs): Use SYMBOL_LINKAGE_NAME.
* symtab.h (DEPRECATED_SYMBOL_NAME): Delete.
(SYMBOL_SET_LINKAGE_NAME): New.
(SYMBOL_SET_NAMES): Add a comment.
* tracepoint.c (set_traceframe_context, validate_actionline)
(collect_symbol, scope_info): Use SYMBOL_LINKAGE_NAME for
lookups and SYMBOL_PRINT_NAME for output.
* typeprint.c (typedef_print): Use SYMBOL_LINKAGE_NAME.
* xcoffread.c (process_xcoff_symbol): Use SYMBOL_SET_LINKAGE_NAME.

15 years ago2008-08-21 Sterling Augustine <sterling@tensilica.com>
Bob Wilson [Thu, 21 Aug 2008 17:10:24 +0000 (17:10 +0000)]
2008-08-21  Sterling Augustine  <sterling@tensilica.com>
* config/xtensa-istack.h (MAX_INSN_ARGS): Increase to 64.

15 years ago * gdb.mi/mi-nonstop.exp: Fix the check for non-stop
Vladimir Prus [Thu, 21 Aug 2008 15:09:42 +0000 (15:09 +0000)]
* gdb.mi/mi-nonstop.exp: Fix the check for non-stop
support.  Adjust the order of "*running" notifications.
* gdb.mi/non-stop.c: Don't cast from int to void* and
back.

15 years ago * arm-tdep.c (arm_pc_is_thumb): Use obj_section_addr.
Pedro Alves [Thu, 21 Aug 2008 13:19:18 +0000 (13:19 +0000)]
* arm-tdep.c (arm_pc_is_thumb): Use obj_section_addr.
* hppa-hpux-tdep.c (hppa_hpux_find_dummy_bpaddr): Likewise.
* hppa-linux-tdep.c (hppa_linux_find_global_pointer): Use
obj_section_addr and obj_section_endaddr.
* hppa-tdep.c (hppa64_convert_code_addr_to_fptr): Likewise.
* hppabsd-tdep.c (hppabsd_find_global_pointer): Likewise.
* ia64-tdep.c (ia64_find_global_pointer): Likewise.
(find_extant_func_descr): Likewise.
* solib-frv.c (frv_relocate_main_executable): Use
obj_section_addr.
* xstormy16-tdep.c (xstormy16_find_jmp_table_entry): Use
obj_section_addr and obj_section_endaddr.

15 years ago PR ld/6833
Jan Kratochvil [Thu, 21 Aug 2008 13:10:54 +0000 (13:10 +0000)]
PR ld/6833
* ldexp.c (fold_binary <DATA_SEGMENT_ALIGN>): Do not align
EXPLD.DATASEG.MIN_BASE.
* ldlang.c (lang_size_sections): New variable OLD_BASE.  Rename
OLD_MIN_BASE to MIN_BASE with the former alignment from `ldexp.c'.
Use OLD_BASE now for the minimal base check after the base decrease by
the maximum alignment found.

15 years ago* gdb.arch/powerpc-prologue.exp: Code doesn't save %r31 so don't
Mark Kettenis [Thu, 21 Aug 2008 11:36:38 +0000 (11:36 +0000)]
* gdb.arch/powerpc-prologue.exp: Code doesn't save %r31 so don't
expect to find it in the "info frame" output.

15 years agoAmplify last NEWS entry about boolean types in Ada, and add
Paul N. Hilfinger [Thu, 21 Aug 2008 09:05:32 +0000 (09:05 +0000)]
Amplify last NEWS entry about boolean types in Ada, and add
corresponding description of treatment of True and false to gdb.texinfo.

15 years ago2008-08-20 Craig Silverstein <csilvers@google.com>
Craig Silverstein [Thu, 21 Aug 2008 00:30:13 +0000 (00:30 +0000)]
2008-08-20  Craig Silverstein  <csilvers@google.com>

* fileread.cc (File_read::open): Do not lock the file unless it
was successfully opened.

15 years agodaily update
Alan Modra [Thu, 21 Aug 2008 00:00:11 +0000 (00:00 +0000)]
daily update

15 years ago*** empty log message ***
gdbadmin [Thu, 21 Aug 2008 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

15 years agoCommit file that I accidentally omitted from my change to support TLS on Xtensa.
Bob Wilson [Wed, 20 Aug 2008 23:43:41 +0000 (23:43 +0000)]
Commit file that I accidentally omitted from my change to support TLS on Xtensa.

15 years ago2008-08-20 Bob Wilson <bob.wilson@acm.org>
Bob Wilson [Wed, 20 Aug 2008 23:38:39 +0000 (23:38 +0000)]
2008-08-20  Bob Wilson  <bob.wilson@acm.org>
        * gas/all/gas.exp: Expect the redef test to fail on Xtensa.

15 years ago2008-08-20 Bob Wilson <bob.wilson@acm.org>
Bob Wilson [Wed, 20 Aug 2008 23:28:59 +0000 (23:28 +0000)]
2008-08-20  Bob Wilson  <bob.wilson@acm.org>
bfd/
        * elf-bfd.h (elf_object_id): Add XTENSA_ELF_TDATA.
        * elf32-xtensa.c (elf_howto_table): Add TLS relocations.
        (elf_xtensa_reloc_type_lookup): Likewise.
        (TCB_SIZE): Define.
        (elf_xtensa_link_hash_entry): New.
        (GOT_UNKNOWN, GOT_NORMAL, GOT_TLS_GD, GOT_TLS_IE, GOT_TLS_ANY): Define.
        (elf_xtensa_hash_entry): Define.
        (elf_xtensa_obj_tdata): New.
        (elf_xtensa_tdata): Define.
        (elf_xtensa_local_got_tls_type): Define.
        (elf_xtensa_local_tlsfunc_refcounts): Define.
        (is_xtensa_elf): Define.
        (elf_xtensa_mkobject): New.
        (elf_xtensa_link_hash_table): Add tlsbase field.
        (elf_xtensa_link_hash_newfunc): New.
        (elf_xtensa_link_hash_table_create): Use elf_xtensa_link_hash_newfunc.
        Create an entry for "_TLS_MODULE_BASE_" and save it in tlsbase field.
        (elf_xtensa_copy_indirect_symbol): New.
        (elf_xtensa_check_relocs): Rewrite to handle TLS relocations.
        (elf_xtensa_gc_sweep_hook): Likewise.
        (elf_xtensa_allocate_dynrelocs): Optimize away GOT entries for
        TLSDESC_FN relocations when an IE reference is seen.
        (elf_xtensa_allocate_local_got_size): Likewise.
        (elf_xtensa_always_size_sections): New.
        (dtpoff_base, tpoff): New.
        (elf_xtensa_do_reloc): Handle TLS relocations.
        (replace_tls_insn): New.
        (IS_XTENSA_TLS_RELOC): Define.
        (elf_xtensa_relocate_section): Handle TLS relocations.
        (get_indirect_call_dest_reg): New.
        (bfd_elf32_mkobject): Define.
        (elf_backend_always_size_sections): New.
        (elf_backend_copy_indirect_symbol): New.
        * reloc.c (BFD_RELOC_XTENSA_TLSDESC_FN, BFD_RELOC_XTENSA_TLSDESC_ARG)
        (BFD_RELOC_XTENSA_TLS_DTPOFF, BFD_RELOC_XTENSA_TLS_TPOFF)
        (BFD_RELOC_XTENSA_TLS_FUNC, BFD_RELOC_XTENSA_TLS_ARG)
        (BFD_RELOC_XTENSA_TLS_CALL): New.
        * bfd-in2.h: Regenerate.
        * libbfd.h: Regenerate.
gas/
        * config/tc-xtensa.c (O_tlsfunc, O_tlsarg, O_tlscall): Define.
        (O_tpoff, O_dtpoff): Define.
        (suffix_relocs): Add entries for TLS suffixes.
        (xtensa_elf_cons): Check for invalid use of TLS relocations.
        (map_operator_to_reloc): Add is_literal parameter and use it to
        control translating TLS instruction relocations to the corresponding
        literal relocations.
        (xg_valid_literal_expression): Allow TLS operators.
        (xg_build_to_insn): Copy TLS operators from pseudo-instruction
        operands to generated literals.
        (xg_assemble_literal): Handle TLS operators.  Update call to
        map_operator_to_reloc.
        (md_assemble): Handle CALLXn.TLS pseudo-instruction.
        (md_apply_fix): Handle TLS relocations.
        (emit_single_op): Handle TLS operators.
        (convert_frag_immed): Update call to map_operator_to_reloc.
        (vinsn_to_insnbuf): Emit relocations for TLS-related instructions.
        * config/xtensa-istack.h (tinsn_struct): Add tls_reloc field.
        * config/xtensa-relax.c (append_literal_op): Add src_op parameter
        to initialize the op_data field of the BuildOp.
        (build_transition): Use it here to record the source operand
        corresponding to a generated literal.
        * config/xtensa-relax.h (build_op): Comment op_data use for literals.
include/elf/
        * xtensa.h (R_XTENSA_TLSDESC_FN, R_XTENSA_TLSDESC_ARG)
        (R_XTENSA_TLS_DTPOFF, R_XTENSA_TLS_TPOFF, R_XTENSA_TLS_FUNC)
        (R_XTENSA_TLS_ARG, R_XTENSA_TLS_CALL): New.
ld/testsuite/
        * ld-xtensa/tlsbin.dd, ld-xtensa/tlsbin.rd, ld-xtensa/tlsbin.s,
        ld-xtensa/tlsbin.sd, ld-xtensa/tlsbin.td, ld-xtensa/tlslib.s,
        ld-xtensa/tlspic.dd, ld-xtensa/tlspic.rd, ld-xtensa/tlspic.sd,
        ld-xtensa/tlspic.td, ld-xtensa/tlspic1.s, ld-xtensa/tlspic2.s: New.
        * ld-xtensa/xtensa.exp: Run them.

15 years ago * dwarf2read.c (die_specification, dwarf2_extension, follow_die_ref):
Daniel Jacobowitz [Wed, 20 Aug 2008 20:37:57 +0000 (20:37 +0000)]
* dwarf2read.c (die_specification, dwarf2_extension, follow_die_ref):
Make the dwarf2_cu * parameter output as well as input.  Update it if
we follow a reference to another CU.
(read_func_scope, determine_class_name, namespace_name, dwarf2_attr)
(die_type, die_containing_type): Update calls to changed functions.
Use the returned CU along with the returned DIE.
(read_namespace): Use dwarf2_attr instead of dwarf2_extension.

15 years ago * dwarf2read.c (queue_comp_unit): Take an objfile argument. Read
Daniel Jacobowitz [Wed, 20 Aug 2008 20:31:49 +0000 (20:31 +0000)]
* dwarf2read.c (queue_comp_unit): Take an objfile argument.  Read
in the DIEs here.
(process_queue): Do not read in the DIEs here.
(psymtab_to_symtab_1): Update call to queue_comp_unit.
(read_full_die): Do not call queue_comp_unit from here.
(maybe_queue_comp_unit): New function.
(follow_die_ref): Use it.

15 years ago * dwarf2read.c (struct attribute): Move earlier.
Daniel Jacobowitz [Wed, 20 Aug 2008 20:12:24 +0000 (20:12 +0000)]
* dwarf2read.c (struct attribute): Move earlier.
(struct die_info): Change attrs to a trailing array.
(dwarf_alloc_die): Take the number of attributes.  Allocate space
for them.
(read_full_die): Update call to dwarf_alloc_die.  Do not manually
allocate attributes.

15 years ago * dwarf2read.c (REF_HASH_SIZE): Delete.
Daniel Jacobowitz [Wed, 20 Aug 2008 19:50:54 +0000 (19:50 +0000)]
* dwarf2read.c (REF_HASH_SIZE): Delete.
(struct dwarf2_cu): Replace die_ref_table with die_hash.
(struct die_info): Remove next_ref.
(store_in_ref_table): Remove offset argument.  Rewrite to use
htab_find_slot_with_hash.
(die_hash, die_eq): New.
(read_comp_unit): Allocate the die_hash.
(read_die_and_children): Update call to store_die_ref.
(follow_die_ref): Rewrite to use htab_find_with_hash.

15 years ago * dwarf2read.c (free_die_list, copy_die): Delete.
Daniel Jacobowitz [Wed, 20 Aug 2008 19:39:11 +0000 (19:39 +0000)]
* dwarf2read.c (free_die_list, copy_die): Delete.
(dwarf_alloc_die): Take a CU argument.  Allocate the new DIE
on the obstack.
(read_full_die): Update call to dwarf_alloc_die.  Allocate
attributes on the CU obstack.
(free_one_comp_unit): Do not call free_die_list.

15 years ago * dwarf2read.c (read_die_and_children): Ignore NULL DIEs.
Daniel Jacobowitz [Wed, 20 Aug 2008 19:27:58 +0000 (19:27 +0000)]
* dwarf2read.c (read_die_and_children): Ignore NULL DIEs.
(read_die_and_siblings): Likewise.  Do not add padding DIEs to the
sibling list.
(read_full_die): Do not allocate DIEs for abbrev 0.
(follow_die_ref): Correct error message.

15 years ago * gdb.base/interp.exp: Always consume both prompts.
Daniel Jacobowitz [Wed, 20 Aug 2008 18:55:57 +0000 (18:55 +0000)]
* gdb.base/interp.exp: Always consume both prompts.

15 years agoAdd the missing ChangeLog entry for the AES + AVX checkin.
H.J. Lu [Wed, 20 Aug 2008 18:48:09 +0000 (18:48 +0000)]
Add the missing ChangeLog entry for the AES + AVX checkin.

15 years agogas/
H.J. Lu [Wed, 20 Aug 2008 18:38:40 +0000 (18:38 +0000)]
gas/

2008-08-20  H.J. Lu  <hongjiu.lu@intel.com>

AVX Programming Reference (August, 2008)
* config/tc-i386.c (CPU_FLAGS_AES_MATCH): New.
(CPU_FLAGS_AVX_MATCH): Likewise.
(CPU_FLAGS_32BIT_MATCH): Updated.
(cpu_flags_match): Likewise.

gas/testsuite/

2008-08-20  H.J. Lu  <hongjiu.lu@intel.com>

AVX Programming Reference (August, 2008)
* gas/i386/avx.s: Add AES + AVX tests.
* gas/i386/arch-10.s: Likewise.
* gas/i386/sse2avx.s: Likewise.
* gas/i386/x86-64-arch-2.s: Likewise.
* gas/i386/x86-64-avx.s: Likewise.
* gas/i386/x86-64-sse2avx.s: Likewise.

* gas/i386/arch-10.d: Updated.
* gas/i386/arch-10-1.l: Likewise.
* gas/i386/arch-10-2.l: Likewise.
* gas/i386/arch-10-3.l: Likewise.
* gas/i386/arch-10-4.l: Likewise.
* gas/i386/avx.d: Likewise.
* gas/i386/avx-intel.d: Likewise.
* gas/i386/sse2avx.d: Likewise.
* gas/i386/x86-64-arch-2.d: Likewise.
* gas/i386/x86-64-avx.d: Likewise.
* gas/i386/x86-64-avx-intel.d: Likewise.
* gas/i386/x86-64-sse2avx.d: Likewise.

* gas/i386/i386.exp: Run arch-avx-1, arch-avx-1-1 and
arch-avx-1-2.

* gas/i386/arch-avx-1.d: New.
* gas/i386/arch-avx-1.s: Likewise.
* gas/i386/arch-avx-1-1.l: Likewise.
* gas/i386/arch-avx-1-1.s: Likewise.
* gas/i386/arch-avx-1-2.l: Likewise.
* gas/i386/arch-avx-1-2.s: Likewise.

opcodes/

2008-08-20  H.J. Lu  <hongjiu.lu@intel.com>

AVX Programming Reference (August, 2008)
* i386-dis.c (PREFIX_VEX_38DB): New.
(PREFIX_VEX_38DC): Likewise.
(PREFIX_VEX_38DD): Likewise.
(PREFIX_VEX_38DE): Likewise.
(PREFIX_VEX_38DF): Likewise.
(PREFIX_VEX_3ADF): Likewise.
(VEX_LEN_38DB_P_2): Likewise.
(VEX_LEN_38DC_P_2): Likewise.
(VEX_LEN_38DD_P_2): Likewise.
(VEX_LEN_38DE_P_2): Likewise.
(VEX_LEN_38DF_P_2): Likewise.
(VEX_LEN_3ADF_P_2): Likewise.
(PREFIX_VEX_3A04): Updated.
(VEX_LEN_3A06_P_2): Likewise.
(prefix_table): Add PREFIX_VEX_38DB, PREFIX_VEX_38DC,
PREFIX_VEX_38DD, PREFIX_VEX_38DE and PREFIX_VEX_3ADF.
(x86_64_table): Likewise.
(vex_len_table): Add VEX_LEN_38DB_P_2, VEX_LEN_38DC_P_2,
VEX_LEN_38DD_P_2, VEX_LEN_38DE_P_2, VEX_LEN_38DF_P_2 and
VEX_LEN_3ADF_P_2.

* i386-opc.tbl: Add AES + AVX instructions.
* i386-init.h: Regenerated.
* i386-tbl.h: Likewise.

15 years ago PR 6848
Alan Modra [Wed, 20 Aug 2008 13:43:32 +0000 (13:43 +0000)]
PR 6848
* write.c (install_reloc): Check that reloc symbols have been
written.
(set_symtab): Mark symbols with BSF_KEEP.

15 years ago gdb/
Pedro Alves [Wed, 20 Aug 2008 11:47:57 +0000 (11:47 +0000)]
gdb/
* linespec.c (symtab_from_filename): Also throw NOT_FOUND_ERROR if
there are no symbols loaded, instead of throwing a generic error.
(decode_variable): Likewise.

gdb/testsuite/
* gdb.base/pending.exp: Test pending breakpoints without symbols
loaded.

15 years ago * objfiles.h (struct obj_section): Remove addr and endaddr fields.
Pedro Alves [Wed, 20 Aug 2008 11:21:44 +0000 (11:21 +0000)]
* objfiles.h (struct obj_section): Remove addr and endaddr fields.
(obj_section_offset, obj_section_addr, obj_section_endaddr): New
macros.
* objfiles.c (add_to_objfile_sections): Don't set addr, endaddr
and offset.  Use size_t instead of unsigned long.
(build_objfile_section_table): Use size_t instead of unsigned
long.
(objfile_relocate): Don't relocate s->addr and s->endaddr, they're
gone.
(find_pc_sect_section): Use obj_section_addr and
obj_section_endaddr.
* symfile.c (symfile.c): Remove code that maps sections
offsets in "addr" to the object's sections.
* blockframe.c (find_pc_partial_function): Use obj_section_endaddr.
* gcore.c (gcore_create_callback): Use obj_section_addr and
obj_section_endaddr.
* maint.c (print_objfile_section_info): Likewise.
* printcmd.c (sym_info): Use obj_section_addr and
obj_section_endaddr.
* symtab.c (fixup_section): Likewise.

15 years ago* Makefile.in: Remove page break; OpenBSD make chokes on them.
Mark Kettenis [Wed, 20 Aug 2008 10:18:23 +0000 (10:18 +0000)]
* Makefile.in: Remove page break; OpenBSD make chokes on them.

15 years ago* sparc-tdep.c: Make some comments catch up with reality.
Mark Kettenis [Wed, 20 Aug 2008 09:43:16 +0000 (09:43 +0000)]
* sparc-tdep.c: Make some comments catch up with reality.

15 years ago * NEWS: Mention 'set target-async'
Vladimir Prus [Wed, 20 Aug 2008 04:58:34 +0000 (04:58 +0000)]
* NEWS: Mention 'set target-async'

15 years ago * gdb.textinfo (GDB/MI Miscellaneous Commands): Use @table
Vladimir Prus [Wed, 20 Aug 2008 04:57:32 +0000 (04:57 +0000)]
    * gdb.textinfo (GDB/MI Miscellaneous Commands): Use @table
        for possible features of -list-features.

15 years ago*** empty log message ***
gdbadmin [Wed, 20 Aug 2008 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

15 years agodaily update
Alan Modra [Wed, 20 Aug 2008 00:00:08 +0000 (00:00 +0000)]
daily update

15 years ago * lib/mi-support.exp (mi_expect_stop): Produce
Vladimir Prus [Tue, 19 Aug 2008 14:13:29 +0000 (14:13 +0000)]
* lib/mi-support.exp (mi_expect_stop): Produce
more details on failures.
* gdb.mi/mi-nonstop.exp: New.
* gdb.mi/non-stop.c: New.

15 years ago * infrun.c (resume): If the thread is placed to the deferred step
Vladimir Prus [Tue, 19 Aug 2008 13:57:28 +0000 (13:57 +0000)]
* infrun.c (resume): If the thread is placed to the deferred step
        queue, mark it as running.

15 years ago Make sure target supports non-stop.
Vladimir Prus [Tue, 19 Aug 2008 13:22:14 +0000 (13:22 +0000)]
Make sure target supports non-stop.
        * infcmd.c (run_command_1, attach_command): If non-stop mode
        is requested, verify the target supports it.
        * linux-nat.c (linux_nat_supports_non_stop): New.
        (linux_nat_add_target): Register the above.
        * target.c (find_default_supports_non_stop)
        (target_supports_non_stop): New.
        (init_dummy_target): Register find_default_supports_non_stop.
        * target.h (struct target_ops): New field to_supports_non_stop.
        (target_supports_non_stop): New.

15 years ago * target.c (target_async_permitted, target_async_permitted_1)
Vladimir Prus [Tue, 19 Aug 2008 13:05:02 +0000 (13:05 +0000)]
* target.c (target_async_permitted, target_async_permitted_1)
        (set_maintenance_target_async_permitted)
        (show_maintenance_target_async_permitted): New.
        (initialize_targets): Register 'set target-async'.
        * target.h (target_async_permitted): Declare.
        * linux-nat.c (linux_nat_async_enabled)
        (linux_nat_async_permitted, set_maintenance_linux_async_permitted)
        (show_maintenance_linux_async_permitted): Remove.
        (sigchld_handler, linux_nat_is_async_p, linux_nat_can_async_p)
        (get_pending_events, linux_nat_async): Use target_async_permitted.
        (linux_nat_set_async_mode): Remove, moving the only used bits
        into...
        (linux_nat_setup_async): This.
        (_initialize_linux_nat): Do not register 'maint set linux-async'.
        Use linux_nat_setup_async.
        * remote.c (remote_async_permitted, remote_async_permitted_set)
        (set_maintenance_remote_async_permitted)
        (show_maintenance_remote_async_permitted): Remove.
        (remote_open_1, remote_terminal_inferior, remote_can_async_p)
        (remote_is_async_p): Use target_async_permitted.
        (_initialize_remote): Don't register 'main set remote-async'.
        * mi/mi-cmds.c (mi_cmds): Register -list-target-features.
        * mi/mi-cmds.h (mi_cmd_list_target_features): New.
        * mi/mi-main.c (mi_cmd_list_target_features): New.

15 years ago * target.c (maybe_kill_then_attach)
Vladimir Prus [Tue, 19 Aug 2008 12:49:19 +0000 (12:49 +0000)]
* target.c (maybe_kill_then_attach)
        (maybe_kill_then_create_inferior): Remove.
        (update_current_target): Do not default to_attach,
        to_create_inferiour, to_is_async_p.

15 years ago * doc/gdb.texinfo (PowerPC): Fix typo.
Vladimir Prus [Tue, 19 Aug 2008 12:31:35 +0000 (12:31 +0000)]
* doc/gdb.texinfo (PowerPC): Fix typo.
(PowerPC features): Fix typo.

15 years agoAdd NEWS entry for last Ada changes, and adjust typos in last ChangeLog
Paul N. Hilfinger [Tue, 19 Aug 2008 10:36:43 +0000 (10:36 +0000)]
Add NEWS entry for last Ada changes, and adjust typos in last ChangeLog
entry.

15 years ago* ada-lang.c (discrete_type_high_bound,discrete_type_low_bound): Change
Paul N. Hilfinger [Tue, 19 Aug 2008 10:10:39 +0000 (10:10 +0000)]
* ada-lang.c (discrete_type_high_bound,discrete_type_low_bound): Change
API to return LONGEST values rather than struct values.
(ada_evaluate_subexp): Change to use new API of discrete_type_low_bound
and discrete_type_high_bound.
(to_fixed_range_type): Create a range type in cases where
argument is base type and its limits are representable as ints.
(ada_is_modular_type): Correct so that base type must be integral.
* ada-lex.l (TRUEKEYWORD,FALSEKEYWORD): Make 'true' and 'false'
keywords when they appear alone, since we are phasing out
direct representation of these identifiers in ebugging data.
* ada-exp.y: Define 'true' and 'false' as primaries.
(type_boolean): New function.
(type_int,type_long,type_long_long,type_floattype_double)
(type_long_double): Remove uses of current_gdbarch for consistency
with type_boolean.
(write_int): Change comment to indicate that it might write boolean
constant as well.
* ada-typeprint.c (ada_print_type): Print '(false, true)' for boolean
type, since will no longer be represented as enumerated type in
debugging data.
* ada-valprint.c (print_optional_low_bound): Handle boolean case
as well.

15 years agodaily update
Alan Modra [Tue, 19 Aug 2008 00:00:05 +0000 (00:00 +0000)]
daily update

15 years ago*** empty log message ***
gdbadmin [Tue, 19 Aug 2008 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

15 years ago * bsd-uthread.c (bsd_uthread_close): New.
Pedro Alves [Mon, 18 Aug 2008 23:24:57 +0000 (23:24 +0000)]
* bsd-uthread.c (bsd_uthread_close): New.
(bsd_uthread_deactivate): Don't cleanup here, just unpush the
target.
(bsd_uthread_solib_loaded): Fix typo.
(bsd_uthread_target): Register bsd_uthread_close.

15 years ago * corelow.c (core_open): Assume there was no upper layer left
Pedro Alves [Mon, 18 Aug 2008 23:12:40 +0000 (23:12 +0000)]
* corelow.c (core_open): Assume there was no upper layer left
behind from a previous inferior.
* target.c (pop_all_targets): Rename to ...
(pop_all_targets_above): ... this.  Add a target stratum
parameter.  Use it instead of hardcoding the dummy_stratum.
(pop_all_targets): New, defer to pop_all_targets_above.
(target_preopen): Use pop_all_targets_above.
* target.h (pop_all_targets_above): Declare.

15 years ago2008-08-18 Pedro Alves <pedro@codesourcery.com>
Pedro Alves [Mon, 18 Aug 2008 22:35:17 +0000 (22:35 +0000)]
2008-08-18  Pedro Alves  <pedro@codesourcery.com>

gdb/doc/
* observer.texi (thread_ptid_changed): New.

gdb/
* gdbthread.h (thread_change_ptid): Declare.
* infrun.c (infrun_thread_ptid_changed): New.
(_initialize_infrun): Attach infrun_thread_ptid_changed to the
thread_ptid_changed observer.
* regcache.c (regcache_thread_ptid_changed): New.
(_initialize_regcache): Attach regcache_thread_ptid_changed to the
thread_ptid_changed observer.
* thread.c (thread_change_ptid): New.