binutils-gdb.git
15 years ago*** empty log message ***
gdbadmin [Fri, 5 Jun 2009 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

15 years agogdb/
Jan Kratochvil [Thu, 4 Jun 2009 21:56:22 +0000 (21:56 +0000)]
gdb/
* varobj.c (varobj_update): Fix out of scope varobjs to not to change.

15 years ago2009-06-04 Doug Kwan <dougkwan@google.com>
Doug Kwan [Thu, 4 Jun 2009 21:14:11 +0000 (21:14 +0000)]
2009-06-04  Doug Kwan  <dougkwan@google.com>

* layout.cc (Layout::section_name_mapping): Add mapping for
special ARM sections.

15 years ago * gdbint.texinfo: Rename formal parameters to gdbarch function
Ulrich Weigand [Thu, 4 Jun 2009 15:15:48 +0000 (15:15 +0000)]
* gdbint.texinfo: Rename formal parameters to gdbarch function
protoypes from "current_gdbarch" to "gdbarch".

15 years ago * symtab.h: Rename SYMBOL_OPS to SYMBOL_COMPUTED_OPS.
Ulrich Weigand [Thu, 4 Jun 2009 12:28:39 +0000 (12:28 +0000)]
* symtab.h: Rename SYMBOL_OPS to SYMBOL_COMPUTED_OPS.
* ax-gdb.c (gen_var_ref): Likewise.
* findvar.c (read_var_value, symbol_read_needs_frame): Likewise.
* printcmd.c (address_info): Likewise.
* dwarf2loc.c (dwarf_expr_frame_base): Likewise.
* dwarf2read.c (dwarf2_symbol_mark_computed): Likewise.
* symtab.h: Rename struct symbol_ops to struct symbol_computed_ops.
* dwarf2loc.h: Likewise.
* dwarf2loc.c (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Likewise.

* symtab.h: (struct symbol_register_ops): New struct definition.
(struct symbol): Make "ops" member a union of symbol_computed_ops and
symbol_register_ops callback pointers.
(SYMBOL_REGISTER_OPS): New macro.
* tracepoint.c: Include "objfiles.h".
(scope_info, collect_symbol): Use SYMBOL_REGISTER_OPS register_number
callback to retrieve register numbers.
* ax-gdb.c (gen_var_ref): Likewise.
* findvar.c (read_var_value): Likewise.
* printcmd.c (address_info): Likewise.

* coffread.c (coff_reg_to_regnum): New function.
(coff_register_funcs): New static variable.
(process_coff_symbol): Do not call gdbarch_sdb_reg_to_regnum.
Install SYMBOL_REGISTER_OPS callbacks.
* mdebugread.c (mdebug_reg_to_regnum): New function.
(mdebug_register_funcs): New static variable.
(parse_symbol): Do not call gdbarch_ecoff_reg_to_regnum.
Install SYMBOL_REGISTER_OPS callbacks.
* stabsread.c (stab_reg_to_regnum): New function.
(stab_register_funcs): New static variable.
(define_symbol): Do not call gdbarch_stab_reg_to_regnum.
Install SYMBOL_REGISTER_OPS callbacks.

15 years ago * strings.c (main): Delay parsing of decimal digits.
Alan Modra [Thu, 4 Jun 2009 08:27:54 +0000 (08:27 +0000)]
* strings.c (main): Delay parsing of decimal digits.

15 years ago * dep-in.sed: Don't use \n in replacement part of s command.
Alan Modra [Thu, 4 Jun 2009 06:57:56 +0000 (06:57 +0000)]
* dep-in.sed: Don't use \n in replacement part of s command.
* Makefile.am (DEP1): LC_ALL for uniq.
* Makefile.in: Regenerate.

15 years ago * dep-in.sed: Don't use \n in replacement part of s command.
Alan Modra [Thu, 4 Jun 2009 06:57:12 +0000 (06:57 +0000)]
* dep-in.sed: Don't use \n in replacement part of s command.
* Makefile.am (DEP1, DEPTC, DEPOBJ, DEP2): LC_ALL for uniq.
* Makefile.in: Regenerate.

15 years ago * dep-in.sed: Don't use \n in replacement part of s command.
Alan Modra [Thu, 4 Jun 2009 06:56:53 +0000 (06:56 +0000)]
* dep-in.sed: Don't use \n in replacement part of s command.
* Makefile.am (DEP1): LC_ALL for uniq.
Run "make dep-am".
* Makefile.in: Regenerate.

15 years ago * dep-in.sed: Don't use \n in replacement part of s command.
Alan Modra [Thu, 4 Jun 2009 06:51:11 +0000 (06:51 +0000)]
* dep-in.sed: Don't use \n in replacement part of s command.
* Makefile.am (DEP1): LC_ALL for uniq.
Run "make dep-am".
* Makefile.in: Regenerate.

15 years ago2009-06-03 Doug Kwan <dougkwan@google.com>
Doug Kwan [Thu, 4 Jun 2009 01:31:01 +0000 (01:31 +0000)]
2009-06-03  Doug Kwan  <dougkwan@google.com>

* arm.cc (utils::sign_extend): Reverse test in gold_assert.
(utils::has_overflow): Same.

15 years ago * symfile.c (reread_symbols): Reset psymtabs_addrmap to NULL
Doug Evans [Thu, 4 Jun 2009 00:50:16 +0000 (00:50 +0000)]
* symfile.c (reread_symbols): Reset psymtabs_addrmap to NULL
after discarding its contents.

15 years ago * layout.cc (Layout::section_name_mapping): New array, replacing
Ian Lance Taylor [Thu, 4 Jun 2009 00:43:11 +0000 (00:43 +0000)]
* layout.cc (Layout::section_name_mapping): New array, replacing
Layout::linkonce_mapping.
(Layout::section_name_mapping_count): New variable, replacing
Layout::linkonce_mapping_count.
(Layout::linkonce_output_name): Remove.
(Layout::output_section_name): Rewrite.
* layout.h (class Layout): Rename Linkonce_mapping to
Section_name_mapping, linkonce_mapping to section_name_mapping,
linkonce_mapping_count to section_name_mapping_count.  Don't
declare linkonce_output_name.

15 years ago*** empty log message ***
gdbadmin [Thu, 4 Jun 2009 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

15 years agodaily update
Alan Modra [Thu, 4 Jun 2009 00:00:04 +0000 (00:00 +0000)]
daily update

15 years agomerge from gcc
DJ Delorie [Wed, 3 Jun 2009 21:02:16 +0000 (21:02 +0000)]
merge from gcc

15 years ago2009-06-03 Doug Kwan <dougkwan@google.com>
Doug Kwan [Wed, 3 Jun 2009 19:33:05 +0000 (19:33 +0000)]
2009-06-03  Doug Kwan  <dougkwan@google.com>

* gold/arm.cc (namespace utils): New.
(Target_arm::reloc_is_non_pic): Define new method.
(class Arm_relocate_functions): New.
(Target_arm::Relocate::relocate): Handle relocation types used by
Android.

15 years ago * target.c: Include "exec.h".
Pedro Alves [Wed, 3 Jun 2009 18:50:36 +0000 (18:50 +0000)]
* target.c: Include "exec.h".
(update_current_target): Don't inherit to_sections or
to_sections_end.
(target_get_section_table): New.
(target_section_by_addr): Fetch the section table from the passed
in target.
(memory_xfer_partial): Handle unmapped overlay sections before
anything else.  Get the overlay mapped address here.  Adjust to
use section_table_xfer_memory_partial.
(get_target_memory): Request a TARGET_OBJECT_RAW_MEMORY object
instead of TARGET_OBJECT_MEMORY.
(target_resize_to_sections): Delete.
(remove_target_sections): Adjust to remove target sections from
`current_target_sections', and use resize_section_table.
* target.h (struct target_ops) <to_sections, to_sections_end>:
Remove fields.
<to_get_section_table>: New method.
(xfer_memory, print_section_info): Delete declarations.
(struct target_section_table): New type.
(target_get_section_table): Declare.
(target_resize_to_sections): Delete declaration.
(remove_target_sections): Delete declaration.
* bfd-target.c (target_bfd_xfer_partial): Get the section table
from to_data.
(target_bfd_get_section_table): New.
(target_bfd_xclose): Adjust.
(target_bfd_reopen): Store the section table in the to_data field.
* corelow.c (core_data): New.
(core_close): Adjust to release core_data and its sections.
(core_open): Allocate core_data, and build its target sections
table.
(deprecated_core_resize_section_table): New.
(core_files_info): Pass core_data to print_section_info.
(core_xfer_partial): Adjust to use
section_table_xfer_memory_partial for TARGET_OBJECT_MEMORY xfers.
(init_core_ops): Do not install a deprecated_xfer_memory callback
anymore.
* solib.c (update_solib_list): Add the shared library sections
to the current target sections table.
* exec.c (current_target_sections_1): New global.
(current_target_sections): New global.
(exec_close_1): New function, refactored from exec_close.  Remove
the exec_bfd's sections from the current target sections table.
Adjust to not use to_sections.
(exec_close): Remove all target sections.  Call exec_close_1.
(exec_file_clear): Use exec_close_1 instead of unpushing the
target.
(exec_file_attach): Likewise.  Adjust to not use to_sections.  Add
exec_bfd's sections to the current target sections table.  Don't
push the exec_ops target here.
(resize_section_table): New.
(add_target_sections): New.
(remove_target_sections): Moved here.
(section_table_xfer_memory): Adjust to implement the xfer_partial
interface, and rename to...
(section_table_xfer_memory_partial): ... this, replacing the
current function of that same name.
(exec_get_section_table): New.
(exec_xfer_partial): New.
(xfer_memory): Delete.
(print_section_info): Replace the target_ops parameter by a
target_section_table parameter.
(exec_files_info, set_section_command, exec_set_section_address):
Adjust to use the current sections table.
(init_exec_ops): Do not register a deprecated_xfer_memory
callback.  Register to_xfer_partial and to_get_section_table
callbacks.
* infrun.c (handle_inferior_event): Update comments around
solib_add.
* rs6000-nat.c (xcoff_relocate_core): Adjust to use
deprecated_core_resize_section_table.
* exec.h (resize_section_table): Declare.
(section_table_xfer_memory_partial): Add const char * argument.
(remove_target_sections): Declare here.
(add_target_sections): Declare.
(print_section_info): Declare here.
* gdbcore.h (deprecated_core_resize_section_table): Declare.

15 years ago * value.h (struct internalvar): Remove.
Ulrich Weigand [Wed, 3 Jun 2009 18:16:44 +0000 (18:16 +0000)]
* value.h (struct internalvar): Remove.
(get_internalvar_integer): Add prototype.
(set_internalvar_integer): Add prototype.
(clear_internalvar): Add prototype.

* value.c (struct internalvar): Move here.  Add type member.  Remove
endian member.  Add union_internalvar member instead of value member.
(init_if_undefined_command): Use intvar->type.
(create_internalvar): Do not initialize value/endian, but type.
(create_internalvar_type_lazy): Call create_internalvar.
(value_of_internalvar): Handle host-side internalvar contents.
(set_internalvar_component): Likewise.
(set_internalvar): Likewise.
(get_internalvar_integer): New function.
(clear_internalvar): Likewise.
(set_internalvar_integer): Likewise.
(preserve_values): Handle host-side internalvar contents.

* breakpoint.c (set_breakpoint_count, set_tracepoint_count): Call
set_internalvar_integer instead of set_internalvar.
* findcmd.c (find_command): Likewise.
* infrun.c (handle_inferior_event): Likewise.
* source.c (forward_search_command, reverse_search_command): Likewise.
* tracepoint.c (set_traceframe_num, set_tracepoint_num,
set_traceframe_context): Likewise.

* printcmd.c (x_command): Call clear_internalvar instead of
set_internalvar.
* tracepoint.c (set_traceframe_context): Likewise.

* breakpoint.c (get_number_trailer): Call get_internalvar_integer
instead of value_of_internalvar.
* linespec.c (decode_dollar): Likewise.

* expprint.c (dump_subexp_body_standard): Use internalvar_name
instead of accessing internalvar private elements.
* valops.c (value_assign): Copy from original source instead of
accessing internalvar private elements.

15 years ago * scm-lang.c (builtin_type_scm): Remove.
Ulrich Weigand [Wed, 3 Jun 2009 18:10:06 +0000 (18:10 +0000)]
* scm-lang.c (builtin_type_scm): Remove.
(scm_lookup_name): Add GDBARCH parameter.  Use it instead of
objfile architecture.  Use per-architecture builtin_scm_type instead
of builtin_type_scm.
(evaluate_exp): Pass expression architecture to scm_lookup_name.

(scm_get_field): Add SIZE parameter.  Use it instead of
TYPE_LENGTH (builtin_type_scm).

(build_scm_types): New function.
(scm_type_data): New variable.
(builtin_scm_type): New function.
(_initialize_scheme_language): Do not initialize builtin_type_scm.
Register build_scm_types as post-init function for scm_type_data.

* scm-exp.c (scm_lreadr): Use per-architecture builtin_scm_type
instead of builtin_type_scm.

* scm-lang.h (SCM_CAR, SCM_CDR): Pass SCM_SIZE to scm_get_field.
(scm_get_field): Add SIZE paramter.
(scm_scmval_print): Remove prototype.
(builtin_type_scm): Remove.
(struct builtin_scm_type): Add structure definition.
(builtin_scm_type): Add prototype.

* scm-valprint.c (scm_inferior_print): Add TYPE parameter.  Use it
instead of builtin_core_addr type; do not use objfile architecture.
(scm_scmlist_print): Add TYPE parameter.  Use it to define SCM_SIZE.
Pass type to scm_scmval_print.
(scm_ipruk): Add TYPE parameter.  Use it to define SCM_SIZE.
(scm_scmval_print): Make static.  Add TYPE parameter.  Use it to
define SCM_SIZE.  Pass type to scm_ipruk and scm_scmlist_print.
(scm_val_print): Pass type to scm_inferior_print and scm_scmval_print.

15 years agoChangeLog:
Ulrich Weigand [Wed, 3 Jun 2009 18:08:14 +0000 (18:08 +0000)]
ChangeLog:

* mdebugread.c (mdebug_type_void, mdebug_type_char, mdebug_type_short,
mdebug_type_int, mdebug_type_int_32, mdebug_type_int_64,
mdebug_type_long_32, mdebug_type_long_64, mdebug_type_long_long_64,
mdebug_type_unsigned_char, mdebug_type_unsigned_short,
mdebug_type_unsigned_int_32, mdebug_type_unsigned_int_64,
mdebug_type_unsigned_long_32, mdebug_type_unsigned_long_64,
mdebug_type_unsigned_long_long_64, mdebug_type_adr_32,
mdebug_type_adr_64, mdebug_type_float, mdebug_type_double,
mdebug_type_complex, mdebug_type_double_complex,
mdebug_type_fixed_dec, mdebug_type_float_dec, mdebug_type_string):
Remove.

(basic_type_data): New global variable.
(basic_type): New function.
(parse_type): Remove static basic type map map_bt.  Call basic_type
to get basic types instead of using mdebug_type_ variables.

(parse_symbol): Use builtin types instead of mdebug_type_ variables.
(upgrade_type): Likewise.
(parse_procedure): Likewise.
(psymtab_to_symtab_1): Likewise.

(_initialize_mdebugread): Do not initialize mdebug_type_ variables.
Initialize basic_type_data.

include/coff/ChangeLog:

* symconst.h (btLong64, btULong64, btLongLong64, btULongLong64,
btAdr64, btInt64, btUInt64): New defines.

15 years ago * dfp.h (decimal_binop): Convert LEN_RESULT to input parameter.
Ulrich Weigand [Wed, 3 Jun 2009 17:47:54 +0000 (17:47 +0000)]
* dfp.h (decimal_binop): Convert LEN_RESULT to input parameter.
* dfp.c (promote_decimal): Remove.
(decimal_binop): Convert LEN_RESULT to input parameter.
Remove call to decimal_binop.
(decimal_compare): Remove call to decimal_binop.

* valarith.c (value_binop): Pass desired result type length
to decimal_binop.

15 years ago2009-06-03 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Wed, 3 Jun 2009 17:32:02 +0000 (17:32 +0000)]
2009-06-03  H.J. Lu  <hongjiu.lu@intel.com>

* ld-ifunc/ifunc-2-x86-64.d: Pass --64 to as and -melf_x86_64 to
ld.
* ld-ifunc/ifunc-5a-x86-64.d: Likewise.
* ld-ifunc/ifunc-5b-x86-64.d: Likewise.
* ld-ifunc/ifunc-6a-x86-64.d: Likewise.
* ld-ifunc/ifunc-6b-x86-64.d: Likewise.
* ld-ifunc/ifunc-7a-x86-64.d: Likewise.
* ld-ifunc/ifunc-7b-x86-64.d: Likewise.

* ld-ifunc/ifunc-8a-i386.s: New.
* ld-ifunc/ifunc-8a-x86-64.s: Likewise.
* ld-ifunc/ifunc-8b-i386.s: Likewise.
* ld-ifunc/ifunc-8b-x86-64.s: Likewise.
* ld-ifunc/ifunc-8-i386.d: Likewise.
* ld-ifunc/ifunc-8-x86-64.d: Likewise.

15 years ago2009-06-03 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Wed, 3 Jun 2009 16:58:12 +0000 (16:58 +0000)]
2009-06-03  H.J. Lu  <hongjiu.lu@intel.com>

* elf32-i386.c (elf_i386_allocate_dynrelocs): Remove check of
h->plt.refcount > 0 on STT_GNU_IFUNC symbol.
* elf64-x86-64.c (elf64_x86_64_allocate_dynrelocs): Likewise.

15 years ago * gdb.arch/i386-sse.exp: Test xmm[8-15] if amd64.
Doug Evans [Wed, 3 Jun 2009 16:46:06 +0000 (16:46 +0000)]
* gdb.arch/i386-sse.exp: Test xmm[8-15] if amd64.
* gdb.arch/i386-see.c: Ditto.

15 years ago * arm.cc (Target_arm::scan::global): Use || instead of |.
Ian Lance Taylor [Wed, 3 Jun 2009 14:05:07 +0000 (14:05 +0000)]
* arm.cc (Target_arm::scan::global): Use || instead of |.

15 years ago2009-06-03 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Wed, 3 Jun 2009 12:35:18 +0000 (12:35 +0000)]
2009-06-03  H.J. Lu  <hongjiu.lu@intel.com>

* elf32-i386.c (elf_i386_allocate_dynrelocs): Allocate
GOT entry for STT_GNU_IFUNC symbol with pointer equality.
(elf_i386_relocate_section): Adjust R_386_GOT32 relocation
against STT_GNU_IFUNC symbols for static executables.
(elf_i386_finish_dynamic_symbol): Load GOT entry with
PLT entry for STT_GNU_IFUNC symbol with pointer equality.

* elf64-x86-64.c (elf64_x86_64_allocate_dynrelocs): Allocate
GOT entry for STT_GNU_IFUNC symbol with pointer equality.
(elf64_x86_64_finish_dynamic_symbol): Load GOT entry with
PLT entry for STT_GNU_IFUNC symbol with pointer equality.

15 years ago2009-06-03 Tristan Gingold <gingold@adacore.com>
Tristan Gingold [Wed, 3 Jun 2009 08:17:20 +0000 (08:17 +0000)]
2009-06-03  Tristan Gingold  <gingold@adacore.com>

* MAINTAINERS: Add myself as Mach-O maintainer.

15 years ago * Makefile.tpl (all): Avoid a trailing backslash.
Ralf Wildenhues [Wed, 3 Jun 2009 05:40:47 +0000 (05:40 +0000)]
    * Makefile.tpl (all): Avoid a trailing backslash.
        * Makefile.in: Regenerate.

15 years ago2009-06-02 Doug Kwan <dougkwan@google.com>
Doug Kwan [Wed, 3 Jun 2009 00:06:15 +0000 (00:06 +0000)]
2009-06-02  Doug Kwan  <dougkwan@google.com>

* gold/arm.cc (Target_arm::Scan::Scan):  Initialize
issued_non_pic_error_.
(class Target_arm::Scan): Declare new method check_non_pic.
Define new method symbol_needs_plt_entry.
Declare new data member issued_non_pic_error_.
(class Target_arm::Relocate): Declare new method
should_apply_static_reloc.
(Target_arm::may_need_copy_reloc): Handle STT_ARM_TFUNC.
(Target_arm::Scan::check_non_pic): Define new method.
(Target_arm::Scan::local): Handle a small subset of reloc types used
by Android.
(Target_arm::Scan::local): Same.
(Target_arm::Relocate::should_apply_statci_reloc): Define new method.

15 years ago*** empty log message ***
gdbadmin [Wed, 3 Jun 2009 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

15 years agodaily update
Alan Modra [Wed, 3 Jun 2009 00:00:04 +0000 (00:00 +0000)]
daily update

15 years ago * config.sub, config.guess: Update from upstream sources.
Ben Elliston [Tue, 2 Jun 2009 23:00:59 +0000 (23:00 +0000)]
* config.sub, config.guess: Update from upstream sources.

15 years agobfd/
Richard Sandiford [Tue, 2 Jun 2009 18:51:34 +0000 (18:51 +0000)]
bfd/
* coff-rs6000.c (xcoff_ppc_relocate_section): Allow undefined
symbols to be left unimported when linking statically.
* xcofflink.c (xcoff_link_add_symbols): Ignore global linkage
code when linking statically.

ld/testsuite/
* ld-powerpc/aix-glink-3.s, ld-powerpc/aix-glink-3a.s,
ld-powerpc/aix-glink-3b.s, ld-powerpc/aix-glink-3.dd,
ld-powerpc/aix-glink-3-32.d, ld-powerpc/aix-glink-3-64.d: New tests.
* ld-powerpc/aix52.exp: Run them.  Move the lineno tests to maintain
alphabetical order.

15 years agobfd/
H.J. Lu [Tue, 2 Jun 2009 17:31:42 +0000 (17:31 +0000)]
bfd/

2009-06-02  H.J. Lu  <hongjiu.lu@intel.com>

* elf32-i386.c (elf_i386_check_relocs): Increment
got.refcount for R_386_GOT32/R_386_GOTOFF relocations
against STT_GNU_IFUNC symbol.
(elf_i386_allocate_dynrelocs): Set got.refcount to 0 if
local STT_GNU_IFUNC definition is used.
(elf_i386_relocate_section): Handle got.offset != -1 for
R_386_GOT32/R_386_GOTOFF relocations against STT_GNU_IFUNC
symbol.

* elf64-x86-64.c (elf64_x86_64_check_relocs): Increment
got.refcount for R_X86_64_GOTPCREL/R_X86_64_GOTPCREL64
relocations against STT_GNU_IFUNC symbol.
(elf64_x86_64_allocate_dynrelocs): Set got.refcount to 0 if
local STT_GNU_IFUNC definition is used.
(elf64_x86_64_relocate_section): Handle got.offset != -1
for R_X86_64_GOTPCREL/R_X86_64_GOTPCREL64 relocations against
STT_GNU_IFUNC symbol.

ld/testsuite/

2009-06-02  H.J. Lu  <hongjiu.lu@intel.com>

* ld-ifunc/ifunc-5-i386.d: Renamed to ...
* ld-ifunc/ifunc-5a-i386.d: This.

* ld-ifunc/ifunc-5-x86-64.d: Renamed to ...
* ld-ifunc/ifunc-5a-x86-64.d: This.

* ld-ifunc/ifunc-5b-i386.d: New.
* ld-ifunc/ifunc-5b-x86-64.d: Likewise.
* ld-ifunc/ifunc-6a-i386.d: Likewise.
* ld-ifunc/ifunc-6a-x86-64.d: Likewise.
* ld-ifunc/ifunc-6b-i386.d: Likewise.
* ld-ifunc/ifunc-6b-x86-64.d: Likewise.
* ld-ifunc/ifunc-6-i386.s: Likewise.
* ld-ifunc/ifunc-6-x86-64.s: Likewise.
* ld-ifunc/ifunc-7a-i386.d: Likewise.
* ld-ifunc/ifunc-7a-x86-64.d: Likewise.
* ld-ifunc/ifunc-7b-i386.d: Likewise.
* ld-ifunc/ifunc-7b-x86-64.d: Likewise.
* ld-ifunc/ifunc-7-i386.s: Likewise.
* ld-ifunc/ifunc-7-x86-64.s: Likewise.

15 years ago * po/nl.po: Updated Dutch translation.
Nick Clifton [Tue, 2 Jun 2009 16:31:59 +0000 (16:31 +0000)]
    * po/nl.po: Updated Dutch translation.

15 years ago* Makefile.tpl ([+compare-target+]): Compare all stage
Alexandre Oliva [Tue, 2 Jun 2009 08:23:45 +0000 (08:23 +0000)]
* Makefile.tpl ([+compare-target+]): Compare all stage
directories, rather than just gcc.
* Makefile.in: Rebuilt.

15 years ago2009-05-29 Tristan Gingold <gingold@adacore.com>
Tristan Gingold [Tue, 2 Jun 2009 07:48:05 +0000 (07:48 +0000)]
2009-05-29  Tristan Gingold  <gingold@adacore.com>

* ia64-gen.c (parse_resource_users, print_dependency_table,
add_dis_table_ent, finish_distable, insert_bit_table_ent,
add_dis_entry, compact_distree, gen_dis_table, completer_entries_eq,
get_prefix_len, compute_completer_bits, insert_opcode_dependencies,
insert_completer_entry, print_completer_entry, print_completer_table,
opcodes_eq, add_opcode_entry, shrink): Use ISO C syntax for functions.

15 years ago*** empty log message ***
gdbadmin [Tue, 2 Jun 2009 05:00:32 +0000 (05:00 +0000)]
*** empty log message ***

15 years agomerge from gcc
DJ Delorie [Mon, 1 Jun 2009 19:40:44 +0000 (19:40 +0000)]
merge from gcc

15 years ago2009-05-29 Michael Snyder <msnyder@vmware.com>
Michael Snyder [Mon, 1 Jun 2009 19:31:52 +0000 (19:31 +0000)]
2009-05-29  Michael Snyder  <msnyder@vmware.com>

* gdb.base/break-always.exp: Change "1" to "on".
Add confirmation check.

15 years agogas/
H.J. Lu [Mon, 1 Jun 2009 16:31:00 +0000 (16:31 +0000)]
gas/

2009-06-01  H.J. Lu  <hongjiu.lu@intel.com>

PR gas/10198
* config/tc-i386-intel.c (i386_intel_operand): Check '$' as '.'.

gas/testsuite/

2009-06-01  H.J. Lu  <hongjiu.lu@intel.com>

PR gas/10198
* gas/i386/jump.s: Add test for "jmp $+2".
* gas/i386/jump16.s: Likewise.

* gas/i386/jump.d: Updated.
* gas/i386/jump16.d: Likewise.

15 years agoCorrect year.
H.J. Lu [Mon, 1 Jun 2009 15:48:14 +0000 (15:48 +0000)]
Correct year.

15 years agobfd/
H.J. Lu [Mon, 1 Jun 2009 13:11:52 +0000 (13:11 +0000)]
bfd/

2009-06-01  H.J. Lu  <hongjiu.lu@intel.com>

PR ld/10205
* elf32-i386.c (elf_howto_table): Add R_386_IRELATIVE.
(elf_i386_reloc_type_lookup): Likewise.
(R_386_tls): Removed.
(R_386_irelative): New.
(R_386_vt_offset): Updated.
(elf_i386_rtype_to_howto): Likewise.
(elf_i386_link_hash_table): Add igotplt, iplt and irelplt.
(elf_i386_link_hash_table_create): Initialize igotplt,
iplt and irelplt.
(elf_i386_check_relocs): Handle STT_GNU_IFUNC symbol first.
(elf_i386_adjust_dynamic_symbol): Likewise.
(elf_i386_allocate_dynrelocs): Likewise.
(elf_i386_relocate_section): Likewise.
(elf_i386_size_dynamic_sections): Set up .iplt and .igot.plt
sections.
(elf_i386_finish_dynamic_symbol): When building a static
executable, use .iplt, .igot.plt and .rel.iplt sections for
STT_GNU_IFUNC symbols.  Generate R_386_IRELATIVE relocation for
locally defined STT_GNU_IFUNC symbol.

* elf64-x86-64.c (x86_64_elf_howto): Add R_X86_64_IRELATIVE.
(x86_64_reloc_map): Likewise.
(R_X86_64_standard): Updated.
(elf64_x86_64_link_hash_table): Add igotplt, iplt and irelplt.
(elf64_x86_64_link_hash_table_create): Initialize igotplt,
iplt and irelplt.
(elf64_x86_64_check_relocs): Handle STT_GNU_IFUNC symbol first.
(elf64_x86_64_adjust_dynamic_symbol): Likewise.
(elf64_x86_64_allocate_dynrelocs): Likewise.
(elf64_x86_64_relocate_section): Likewise.
(elf64_x86_64_size_dynamic_sections): Set up .iplt and .igot.plt
sections.
(elf64_x86_64_finish_dynamic_symbol): When building a static
executable, use .iplt, .igot.plt and .rela.iplt sections for
STT_GNU_IFUNC symbols.  Generate R_X86_64_IRELATIVE relocation
for locally defined STT_GNU_IFUNC symbol.

* reloc.c (BFD_RELOC_386_IRELATIVE): New.
(BFD_RELOC_X86_64_IRELATIVE): Likewise.

* bfd-in2.h: Regenerated.
* libbfd.h: Likewise.

include/elf/

2009-06-01  H.J. Lu  <hongjiu.lu@intel.com>

PR ld/10205
* i386.h (R_386_IRELATIVE): New.
* x86-64.h (R_X86_64_IRELATIVE): Likewise.

ld/testsuite/

2009-06-01  H.J. Lu  <hongjiu.lu@intel.com>

PR ld/10205
* ld-ifunc/ifunc.exp (contains_irelative_reloc): New.
Use it on executable and shared library.
Run *.d.

* ld-ifunc/lib.c: Add a hidden alias, __GI_library_func2, for
library_func2.
(library_func): New.

* ld-ifunc/ifunc-1-x86.d: New.
* ld-ifunc/ifunc-1-x86.s: Likewise.
* ld-ifunc/ifunc-2-i386.d: Likewise.
* ld-ifunc/ifunc-2-i386.s: Likewise.
* ld-ifunc/ifunc-2-x86-64.d: Likewise.
* ld-ifunc/ifunc-2-x86-64.s: Likewise.
* ld-ifunc/ifunc-3a-x86.d: Likewise.
* ld-ifunc/ifunc-3b-x86.d: Likewise.
* ld-ifunc/ifunc-3-x86.s: Likewise.
* ld-ifunc/ifunc-4-x86.d: Likewise.
* ld-ifunc/ifunc-4-x86.s: Likewise.
* ld-ifunc/ifunc-5-i386.d: Likewise.
* ld-ifunc/ifunc-5-i386.s: Likewise.
* ld-ifunc/ifunc-5-x86-64.d: Likewise.
* ld-ifunc/ifunc-5-x86-64.s: Likewise.

15 years agobfd/
H.J. Lu [Mon, 1 Jun 2009 12:53:00 +0000 (12:53 +0000)]
bfd/

2009-06-01  H.J. Lu  <hongjiu.lu@intel.com>

* elf-bfd.h (struct bfd_elf_section_data): Remove indirect_relocs.
(_bfd_elf_make_ifunc_reloc_section): Removed.
(_bfd_elf_is_ifunc_symbol): Likewise.
(_bfd_elf_create_static_ifunc_sections): New.

* elflink.c (_bfd_elf_adjust_dynamic_symbol): Move STT_GNU_IFUNC
symbol check to ...
(elf_link_add_object_symbols): Here.
(_bfd_elf_link_hash_hide_symbol): Don't clean plt on
STT_GNU_IFUNC symbol.
(elf_link_output_extsym): Call elf_backend_finish_dynamic_symbol
if a STT_GNU_IFUNC symbol is referenced in a non-shared object.
(IFUNC_INFIX): Removed.
(get_ifunc_reloc_section_name): Likewise.
(_bfd_elf_make_ifunc_reloc_section): Likewise.
(_bfd_elf_is_ifunc_symbol): Likewise.
(_bfd_elf_create_static_ifunc_sections): New.

ld/

2009-06-01  H.J. Lu  <hongjiu.lu@intel.com>

* scripttempl/elf.sc (PLT): Add "*(.iplt)".
(GOT): Add "*(.igot.plt)a" and "*(.igot)".
(GOTPLT): Add "*(.igot)".
(__rel_iplt_start): New.
(__rel_iplt_end): Likewise.
(__rela_iplt_start): Likewise.
(__rela_iplt_end): Likewise.

15 years ago2009-06-01 Tristan Gingold <gingold@adacore.com>
Tristan Gingold [Mon, 1 Jun 2009 08:12:21 +0000 (08:12 +0000)]
2009-06-01  Tristan Gingold  <gingold@adacore.com>

* configure.tgt (avr): Set gdb_sim to use the simulator.

15 years ago PR 10199
Alan Modra [Mon, 1 Jun 2009 01:50:45 +0000 (01:50 +0000)]
PR 10199
* doc/binutils.texi (nm): Correct -S description.

15 years agodaily update
Alan Modra [Mon, 1 Jun 2009 00:00:09 +0000 (00:00 +0000)]
daily update

15 years ago*** empty log message ***
gdbadmin [Mon, 1 Jun 2009 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

15 years ago * incremental.cc (Incremental_inputs::report_command_line): Filter
Ian Lance Taylor [Sun, 31 May 2009 23:07:26 +0000 (23:07 +0000)]
* incremental.cc (Incremental_inputs::report_command_line): Filter
out --incremental-* options.

15 years ago*** empty log message ***
gdbadmin [Sun, 31 May 2009 00:00:34 +0000 (00:00 +0000)]
*** empty log message ***

15 years agodaily update
Alan Modra [Sun, 31 May 2009 00:00:05 +0000 (00:00 +0000)]
daily update

15 years ago * gdb.base/macscp.exp (info_macro): Return undefined if undefined.
Pierre Muller [Sat, 30 May 2009 07:58:42 +0000 (07:58 +0000)]
* gdb.base/macscp.exp (info_macro): Return undefined if undefined.
(check_macro): Return 1 if undefined.
If first test fails, check if macro debug information is available,
and report unsupported test if no macro information is found.

15 years agomerge from gcc
DJ Delorie [Sat, 30 May 2009 05:18:46 +0000 (05:18 +0000)]
merge from gcc

15 years ago2009-05-29 Doug Kwan <dougkwan@google.com>
Doug Kwan [Sat, 30 May 2009 00:55:42 +0000 (00:55 +0000)]
2009-05-29  Doug Kwan  <dougkwan@google.com>

* gold/arm.cc (Output_data_plt_arm): Forward declaration for new
template class.
(class Target_arm): Update comment.
(Target_arm::Target_arm): Initialize new data members GOT_,
PLT_, GOT_PLT_, REL_DYN_, COPY_RELOCS_ and DYNBSS_.
Declare new methods Target_arm::got_section, Target_arm::make_plt_entry
and Target_arm::rel_dyn_section.
Declare new_enum Target_arm::Got_type.
Declare new data members GOT_, PLT_, GOT_PLT_, REL_DYN_, COPY_RELOCS_
and DYNBSS_.
Update commments for member do_dynsym_value.
(Target_arm::got_size, Target_arm::plt_section,
Target_arm::may_need_copy_reloc and Target_arm::copy_reloc): Define
new methods inside class defintion.
(Target_arm::got_section): Define new method.
(Target_arm::rel_dyn_section): Same.
(Output_data_plt_arm): New template class.
(Output_data_plt_arm::Output_data_plt_arm): Define constructor.
(Output_data_plt_arm:do_adjust_output_section): Define new method.
(Output_data_plt_arm::add_entry): Same.
(Output_data_plt_arm::first_plt_entry): Define new
static data member for PLT instruction template.
(Output_data_plt_arm::plt_entry): Same.
(Output_data_plt_arm::do_write): Define new method.
(Target_arm::make_plt_entry): Same.
(Target_arm::do_finalize_sections): Same.
(Target_arm::do_dynsym_value): Same.

15 years ago * infrun.c (prepare_to_proceed): Document. Assert !non_stop.
Doug Evans [Sat, 30 May 2009 00:19:13 +0000 (00:19 +0000)]
* infrun.c (prepare_to_proceed): Document.  Assert !non_stop.
If scheduler-locking is enabled, we're not going to be singlestepping
any other previously stopped thread.

* gdb.threads/hand-call-in-threads.exp: New file.
* gdb.threads/hand-call-in-threads.c: New file.

15 years ago*** empty log message ***
gdbadmin [Sat, 30 May 2009 00:00:34 +0000 (00:00 +0000)]
*** empty log message ***

15 years agodaily update
Alan Modra [Sat, 30 May 2009 00:00:05 +0000 (00:00 +0000)]
daily update

15 years agomerge from gcc
DJ Delorie [Fri, 29 May 2009 21:01:50 +0000 (21:01 +0000)]
merge from gcc

15 years ago2009-05-29 Kai Tietz <kai.tietz@onevision.com>
Kai Tietz [Fri, 29 May 2009 20:19:14 +0000 (20:19 +0000)]
2009-05-29  Kai Tietz  <kai.tietz@onevision.com>

        * pex-win32.c (pex_win32_fdopenr): Set INHERIT to false.

15 years ago * mi/mi-interp.c (mi_on_resume): Initialize `count' to 0.
Pedro Alves [Fri, 29 May 2009 19:06:12 +0000 (19:06 +0000)]
* mi/mi-interp.c (mi_on_resume): Initialize `count' to 0.

15 years ago2009-05-29 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Fri, 29 May 2009 18:30:30 +0000 (18:30 +0000)]
2009-05-29  H.J. Lu  <hongjiu.lu@intel.com>

* elf32-i386.c (link_hash_newfunc): Add elf_i386_ prefix.
(create_got_section): Likewise.
(allocate_dynrelocs): Likewise.
(readonly_dynrelocs): Likewise.
(set_tls_module_base): Likewise.
(dtpoff_base): Likewise.
(tpoff): Likewise.
(elf_i386_link_hash_table_create): Updated.
(elf_i386_create_dynamic_sections): Likewise.
(elf_i386_check_relocs): Likewise.
(elf_i386_size_dynamic_sections): Likewise.
(elf_i386_relocate_section): Likewise.

* elf64-x86-64.c (link_hash_newfunc): Add elf64_x86_64_ prefix.
(create_got_section): Likewise.
(allocate_dynrelocs): Likewise.
(readonly_dynrelocs): Likewise.
(set_tls_module_base): Likewise.
(dtpoff_base): Likewise.
(tpoff): Likewise.
(elf64_x86_64_link_hash_table_create): Updated.
(elf64_x86_64_create_dynamic_sections): Likewise.
(elf64_x86_64_check_relocs): Likewise.
(elf64_x86_64_size_dynamic_sections): Likewise.
(elf64_x86_64_relocate_section): Likewise.

15 years ago * i386-tdep.c (i386_go32_init_abi): Use SVR4 register numbering
Eli Zaretskii [Fri, 29 May 2009 11:38:39 +0000 (11:38 +0000)]
* i386-tdep.c (i386_go32_init_abi): Use SVR4 register numbering
for stabs and COFF debug info.

15 years agomerge from gcc
DJ Delorie [Fri, 29 May 2009 03:01:15 +0000 (03:01 +0000)]
merge from gcc

15 years ago2009-05-28 Doug Kwan <dougkwan@google.com>
Doug Kwan [Fri, 29 May 2009 00:15:12 +0000 (00:15 +0000)]
2009-05-28  Doug Kwan  <dougkwan@google.com>

        * configure.ac: Support gold for target arm*-*-*.
        * configure: Regenerate.
        * gold/Makefile.am (TARGETSOURCES): Add arm.cc.
        (ALL_TARGETOBJECTS): Add arm.$(OBJEXT)
        * gold/Makefile.in: Regenerate.
        * gold/arm.cc: New file.
        * gold/configure.tgt: Add armbe*-*-*, armeb*-*-* and arm*-*-* targets.

15 years ago*** empty log message ***
gdbadmin [Fri, 29 May 2009 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

15 years agodaily update
Alan Modra [Fri, 29 May 2009 00:00:10 +0000 (00:00 +0000)]
daily update

15 years ago[cgen]
DJ Delorie [Thu, 28 May 2009 22:53:08 +0000 (22:53 +0000)]
[cgen]
* cpu/mep.opc (parse_signed16_range): New.
(parse_unsigned16_range): New.
* cpu/mep-ivc2.cpu (imm16p0, simm16p0): Use them.
[opcodes]
* mep-asm.c: Regenerate.
* mep-desc.c: Regenerate.

15 years agoRemove a white space.
H.J. Lu [Thu, 28 May 2009 20:56:14 +0000 (20:56 +0000)]
Remove a white space.

15 years agogdb/
Pedro Alves [Thu, 28 May 2009 17:19:58 +0000 (17:19 +0000)]
gdb/
2009-05-28  Pedro Alves  <pedro@codesourcery.com>

* infrun.c (handle_inferior_event): When thread hoping, switch
inferior_ptid to the event thread before removing breakpoints from
the target.  If not stopping, also try to revert back to a thread
that was doing a "next".  Check if that thread still exists before
resuming.
(currently_stepping_thread): Delete and merge with ...
(currently_stepping): ... this.
(currently_stepping_callback): Rename to ...
(currently_stepping_or_nexting_callback): ... this, and also
return true if the thread was stepping over a call (has a
step-resume breakpoint).

gdb/testsuite/
2009-05-28  Pedro Alves  <pedro@codesourcery.com>

* gdb.threads/threxit-hop-specific.c: New.
* gdb.threads/threxit-hop-specific.exp: New.
* gdb.threads/thread-execl.c: New.
* gdb.threads/thread-execl.exp: New.

15 years agogdb
Tom Tromey [Thu, 28 May 2009 16:49:55 +0000 (16:49 +0000)]
gdb
* python/python.c (gdbpy_parameter): Rename.  Fix error message.
(GdbMethods): Change "get_parameter" to "parameter".
gdb/doc
* gdb.texinfo (Basic Python): Change get_parameter to parameter.

15 years ago2009-05-28 Pierre Muller <muller@ics.u-strasbg.fr>
Paul Pluzhnikov [Thu, 28 May 2009 16:30:39 +0000 (16:30 +0000)]
2009-05-28  Pierre Muller  <muller@ics.u-strasbg.fr>
    Paul Pluzhnikov  <ppluzhnikov@google.com>

* configure.ac (!have_libpython): Add python-prettyprint source
and object files.
* configure: Regenerate.
* python/python-prettyprint.c: Move "#ifdef HAVE_PYTHON" before
python headers.

15 years ago * po/da.po: Updated Danish translation.
Nick Clifton [Thu, 28 May 2009 11:32:51 +0000 (11:32 +0000)]
    * po/da.po: Updated Danish translation.

15 years ago2009-05-28 Nick Clifton <nickc@redhat.com>
Nick Clifton [Thu, 28 May 2009 11:30:49 +0000 (11:30 +0000)]
2009-05-28  Nick Clifton  <nickc@redhat.com>

        * targets.c (_bfd_target_vector): Only include plugin target in
        all-targets build if BFD_SUPPORTS_PLUGINS is non-zero.

2009-05-27  Rafael Avila de Espindola  <espindola@google.com>

        * plugin.c (program_name): Remove.
        (plugin_program_name): New.
        (bfd_plugin_set_program_name): New.
        (try_load_plugin): Use plugin_program_name.
        * plugin.h (bfd_plugin_set_program_name): New.

2009-05-27  Rafael Avila de Espindola  <espindola@google.com>

        * ar.c (main): Call bfd_plugin_set_program_name.
        * nm.c (main): Call bfd_plugin_set_program_name.

15 years ago * readelf.c (display_debug_section): Do not display debug sections
Nick Clifton [Thu, 28 May 2009 11:02:22 +0000 (11:02 +0000)]
    * readelf.c (display_debug_section): Do not display debug sections
        with the NOBITS section type.

15 years ago * elf32-spu.c (struct call_info): New member broken_cycle.
Ulrich Weigand [Thu, 28 May 2009 10:47:44 +0000 (10:47 +0000)]
* elf32-spu.c (struct call_info): New member broken_cycle.
(remove_cycle): Instead of physically removing call_info structures
to break call graph cycles, mark them using the broken_cycle flag.
(mark_overlay_section): Respect broken_cycle flag.
(unmark_overlay_section): Likewise.
(collect_lib_sections): Likewise.
(collect_overlays): Likewise.
(sum_stack): Likewise.

15 years ago * elf32-spu.c (insert_callee): Accumulate incoming callee->count.
Ulrich Weigand [Thu, 28 May 2009 10:42:47 +0000 (10:42 +0000)]
* elf32-spu.c (insert_callee): Accumulate incoming callee->count.
(mark_functions_via_relocs): Initialize callee->count to 1.
(pasted_function): Likewise.
(spu_elf_auto_overlay): Honor call counts when determining number
of stubs required in software i-cache mode.

15 years agogdb
Tom Tromey [Thu, 28 May 2009 01:09:20 +0000 (01:09 +0000)]
gdb

2009-05-27  Vladimir Prus  <vladimir@codesourcery.com>
    Tom Tromey  <tromey@redhat.com>
    Thiago Jung Bauermann  <bauerman@br.ibm.com>

* mi/mi-main.c (mi_cmd_list_features): List "python" feature.
* varobj.h (varobj_set_visualizer): Declare.
(varobj_get_display_hint): Likewise.
(varobj_update_result_t) <children_changed, value_installed>: New
fields.
* mi/mi-cmds.c (mi_cmds): Add var-set-visualizer.
* mi/mi-cmds.h (mi_cmd_var_set_visualizer,
mi_cmd_var_set_child_range): Declare.
* mi/mi-cmd-var.c (mi_cmd_var_set_visualizer): New function.
(mi_cmd_var_list_children): Emit display hint.
(varobj_update_one): Emit display hint.  Handle dynamic children.
* python/python.c (GdbMethods): Add "default_visualizer".
* python/python-internal.h (apply_varobj_pretty_printer,
gdbpy_get_varobj_pretty_printer, gdbpy_get_display_hint):
Declare.
(gdbpy_default_visualizer): Likewise.
* varobj.c: Include python.h, python-internal.h.
(PyObject): New typedef.
(struct varobj) <children_requested, pretty_printer>: New fields.
(varobj_create): Call install_default_visualizer.
(instantiate_pretty_printer): New function.
(varobj_set_display_format): Update.
(varobj_get_display_hint): New function.
(update_dynamic_varobj_children): New function.
(varobj_get_num_children): Handle dynamic children.
(varobj_list_children): Likewise.
(install_new_value): Likewise.
(varobj_add_child): New function.
(install_visualizer): Likewise.
(install_default_visualizer): Likewise.
(varobj_set_visualizer): Likewise.
(varobj_update): Handle dynamic children.
(create_child): Use create_child_with_value.
(create_child_with_value): New function.
(value_get_print_value): Call pretty printer.  Add value_formatter
argument.
(c_value_of_variable): Update.
(varobj_invalidate): Always free all_rootvarobj.
* python/python-prettyprint.c (apply_varobj_pretty_printer): New
function.
(gdbpy_get_varobj_pretty_printer): Likewise.
(gdbpy_default_visualizer): Likewise.

gdb/doc

2009-05-27  Tom Tromey  <tromey@redhat.com>

* gdb.texinfo (GDB/MI Miscellaneous Commands): Document "python"
feature.
(GDB/MI Variable Objects): Document -var-set-visualizer.

gdb/testsuite

2009-05-27  Tom Tromey  <tromey@redhat.com>
    Thiago Jung Bauermann  <bauerman@br.ibm.com>

* lib/mi-support.exp (mi_varobj_update_dynamic): New proc.
(mi_child_regexp): Likewise.
(mi_list_varobj_children_range): Likewise.
(mi_get_features): Likewise.
(mi_list_varobj_children): Rewrite.
* gdb.python/python-mi.exp: New file.

15 years agogdb
Tom Tromey [Thu, 28 May 2009 01:05:14 +0000 (01:05 +0000)]
gdb

2009-05-27  Tom Tromey  <tromey@redhat.com>
    Thiago Jung Bauermann  <bauerman@br.ibm.com>
    Phil Muldoon  <pmuldoon@redhat.com>
    Paul Pluzhnikov  <ppluzhnikov@google.com>
    Vladimir Prus  <vladimir@codesourcery.com>

* python/python-value.c (value_object_to_value): New function.
* python/python-internal.h: Include frameobject.h.
(gdbpy_children_cst, gdbpy_to_string_cst, gdbpy_display_hint_cst):
Declare.
(value_object_to_value): Declare.
* printcmd.c (struct format_data) <raw>: New field.
(last_format): Default to 0.
(decode_format): Initialize val.raw.  Handle /r flag.
(print_command_1): Initialize fmt.raw and opts.raw.
(output_command): Likewise.
(x_command): Fix initialization of fmt.format.  Initialize
fmt.raw.
(display_command): Initialize fmt.raw.
(do_one_display): Set opts.raw.
* python/python.c (gdbpy_to_string_cst, gdbpy_children_cst,
gdbpy_display_hint_cst): New globals.
(_initialize_python): Initialize them.  Set gdb.pretty_printers.
* cp-valprint.c: Include python.h.
(cp_print_value): Call apply_val_pretty_printer.
* python/python.h (apply_val_pretty_printer): Declare.
* stack.c (print_this_frame_argument_p): Remove.
(print_frame_args): Compute summary flag.  Don't use
print_this_frame_argument_p.
* valprint.c: Include python.h.
(user_print_options): Initialize new fields.
(scalar_type_p): New function.
(val_print): Handle 'raw' and 'summary' modes.  Call
apply_val_pretty_printer.
(value_print): Handle 'raw' mode.
* valprint.h (struct value_print_options) <raw, summary>: New
fields.
* Makefile.in (SUBDIR_PYTHON_OBS): Add python-prettyprint.o
(SUBDIR_PYTHON_SRCS): Add python-prettyprint.c.
(python-prettyprint.o): New target.
* python/python-prettyprint.c: New file.

gdb/doc

2009-05-27  Tom Tromey  <tromey@redhat.com>
    Thiago Jung Bauermann  <bauerman@br.ibm.com>
    Phil Muldoon  <pmuldoon@redhat.com>

* gdb.texinfo (Objfiles In Python): Reference pretty printing.
(Pretty Printing): New node.
(Selecting Pretty-Printers): Likewise.
(Python API): Update.
(Output Formats): Document /r format.

gdb/testsuite

2009-05-27  Tom Tromey  <tromey@redhat.com>
    Thiago Jung Bauermann  <bauerman@br.ibm.com>
    Phil Muldoon  <pmuldoon@redhat.com>
    Paul Pluzhnikov  <ppluzhnikov@google.com>

* gdb.python/python-prettyprint.exp: New file.
* gdb.python/python-prettyprint.c: New file.
* gdb.python/python-prettyprint.py: New file.
* gdb.base/display.exp: print/r is now valid.

15 years ago2009-05-27 Tom Tromey <tromey@redhat.com>
Tom Tromey [Thu, 28 May 2009 00:53:52 +0000 (00:53 +0000)]
2009-05-27  Tom Tromey  <tromey@redhat.com>
    Paul Pluzhnikov  <ppluzhnikov@google.com>

* mi/mi-main.c (mi_cmd_data_evaluate_expression): Use
value_address.
* cli/cli-dump.c (dump_value_to_file): Use value_address.
* valprint.c (common_val_print): Likewise.
* v850-tdep.c (v850_push_dummy_call): Use value_address.
* tracepoint.c (encode_actions): Use value_address.
* printcmd.c (print_formatted): Use value_address.
(x_command): Likewise.
* p-valprint.c (pascal_object_print_static_field): Use
value_address.
* mn10300-tdep.c (mn10300_push_dummy_call): Use value_address.
* mips-tdep.c (mips_eabi_push_dummy_call): Use value_address.
* m32r-tdep.c (m32r_push_dummy_call): Use value_address.
* jv-valprint.c (java_value_print): Use value_address.
* infcall.c (find_function_addr): Use value_address.
* gnu-v3-abi.c (gnuv3_rtti_type): Use value_address.
* gnu-v2-abi.c (gnuv2_value_rtti_type): Use value_address.
* frv-tdep.c (frv_push_dummy_call): Use value_address.
* frame.c (frame_register_unwind): Use value_address.
(frame_unwind_register_value): Likewise.
* darwin-nat-info.c (info_mach_region_command): Use
value_address.
* cp-valprint.c (cp_print_static_field): Use value_address.
* c-valprint.c (c_value_print): Use value_address.
* breakpoint.c (update_watchpoint): Use value_address.
(can_use_hardware_watchpoint): Likewise.
* ada-valprint.c (ada_val_print_1): Use value_address.
(ada_value_print): Likewise.
* ada-tasks.c (read_fat_string_value): Use value_address.
* jv-lang.c (java_link_class_type): Use set_value_address.
(java_link_class_type): Likewise.
(get_java_utf8_name): Use value_address.
(type_from_class): Likewise.
(java_link_class_type): Likewise.
* findvar.c (value_of_register): Use set_value_address.
(read_var_value): Likewise.
(read_var_value): Likewise.
* eval.c (evaluate_subexp_standard): Use set_value_address.
(evaluate_subexp_standard): Use value_address.
* dwarf2loc.c (dwarf2_evaluate_loc_desc): Use set_value_address.
* ada-lang.c (coerce_unspec_val_to_type): Use set_value_address.
(ada_value_primitive_packed_val): Likewise.
(ensure_lval): Likewise.
(thin_data_pntr): Use value_address.
(desc_bounds): Likewise.
(ada_value_primitive_packed_val): Likewise.
(value_assign_to_component): Likewise.
(ensure_lval): Likewise.
(make_array_descriptor): Likewise.
(ada_to_fixed_value): Likewise.
(unwrap_value): Likewise.
* value.c (deprecated_value_address_hack): Remove.
(value_address): New function.
(value_raw_address): Likewise.
(set_value_address): Likewise.
(value_fn_field): Use set_value_address.
(value_from_contents_and_address): Likewise.
(value_fn_field): Likewise.
(allocate_value_lazy): Don't use VALUE_ADDRESS.
(value_as_address): Use value_address.
(value_static_field): Likewise.
* valops.c (search_struct_field): Use set_value_address.
(value_at): Likewise.
(value_at_lazy): Likewise.
(value_repeat): Likewise.
(value_cast_structs): Use value_address.
(value_cast): Likewise.
(value_fetch_lazy): Likewise.
(value_assign): Likewise.
(value_repeat): Likewise.
(address_of_variable): Likewise.
(value_coerce_array): Likewise.
(value_coerce_function): Likewise.
(value_addr): Likewise.
(search_struct_field): Likewise.
(search_struct_method): Likewise.
(find_method_list): Likewise.
(value_struct_elt_for_reference): Likewise.
(value_full_object): Likewise.
* jv-valprint.c (java_value_print): Use set_value_address.
* value.h (deprecated_value_address_hack): Remove.
(VALUE_ADDRESS): Remove.
(value_address): Declare.
(value_raw_address): Declare.
(set_value_address): Declare.

15 years agogdb
Tom Tromey [Thu, 28 May 2009 00:47:20 +0000 (00:47 +0000)]
gdb

2009-05-27  Tom Tromey  <tromey@redhat.com>
    Thiago Jung Bauermann  <bauerman@br.ibm.com>
    Phil Muldoon  <pmuldoon@redhat.com>
    Paul Pluzhnikov  <ppluzhnikov@google.com>

* python/python.c (_initialize_python): Call
gdbpy_initialize_types.
(GdbMethods): Add "lookup_type".
* python/python-value.c (value_object) <type>: New field.
(valpy_dealloc): Decref type.
(valpy_new): Initialize type.
(valpy_get_type): New function.
(value_to_value_object): Initialize type.
(valpy_cast): New function.
(value_object_getset): Add "type".
(value_object_methods): Add "cast".
* python/python-internal.h (type_to_type_object): Declare.
(type_object_to_type): Likewise.
(gdbpy_initialize_types): Likewise.
(gdbpy_lookup_type): Declare.
* Makefile.in (SUBDIR_PYTHON_OBS): Add python-type.o.
(SUBDIR_PYTHON_SRCS): Add python-type.c.
(python-type.o): New target.
* python/python-type.c: New file.

gdb/doc

2009-05-27  Thiago Jung Bauermann  <bauerman@br.ibm.com>
    Tom Tromey  <tromey@redhat.com>

* gdb.texinfo (Types In Python): New node.
(Values From Inferior): "type" is now an attribute.
(Python API): Update.

gdb/testsuite

2009-05-27  Thiago Jung Bauermann  <bauerman@br.ibm.com>
    Tom Tromey  <tromey@redhat.com>
    Pedro Alves  <pedro@codesourcery.com>
    Paul Pluzhnikov  <ppluzhnikov@google.com>

* gdb.python/python-template.exp: New file.
* gdb.python/python-template.cc: New file.
* gdb.python/python.exp (gdb_py_test_multiple): Add two objfile
tests.
* gdb.python/python-value.exp (py_objfile_tests): New proc.
Call it.
(test_value_after_death): New proc.
* gdb.python/python-value.c (PTR): New typedef.
(main): New variable 'x'.

15 years agogdb
Tom Tromey [Thu, 28 May 2009 00:40:24 +0000 (00:40 +0000)]
gdb

2009-04-01  Tom Tromey  <tromey@redhat.com>
    Thiago Jung Bauermann  <bauerman@br.ibm.com>
    Phil Muldoon  <pmuldoon@redhat.com>

* python/python.c: Include objfiles.h, observer.h.
(gdbpy_auto_load): New global.
(gdbpy_current_objfile): Likewise.
(GDBPY_AUTO_FILENAME): New define.
(gdbpy_new_objfile): New function.
(gdbpy_get_current_objfile): Likewise.
(gdbpy_objfiles): Likewise.
(_initialize_python): Add "maint set auto-load".  Call
gdbpy_initialize_objfile.  Attach objfile observer.
(GdbMethods): New methods current_objfile, objfiles.
* python/python-objfile.c: New file.
* python/python-internal.h (objfile_to_objfile_object): Declare.
(objfpy_get_printers): Likewise.
(gdbpy_initialize_objfile): Likewise.
* Makefile.in (SUBDIR_PYTHON_OBS): Add python-objfile.o.
(SUBDIR_PYTHON_SRCS): Add python-objfile.c.
(python-objfile.o): New target.

gdb/doc

2009-04-01  Tom Tromey  <tromey@redhat.com>
    Thiago Jung Bauermann  <bauerman@br.ibm.com>

* gdb.texinfo (Python API): Update.
(Auto-loading): New node.
(Objfiles In Python): New node.

gdb/testsuite

2009-04-06  Tom Tromey  <tromey@redhat.com>

* gdb.python/python.exp (gdb_py_test_multiple): Add two objfile
tests.
* gdb.python/python-value.exp (py_objfile_tests): New proc.
Call it.

15 years agodaily update
Alan Modra [Thu, 28 May 2009 00:00:08 +0000 (00:00 +0000)]
daily update

15 years ago*** empty log message ***
gdbadmin [Thu, 28 May 2009 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

15 years agogdb/
Pedro Alves [Wed, 27 May 2009 19:44:53 +0000 (19:44 +0000)]
gdb/
* infrun.c (follow_exec): Clear the stop_requested flag.
* linux-nat.c (linux_handle_extended_wait) <PTRACE_EVENT_EXEC>:
Add debug output.

gdb/testsuite/
* gdb.mi/nsthrexec.c, gdb.mi/mi-nsthrexec.exp: New.

15 years agold/ChangeLog
Dave Korn [Wed, 27 May 2009 18:40:56 +0000 (18:40 +0000)]
ld/ChangeLog

* deffilep.y (%union):  Add new string-type semantic value 'digits'.
(%token):  Remove NUMBER as token, add DIGITS.
(%type):  Add NUMBER as type.  Add new id types anylang_id, opt_id.
(ALIGNCOMM):  Parse an anylang_id instead of a plain ID.
(anylang_id):  New production.
(opt_digits):  Likewise.
(opt_id):  Likewise.
(NUMBER):  Likewise.
(def_lex):  Return strings of digits in raw string form as DIGITS
token, instead of converting to numeric integer type.

ld/testsuite/ChangeLog

* ld-pe/non-c-lang-syms.c:  New dump test source file.
* ld-pe/non-c-lang-syms.d:  New dump test pattern file.
* ld-pe/pe.exp:  Run new "foreign symbol" test.

15 years ago * nto-procfs.c (get_regset): Pass correct pointer.
Aleksandar Ristovski [Wed, 27 May 2009 18:28:31 +0000 (18:28 +0000)]
* nto-procfs.c (get_regset): Pass correct pointer.

15 years ago2009-05-27 Doug Kwan <dougkwan@google.com>
Doug Kwan [Wed, 27 May 2009 18:27:42 +0000 (18:27 +0000)]
2009-05-27  Doug Kwan  <dougkwan@google.com>

        * arm.h: New file.
        * elfcpp.h (enum SHT): Add ARM-specific special sections.
        (enum PT): Add ARM-specific section types.
        (enum SST): Add STT_ARM_TFUNC.

15 years ago2009-05-27 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Wed, 27 May 2009 17:05:53 +0000 (17:05 +0000)]
2009-05-27  H.J. Lu  <hongjiu.lu@intel.com>

* common.h: Update comments for dynamic tag ranges.

15 years ago * plugins.m4: New.
Nick Clifton [Wed, 27 May 2009 16:29:55 +0000 (16:29 +0000)]
* plugins.m4: New.

        * aclocal.m4: Include ../config/plugins.m4.
        * configure.in: Use AC_PLUGINS.
        * configure: Regenerate.
        * Makefile.in: Regenerate.
        * doc/Makefile.in: Regenerate.

15 years ago2009-05-26 Catherine Moore <clm@codesourcery.com>
Catherine Moore [Wed, 27 May 2009 14:14:42 +0000 (14:14 +0000)]
2009-05-26  Catherine Moore  <clm@codesourcery.com>

            gas/
            * config/tc-mips.c (check_for_24k_errata): Remove.
            (md_mips_end): Remove call to check_for_24k_errata.
            (start_noreorder): Likewise.
            (s_change_sec): Likewise.
            (s_change_section): Likewise.
            (insns_between): Add 24k errata checks.
            (append_insn): Remove declaration and references to nhdx_24k.
            Remove calls to check_for_24k_errata.

            gas/testsuite:
            * eret.s, eret.d eret.l: Remove.
            * eret-1.s, eret-1.d: New.
            * eret-2.s, eret-2.d: New.
            * eret-3.s, eret-3.d: New.
            * mips.exp: Run new tests.  Remove old tests.

15 years ago * sysdump.c (tab): Use puts rather than two printfs.
Nathan Sidwell [Wed, 27 May 2009 13:34:14 +0000 (13:34 +0000)]
* sysdump.c (tab): Use puts rather than two printfs.

15 years ago bfd/
Nathan Sidwell [Wed, 27 May 2009 13:31:24 +0000 (13:31 +0000)]
bfd/
* elf32-ppc.c (ppc_elf_relax_section): Work with a partial
link.
* bout.c (b_out_bfd_relax_section): Reject relocatable links.
* elf32-m10300.c (mn10300_elf_relax_section): Likewise.
* elf32-avr.c (elf32_avr_relax_section): Likewise.
* elf32-frv.c (elf32_avr_relax_section): Likewise.
* elf32-xtensa.c (elf_xtensa_relax_section): Likewise.
* elf64-mmix.c (mmix_elf_relax_section): Likewise.
* elfxx-ia64.c (elfNN_ia64_relax_section): Likewise.
* elfxx-sparc.c (_bfd_sparc_elf_relax_section): Likewise.
* reloc.c (bfd_generic_relax_section): Likewise.
* reloc16.c (bfd_coff_reloc16_relax_section): Likewise.
* vms.c (vms_bfd_relax_section): Likewise.

ld/
* ldmain.c (main): Don't reject --relax -r.
* ld.texinfo (PowerPC ELF32): Document behaviour of relaxing
partial links.

ld/testsuite/
* ld-powerpc/vxworks-relax-2.s: New.
* ld-powerpc/vxworks-relax-2.rd: New.
* ld-powerpc/powerpc.exp: Add it.

15 years ago* Makefile.tpl (all): Avoid harmless warning in make all when
Alexandre Oliva [Wed, 27 May 2009 07:30:42 +0000 (07:30 +0000)]
* Makefile.tpl (all): Avoid harmless warning in make all when
gcc-bootstrap is enabled but stage_last does not exist.
* Makefile.in: Rebuilt.

15 years ago[cgen/cpu]
DJ Delorie [Wed, 27 May 2009 01:49:46 +0000 (01:49 +0000)]
[cgen/cpu]

* cpu/mep-ivc2.cpu (h-ccr-ivc2): Enable for C3 slots, fix
accumulator names.
(f-ivc2-ccrn-c3hi): New.
(f-ivc2-ccrn-c3lo): New.
(f-ivc2-ccrn-c3): New.
(ivc2c3ccrn): Use it.

[sid/component/cgen-cpu/mep]

* mep-cop1-32-decode.cxx: Regenerate.
* mep-cop1-32-decode.h: Regenerate.
* mep-cop1-32-sem.cxx: Regenerate.
* mep-cop1-48-sem.cxx: Regenerate.

[opcodes]

* mep-asm.c: Regenerate.
* mep-desc.c: Regenerate.
* mep-desc.h: Regenerate.
* mep-dis.c: Regenerate.
* mep-ibld.c: Regenerate.
* mep-opc.c: Regenerate.
* mep-opc.h: Regenerate.

15 years ago*** empty log message ***
gdbadmin [Wed, 27 May 2009 00:00:35 +0000 (00:00 +0000)]
*** empty log message ***

15 years agodaily update
Alan Modra [Wed, 27 May 2009 00:00:05 +0000 (00:00 +0000)]
daily update

15 years agoAdd missing ChangeLog entry in previous check-in
Doug Kwan [Tue, 26 May 2009 23:05:00 +0000 (23:05 +0000)]
Add missing ChangeLog entry in previous check-in

15 years ago2009-05-26 Doug Kwan <dougkwan@google.com>
Doug Kwan [Tue, 26 May 2009 22:52:56 +0000 (22:52 +0000)]
2009-05-26  Doug Kwan  <dougkwan@google.com>

        * options.cc (General_options::parse_exclude_libs).  Fix a comment.
        (General_options::check_excluded_libs): Strip off directories in
        archive name before matching like GNU ld does.
        * testsuite/Makefile.am (MOSTLYCLEANFILES,
        exclude_libs_test_DEPENDENCIES): Add alt/libexclude_libs_test_3.a
        (exclude_libs_test_LDFLAGS): Add linker option
        -Wl,--exclude-libs,libexclude_libs_test_3
        (exclude_libs_test_LADD): Add alt/libexclude_libs_test_3.a as
        an explicit archive without using -l.
        (alt/libexclude_libs_test_3.a): New make rule.
        * testsuite/Makefile.in: Regenerate.
        * testsuite/exclude_libs_test.c : Declare lib3_default().
        (main): Call it.
        * exclude_libs_test.sh: Add tests for alt/exclude_libs_test_3.a.
        * exclude_libs_test_3.c: New file.

15 years ago2009-05-26 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Tue, 26 May 2009 22:18:22 +0000 (22:18 +0000)]
2009-05-26  H.J. Lu  <hongjiu.lu@intel.com>

* elf-bfd.h (_bfd_elf_is_ifunc_symbol): New.

* elf32-i386.c (is_indirect_symbol): Renamed to ...
* elflink.c (_bfd_elf_is_ifunc_symbol): This.

* elf32-i386.c (allocate_dynrelocs): Updated.
(elf_i386_relocate_section): Likewise.
* elf64-x86-64.c (allocate_dynrelocs): Likewise.
(elf64_x86_64_relocate_section): Likewise.

* elf64-x86-64.c (is_indirect_symbol): Removed.