OSDN Git Service

pf3gnuchains/pf3gnuchains3x.git
16 years agoMerge from gcc:
DJ Delorie [Fri, 14 Dec 2007 01:28:55 +0000 (01:28 +0000)]
Merge from gcc:
2007-12-10  Andreas Tobler  <a.tobler@schweiz.org>

* configure.ac: Enable libjava for x86_64-*-darwin9.
* configure: Regenerate.

16 years ago*** empty log message ***
gdbadmin [Fri, 14 Dec 2007 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

16 years agodaily update
Alan Modra [Thu, 13 Dec 2007 23:00:06 +0000 (23:00 +0000)]
daily update

16 years ago2007-12-13 Michael Snyder <msnyder@specifix.com>
Michael Snyder [Thu, 13 Dec 2007 19:28:26 +0000 (19:28 +0000)]
2007-12-13  Michael Snyder  <msnyder@specifix.com>

* mips-linux-tdep.c (mips64_fill_gregset): Remove unused variable.

16 years ago* dwarf2read.c (attr_form_is_constant): New function.
Jim Blandy [Thu, 13 Dec 2007 19:02:51 +0000 (19:02 +0000)]
* dwarf2read.c (attr_form_is_constant): New function.
(dwarf2_add_field): Use it and attr_form_is_section_offset to
recognize DW_AT_data_member_location attributes.  Use
dwarf2_get_attr_constant_value when the attribute is a constant.

* dwarf2read.c (attr_form_is_section_offset): New function.
(dwarf_add_member_fn, read_common_block, read_partial_die)
(dwarf2_symbol_mark_computed): Use it, instead of writing it out.

16 years agoRemove unused support for target-based exception catching.
Jim Blandy [Thu, 13 Dec 2007 02:00:09 +0000 (02:00 +0000)]
Remove unused support for target-based exception catching.
* target.h (struct target_ops): Delete
to_enable_exception_callback and to_get_current_exception_event
members.
(target_enable_exception_callback)
(target_get_current_exception_event): Delete macros.
* target.c (update_current_target): Remove code to inherit and
default those members.
(debug_to_enable_exception_callback)
(debug_to_get_current_exception_event): Delete functions.
(setup_target_debug): Don't install those methods.
* inf-child.c (inf_child_enable_exception_callback)
(inf_child_get_current_exception_event): Delete dummy functions.
(inf_child_target): Don't install them in the target vector.
* breakpoint.h (enum bptype): Delete bp_catch_catch,
bp_catch_throw.
* breakpoint.c (cover_target_enable_exception_callback)
(ep_is_exception_catchpoint, create_exception_catchpoint): Delete
functions.
(insert_bp_location, update_breakpoints_after_exec)
(remove_breakpoint, ep_is_catchpoint, print_it_typical)
(bpstat_stop_status, bpstat_what)
(bpstat_get_triggered_catchpoints, print_one_breakpoint_location)
(user_settable_breakpoint, allocate_bp_location)
(disable_watchpoints_before_interactive_call_start)
(enable_watchpoints_after_interactive_call_stop, mention)
(delete_breakpoint, breakpoint_re_set_one, disable_command)
(enable_command): Remove exception catchpoint cases.
(catch_exception_command_1): Don't try target-based exception
handling.
* stack.c (catch_info): Call print_frame_label_vars
unconditionally.

16 years ago*** empty log message ***
gdbadmin [Thu, 13 Dec 2007 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

16 years agodaily update
Alan Modra [Wed, 12 Dec 2007 23:00:05 +0000 (23:00 +0000)]
daily update

16 years ago * elf32-xtensa.c (elf_xtensa_do_reloc): Update self_address along with
Bob Wilson [Wed, 12 Dec 2007 21:11:10 +0000 (21:11 +0000)]
    * elf32-xtensa.c (elf_xtensa_do_reloc): Update self_address along with
        address.
        (print_action_list): Fix name for ta_convert_longcall.

16 years ago* remote-mips.c (mips_load): Use regcache_set_valid_p() instead
Maciej W. Rozycki [Wed, 12 Dec 2007 17:14:52 +0000 (17:14 +0000)]
* remote-mips.c (mips_load): Use regcache_set_valid_p() instead
of setting deprecated_register_valid array directly.

16 years ago*** empty log message ***
gdbadmin [Wed, 12 Dec 2007 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

16 years agodaily update
Alan Modra [Tue, 11 Dec 2007 23:00:06 +0000 (23:00 +0000)]
daily update

16 years ago * bfd/elf.c (_bfd_elf_copy_private_symbol_data): Don't copy shndx if
Catherine Moore [Tue, 11 Dec 2007 13:13:59 +0000 (13:13 +0000)]
    * bfd/elf.c (_bfd_elf_copy_private_symbol_data): Don't copy shndx if
        the symbol's section is the undefined section.
        * gas/testsuite/gas/elf/symtab.s: New test.
        gas/testsuite/gas/elf/symtab.d: New expected output.
        gas/testsuite/gas/elf/elf.exp: Run the new symbtab test.

16 years ago * dwarf2.h (DW_AT_hi_user): Correct value.
Daniel Jacobowitz [Tue, 11 Dec 2007 12:56:21 +0000 (12:56 +0000)]
* dwarf2.h (DW_AT_hi_user): Correct value.

16 years ago*** empty log message ***
gdbadmin [Tue, 11 Dec 2007 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

16 years agowarning messages should contain "warning:"
Alan Modra [Mon, 10 Dec 2007 23:44:23 +0000 (23:44 +0000)]
warning messages should contain "warning:"

16 years agodaily update
Alan Modra [Mon, 10 Dec 2007 23:00:05 +0000 (23:00 +0000)]
daily update

16 years ago * lib/gdb.exp (build_id_debug_filename_get): OBJCOPY pipe being read
Jan Kratochvil [Mon, 10 Dec 2007 14:32:50 +0000 (14:32 +0000)]
* lib/gdb.exp (build_id_debug_filename_get): OBJCOPY pipe being read
must be set to binary.

16 years ago*** empty log message ***
gdbadmin [Mon, 10 Dec 2007 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

16 years agodaily update
Alan Modra [Sun, 9 Dec 2007 23:00:06 +0000 (23:00 +0000)]
daily update

16 years ago * lib/gdb.exp (gdb_gnu_strip_debug): Remove debug format test.
Pedro Alves [Sun, 9 Dec 2007 11:21:21 +0000 (11:21 +0000)]
* lib/gdb.exp (gdb_gnu_strip_debug): Remove debug format test.

16 years ago*** empty log message ***
gdbadmin [Sun, 9 Dec 2007 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

16 years agodaily update
Alan Modra [Sat, 8 Dec 2007 23:00:05 +0000 (23:00 +0000)]
daily update

16 years ago*** empty log message ***
gdbadmin [Sat, 8 Dec 2007 00:00:35 +0000 (00:00 +0000)]
*** empty log message ***

16 years agodaily update
Alan Modra [Fri, 7 Dec 2007 23:00:05 +0000 (23:00 +0000)]
daily update

16 years ago2007-12-07 Bob Wilson <bob.wilson@acm.org>
Bob Wilson [Fri, 7 Dec 2007 22:52:09 +0000 (22:52 +0000)]
2007-12-07  Bob Wilson  <bob.wilson@acm.org>

include/elf/
* xtensa.h (R_XTENSA_32_PCREL): New.

bfd/
* elf32-xtensa.c (elf_howto_table): Add R_XTENSA_32_PCREL.
(elf_xtensa_reloc_type_lookup): Handle BFD_RELOC_32_PCREL.
(elf_xtensa_check_relocs): Use default case for all relocations that
need nothing done here.
(elf_xtensa_do_reloc): Compute self_address for all relocation types.
Handle R_XTENSA_32_PCREL.
(elf_xtensa_relocate_section): Check for R_XTENSA_32_PCREL for dynamic
symbols.
(check_section_ebb_pcrels_fit): Ignore R_XTENSA_32_PCREL relocations.

gas/
* config/tc-xtensa.c (O_pcrel): Define.
(suffix_relocs): Add pcrel suffix.
(md_pseudo_table): Add 4byte and 2byte directives.
(xtensa_elf_cons): Pass correct pcrel argument to fix_new_exp.
(xg_assemble_literal): Likewise.  Check for O_pcrel.
(expression_maybe_register): Reorganize.  Handle BFD_RELOC_32_PCREL.
(xg_valid_literal_expression): Allow O_pcrel.
(md_pcrel_from, md_apply_fix): Handle BFD_RELOC_32_PCREL.
(tc_gen_reloc): Fix punctuation in error message.

gas/testsuite/
* gas/xtensa/all.exp: Run new pcrel test.
* gas/xtensa/err-pcrel.s: New.
* gas/xtensa/pcrel.d: New.
* gas/xtensa/pcrel.s: New.
* gas/xtensa/xtensa-err.exp: New.

16 years ago* mips-tdep.c (extended_offset): Fix a comment.
Maciej W. Rozycki [Fri, 7 Dec 2007 15:07:12 +0000 (15:07 +0000)]
* mips-tdep.c (extended_offset): Fix a comment.

16 years ago* target.c (update_current_target): Inherit to_log_command.
Maciej W. Rozycki [Fri, 7 Dec 2007 15:02:12 +0000 (15:02 +0000)]
* target.c (update_current_target): Inherit to_log_command.
* target.h (struct target_ops). Add to_log_command.
(target_log_command): New macro.
* top.c (execute_command): Call target_log_command() rather than
serial_log_command().
* monitor.c (init_base_monitor_ops): Initialize to_log_command.
* remote-m32r-sdi.c (init_m32r_ops): Likewise.
* remote-mips.c (_initialize_remote_mips): Likewise.
* remote.c (init_remote_ops): Likewise.

16 years ago * server.c (myresume): Add own_buf argument.
Daniel Jacobowitz [Fri, 7 Dec 2007 14:00:37 +0000 (14:00 +0000)]
* server.c (myresume): Add own_buf argument.
(main): Update calls.

16 years ago * linux-low.c (linux_wait, linux_resume): Do not handle async I/O.
Daniel Jacobowitz [Fri, 7 Dec 2007 01:41:29 +0000 (01:41 +0000)]
* linux-low.c (linux_wait, linux_resume): Do not handle async I/O.
* remote-utils.c (remote_open): Do not call disable_async_io.
(block_async_io): Delete.
(unblock_async_io): Make static.
(initialize_async_io): New.
* server.c (handle_v_cont): Handle async I/O here.
(myresume): Likewise.  Move other common resume tasks here...
(main): ... from here.  Call initialize_async_io.  Disable async
I/O before the main loop.
* server.h (initialize_async_io): Declare.
(block_async_io, unblock_async_io): Delete prototypes.
* spu-low.c (spu_resume, spu_wait): Do not handle async I/O here.

16 years ago * infrun.c (init_wait_for_inferior): Reset target_last_wait_ptid.
Daniel Jacobowitz [Fri, 7 Dec 2007 00:44:27 +0000 (00:44 +0000)]
* infrun.c (init_wait_for_inferior): Reset target_last_wait_ptid.
(handle_inferior_event): Clear stop_stack_dummy earlier.

16 years ago*** empty log message ***
gdbadmin [Fri, 7 Dec 2007 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

16 years ago * addrmap.c (addrmap_splay_tree_remove): New function.
Jim Blandy [Thu, 6 Dec 2007 23:37:35 +0000 (23:37 +0000)]
* addrmap.c (addrmap_splay_tree_remove): New function.
(addrmap_mutable_set_empty): Use it.

16 years agodaily update
Alan Modra [Thu, 6 Dec 2007 23:00:06 +0000 (23:00 +0000)]
daily update

16 years agoconfig/
Richard Sandiford [Thu, 6 Dec 2007 17:44:07 +0000 (17:44 +0000)]
config/
* mt-sde (CFLAGS_FOR_TARGET, CXXFLAGS_FOR_TARGET): Use +=, not =.
* mt-mips-elfoabi: Likewise.

16 years ago* addrmap.c, addrmap.h: Update to GPLv3.
Jim Blandy [Thu, 6 Dec 2007 17:26:03 +0000 (17:26 +0000)]
* addrmap.c, addrmap.h: Update to GPLv3.

* addrmap.c (struct addrmap): Make the referenced function table
const.
(addrmap_fixed_funcs, addrmap_mutable_funcs): Declare const.
Don't use designated initializers.

* addrmap.c (addrmap_fixed_create_fixed, addrmap_mutable_find)
(addrmap_mutable_relocate): Use internal_error, not abort.

16 years ago* NEWS: Mention support for non-contiguous lexical blocks and
Jim Blandy [Thu, 6 Dec 2007 17:07:15 +0000 (17:07 +0000)]
* NEWS: Mention support for non-contiguous lexical blocks and
function bodies.

16 years ago * gdbarch.sh (stab_reg_to_regnum, dwarf_reg_to_regnum)
Markus Deuling [Thu, 6 Dec 2007 16:33:00 +0000 (16:33 +0000)]
* gdbarch.sh (stab_reg_to_regnum, dwarf_reg_to_regnum)
( dwarf2_reg_to_regnum, sdb_reg_to_regnum, ecoff_reg_to_regnum): Add
gdbarch as parameter.
* gdbarch.{c,h}: Regenerate.

* xtensa-tdep.c (xtensa_reg_to_regnum): Add gdbarch as parameter.
Replace current_gdbarch by gdbarch.
* s390-tdep.c (s390_dwarf_reg_to_regnum): Likewise.
* rs6000-tdep.c (rs6000_stab_reg_to_regnum)
(rs6000_dwarf2_reg_to_regnum): Likewise.
* mips-tdep.c (mips_stab_reg_to_regnum)
(mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
* mep-tdep.c (mep_debug_reg_to_regnum): Likewise.
* m32c-tdep.c (m32c_debug_info_reg_to_regnum): Likewise.
* i386-tdep.c (i386_dbx_reg_to_regnum)
(i386_svr4_reg_to_regnum): Likewise
* h8300-tdep.c (h8300s_dbg_reg_to_regnum)
(h8300_dbg_reg_to_regnum): Likewise.
* amd64-tdep.c (amd64_dwarf_reg_to_regnum): Likewise.
* arch-utils.c (no_op_reg_to_regnum): Likewise.
* arch-utils.h (no_op_reg_to_regnum): Likewise.
* arm-tdep.c (arm_dwarf_reg_to_regnum): Likewise.
* cris-tdep.c (cris_dwarf2_reg_to_regnum): Likewise.
* hppa-tdep.c (hppa64_dwarf_reg_to_regnum): Likewise.
* ia64-tdep.c (ia64_dwarf_reg_to_regnum): Likewise.
* m68k-tdep.c (m68k_dwarf_reg_to_regnum): Likewise.

16 years ago2007-12-06 Mick Davis <mickd@goanna.iinet.net.au>
Daniel Jacobowitz [Thu, 6 Dec 2007 14:21:26 +0000 (14:21 +0000)]
2007-12-06  Mick Davis  <mickd@goanna.iinet.net.au>

* remote-utils.c (readchar): Allow binary data in received messages.

16 years ago Localize infrun use of remove_breakpoints.
Vladimir Prus [Thu, 6 Dec 2007 13:47:56 +0000 (13:47 +0000)]
Localize infrun use of remove_breakpoints.
* infrun.c (handle_inferior_event): Remove
calls to remove_breakpoints, except where needed to
communicate change of breakpoint locations to inferior.
(keep_going): If steppping over breakpoint, remove
breakpoints.

16 years ago Clarify infrun variable naming.
Vladimir Prus [Thu, 6 Dec 2007 12:57:51 +0000 (12:57 +0000)]
Clarify infrun variable naming.
* infrun.c (trap_expected): Rename
to stepping_over_breakpoint.  Document.
(stepping_past_breakpoint): Remove.
(stepping_past_breakpoint_ptdi): Renamed
to deferred_step_ptid.
(struct execution_control_state): Rename
the another_trap field to stepping_over_breakpoint.
(struct inferior_status): Rename the trap_expected
field to stepping_over_breakpoint.
(clear_proceed_status, proceed)
(init_execution_control_state, context_switch)
(handle_inferior_event, currently_stepping)
(keep_going, save_inferior_status)
(restore_inferior_status, prepare_to_proceed): Adjust.
* gdbthread.h (struct thread_info): Rename the
trap_expected field to stepping_over_breakpoint.
* thread.c (load_infrun_state, save_infrun_state):
Adjust.

16 years ago2007-12-06 Pierre Muller <muller@ics.u-strasbg.fr>
Pierre Muller [Thu, 6 Dec 2007 11:17:03 +0000 (11:17 +0000)]
2007-12-06  Pierre Muller  <muller@ics.u-strasbg.fr>

* win32-nat.c: Allow compilation if CORE_ADDR is 8 byte long.
Add "gdb_stdint.h" dependency required for uintptr_t type use.
(handle_output_debug_string): Use uintptr_t typecast.
(handle_exception): Ditto.
(win32_xfer_memory): Ditto.
* Makefile.in (win32-nat.o): Add dependency to gdb_stdint header.

16 years ago*** empty log message ***
gdbadmin [Thu, 6 Dec 2007 00:00:04 +0000 (00:00 +0000)]
*** empty log message ***

16 years agodaily update
Alan Modra [Wed, 5 Dec 2007 23:00:06 +0000 (23:00 +0000)]
daily update

16 years ago * elf32-spu.c (spu_elf_size_stubs): Do consider branches to
Alan Modra [Wed, 5 Dec 2007 03:29:20 +0000 (03:29 +0000)]
* elf32-spu.c (spu_elf_size_stubs): Do consider branches to
non-function symbols for overlay stubs.

16 years ago * config.sub, config.guess: Update from upstream sources.
Ben Elliston [Wed, 5 Dec 2007 03:27:21 +0000 (03:27 +0000)]
* config.sub, config.guess: Update from upstream sources.

16 years ago*** empty log message ***
gdbadmin [Wed, 5 Dec 2007 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

16 years agoSupport lexical blocks and function bodies that occupy
Jim Blandy [Tue, 4 Dec 2007 23:43:57 +0000 (23:43 +0000)]
Support lexical blocks and function bodies that occupy
non-contiguous address ranges.
* addrmap.c, addrmap.h: New files.
* block.h (struct addrmap): New forward declaration.
(struct blockvector): New member, 'map'.
(BLOCKVECTOR_MAP): New accessor macro.
* block.c: #include "addrmap.h"
(blockvector_for_pc_sect): If the blockvector we've found has
an address map, use it instead of searching the blocks.
* buildsym.c: #include "addrmap.h"
(pending_addrmap_obstack, pending_addrmap_interesting): New static
variables.
(really_free_pendings): If we have a pending addrmap, free it too.
(record_block_range): New function.
(make_blockvector): If we have an interesting pending addrmap,
record it in the new blockvector.
(start_symtab, buildsym_init): Assert that there is no pending
addrmap now; we should have cleaned up any addrmaps we'd built
previously.
(end_symtab): If there is a pending addrmap left over that didn't
get included in the blockvector, free it.
* buildsym.h (struct addrmap): New forward declaration.
(record_block_range): New prototype.
* objfiles.c: #include "addrmap.h".
(objfile_relocate): Relocate the blockvector's address map, if
present.
* dwarf2read.c (dwarf2_record_block_ranges): New function.
(read_func_scope, read_lexical_block_scope): Call it.
* Makefile.in (SFILES): Add addrmap.c.
(addrmap_h): New header dependency variable.
(COMMON_OBS): Add addrmap.o.
(addrmap.o): New rule.l
(block.o, objfiles.o, buildsym.o): Depend on $(addrmap_h).

* block.c (blockvector_for_pc, blockvector_for_pc_sect): Return a
pointer to the block, not its index in the blockvector.
(block_for_pc_sect): Use the returned block, instead of looking it
up ourselves.
* block.h (blockvector_for_pc, blockvector_for_pc_sect): Update
declarations.
* breakpoint.c (resolve_sal_pc): Use returned block, instead of
looking it up ourselves.
* stack.c (print_frame_label_vars): Disable function, which
depends on the block's index.

* buildsym.c (finish_block): Return the block we've built.
* buildsym.h (finish_block): Update prototype.

* defs.h (CORE_ADDR_MAX): New constant.

16 years ago * coffread.c (decode_type): Use builtin_type_int32 instead
Ulrich Weigand [Tue, 4 Dec 2007 23:33:00 +0000 (23:33 +0000)]
* coffread.c (decode_type): Use builtin_type_int32 instead
of FT_INTEGER fundamental type for array range index type.
(decode_base_type): Use builtin types of current_gdbarch
instead of fundamental types.

* dwarf2read.c (struct dwarf2_cu): Remove ftypes member.
(read_file_scope): Do not initialize ftypes member.
(dwarf_base_type, dwarf2_fundamental_types): Remove functions.
(read_array_type): Use builtin_type_int32 instead of FT_INTEGER
fundamental type for array range index type.
(read_tag_string_type): Likewise for string range index type.
Also, do not overwrite FT_CHAR type with new string type.
(read_base_type): If DW_AT_name is missing, create unnamed type
with given properties instead of looking for a fundamental type.
Create new types as TYPE_TARGET_TYPE for DW_ATE_address and
DW_ATE_complex_float types.
(read_subrange_type): Create new type to represent missing
DW_AT_type instead of looking for a fundamental type.
(die_type): Use builtin type to represent "void" instead of
looking for a fundamental type.

* stabsread.c (define_symbol): Use builtin types to represent
'r' and 'i' floating-point and integer constants.

* gdbtypes.c (lookup_fundamental_type): Remove.
* gdbtypes.h (lookup_fundamental_type): Remove prototype.
(FT_VOID, FT_BOOLEAN, FT_CHAR, FT_SIGNED_CHAR, FT_UNSIGNED_CHAR,
FT_SHORT, FT_SIGNED_SHORT, FT_UNSIGNED_SHORT, FT_INTEGER,
FT_SIGNED_INTEGER, FT_UNSIGNED_INTEGER, FT_LONG, FT_SIGNED_LONG,
FT_UNSIGNED_LONG, FT_LONG_LONG, FT_SIGNED_LONG_LONG,
FT_UNSIGNED_LONG_LONG, FT_FLOAT, FT_DBL_PREC_FLOAT, FT_EXT_PREC_FLOAT,
FT_COMPLEX, FT_DBL_PREC_COMPLEX, FT_EXT_PREC_COMPLEX, FT_STRING,
FT_FIXED_DECIMAL, FT_FLOAT_DECIMAL, FT_BYTE, FT_UNSIGNED_BYTE,
FT_TEMPLATE_ARG, FT_DECFLOAT, FT_DBL_PREC_DECFLOAT,
FT_EXT_PREC_DECFLOAT, FT_NUM_MEMBERS): Remove macros.
* objfiles.c (struct objfile): Remove fundamental_types member.
* symfile.c (reread_symbols): Do not clear fundamental_types.

* language.h (struct language_defn): Remove la_fund_type member.
(create_fundamental_type): Remove.
* language.c (unk_lang_create_fundamental_type): Remove.
(unknown_language_defn, auto_language_defn,
local_language_defn): Adapt initializer.
* ada-lang.c (ada_create_fundamental_type): Remove.
(ada_language_defn): Adapt initializer.
* c-lang.h (c_create_fundamental_type): Remove prototype.
* c-lang.c (c_create_fundamental_type): Remove.
(c_language_defn, cplus_language_defn, asm_language_defn,
minimal_language_defn): Adapt initializer.
* f-lang.c (f_create_fundamental_type): Remove.
(f_language_defn): Adapt initializer.
* jv-lang.c (java_create_fundamental_type): Remove.
(java_language_defn): Adapt initializer.
* m2-lang.c (m2_create_fundamental_type): Remove.
(m2_language_defn): Adapt initializer.
* objc-lang.c (objc_create_fundamental_type): Remove.
(objc_language_defn): Adapt initializer.
* p-lang.h (pascal_create_fundamental_type): Remove prototype.
* p-lang.c (pascal_create_fundamental_type): Remove.
(pascal_language_defn): Adapt initializer.
* scm-lang.c (scm_language_defn): Adapt initializer.

16 years agodaily update
Alan Modra [Tue, 4 Dec 2007 23:00:05 +0000 (23:00 +0000)]
daily update

16 years ago2007-11-26 Thiago Jung Bauermann <bauerman@br.ibm.com>
Ben Elliston [Tue, 4 Dec 2007 22:54:32 +0000 (22:54 +0000)]
2007-11-26  Thiago Jung Bauermann  <bauerman@br.ibm.com>

* Makefile.in (decimal32.o): Prepend $(srcdir) to dependencies
and substitute $< for the source file in compilation command.
(decimal64.o): Likewise.
(decimal128.o): Likewise.
(bid2dpd_dpd2bid.o): Likewise.
(host-ieee32.o): Likewise.
(host-ieee64.o): Likewise.
(host-ieee128.o): Likewise.

16 years ago * elf32-xtensa.c (elf_xtensa_size_dynamic_sections): Create DT_PLTGOT
Bob Wilson [Tue, 4 Dec 2007 22:41:59 +0000 (22:41 +0000)]
* elf32-xtensa.c (elf_xtensa_size_dynamic_sections): Create DT_PLTGOT
entry for all dynamic objects.

16 years ago* features/mips-cpu.xml: Specify "regnum" for "r0" explicitly.
Maciej W. Rozycki [Tue, 4 Dec 2007 15:41:46 +0000 (15:41 +0000)]
* features/mips-cpu.xml: Specify "regnum" for "r0" explicitly.
* features/mips64-cpu.xml: Likewise.
* features/mips-fpu.xml: Specify "regnum" for "f0" explicitly.
* features/mips64-fpu.xml: Likewise.
* features/mips-linux.c: Regenerate.
* features/mips64-linux.c: Regenerate.

16 years ago* target.h (target_find_new_threads): Fix definition.
Maciej W. Rozycki [Tue, 4 Dec 2007 14:15:01 +0000 (14:15 +0000)]
* target.h (target_find_new_threads): Fix definition.

16 years ago * elf32-spu.c (spu_elf_size_stubs): Correct section alignment.
Alan Modra [Tue, 4 Dec 2007 03:29:43 +0000 (03:29 +0000)]
* elf32-spu.c (spu_elf_size_stubs): Correct section alignment.

16 years ago*** empty log message ***
gdbadmin [Tue, 4 Dec 2007 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

16 years agodaily update
Alan Modra [Mon, 3 Dec 2007 23:00:05 +0000 (23:00 +0000)]
daily update

16 years ago * win32-low.c (attaching): New global.
Pedro Alves [Mon, 3 Dec 2007 01:42:06 +0000 (01:42 +0000)]
* win32-low.c (attaching): New global.
(win32_create_inferior): Clear the `attaching' global.
(win32_attach): Set the `attaching' global.
(get_child_debug_event) [_WIN32_WCE]: Stop the inferior when
attaching.  Only set a breakpoint at the entry point if not
attaching.

16 years ago * server.c (main): Don't report dll events on the initial
Pedro Alves [Mon, 3 Dec 2007 01:38:09 +0000 (01:38 +0000)]
* server.c (main): Don't report dll events on the initial
connection on attaches.

16 years ago * server.c (main): Relax numerical bases supported for the pid of
Pedro Alves [Mon, 3 Dec 2007 01:34:09 +0000 (01:34 +0000)]
* server.c (main): Relax numerical bases supported for the pid of
the --attach command line argument.

16 years ago * win32-low.c (win32_attach): Call OpenProcess before
Pedro Alves [Mon, 3 Dec 2007 01:30:59 +0000 (01:30 +0000)]
* win32-low.c (win32_attach): Call OpenProcess before
DebugActiveProcess, not after.  Add last error output to error
call.

16 years ago * win32-low.c (win32_get_thread_context)
Pedro Alves [Mon, 3 Dec 2007 01:27:19 +0000 (01:27 +0000)]
* win32-low.c (win32_get_thread_context)
(win32_set_thread_context): New functions.
(thread_rec): Use win32_get_thread_context.
(continue_one_thread, win32_resume): Use win32_set_thread_context.
* win32-low.h (win32_thread_info) [_WIN32_WCE]: Add `base_context'
field.

16 years ago * win32-low.c (soft_interrupt_requested, faked_breakpoint): New
Pedro Alves [Mon, 3 Dec 2007 01:18:49 +0000 (01:18 +0000)]
* win32-low.c (soft_interrupt_requested, faked_breakpoint): New
global variables.
(child_add_thread): Minor cleanup.
(child_continue): Resume artificially suspended threads before
calling ContinueDebugEvent.
(suspend_one_thread): New.
(fake_breakpoint_event): New.
(get_child_debug_event): Change return type to int.  Check here if
gdb sent an interrupt request.  If a soft interrupt was requested,
fake a breakpoint event.  Return 0 if there is no event to handle,
and 1 otherwise.
(win32_wait): Don't check here if gdb sent an interrupt request.
Ensure there is a valid event to handle.
(win32_request_interrupt): Add soft interruption method as last
resort.

16 years ago * win32-low.h (win32_thread_info): Add descriptions to the
Pedro Alves [Mon, 3 Dec 2007 01:10:30 +0000 (01:10 +0000)]
* win32-low.h (win32_thread_info): Add descriptions to the
structure members.  Replace `suspend_count' counter by a
`suspended' flag.
* win32-low.c (thread_rec): Update condition of when to get the
context from the inferior.  Rely on ContextFlags being set if it
has already been retrieved.  Only suspend the inferior thread if
we haven't already.  Warn if that fails.
(continue_one_thread): s/suspend_count/suspended/.  Only call
ResumeThread once.  Warn if that fails.

16 years ago*** empty log message ***
gdbadmin [Mon, 3 Dec 2007 00:00:32 +0000 (00:00 +0000)]
*** empty log message ***

16 years ago * win32-low.c (win32_wait): Don't read from the inferior when it
Pedro Alves [Sun, 2 Dec 2007 23:40:17 +0000 (23:40 +0000)]
* win32-low.c (win32_wait): Don't read from the inferior when it
has already exited.

16 years ago * Makefile.in (win32_low_h): New variable.
Pedro Alves [Sun, 2 Dec 2007 23:33:26 +0000 (23:33 +0000)]
* Makefile.in (win32_low_h): New variable.
(win32-low.o): Add dependency on $(win32_low_h).
(win32-arm-low.o, win32-i386-low.o): New rules.

16 years agodaily update
Alan Modra [Sun, 2 Dec 2007 23:00:05 +0000 (23:00 +0000)]
daily update

16 years ago2007-12-02 Pierre Muller <muller@ics.u-strasbg.fr>
Pierre Muller [Sun, 2 Dec 2007 21:32:46 +0000 (21:32 +0000)]
2007-12-02  Pierre Muller  <muller@ics.u-strasbg.fr>

* win32-nat.c (win32_resume): Set the trace bit
in the thread identified by inferior_ptid.

16 years ago*win32-nat.c (open_process_used): New static variable.
Christopher Faylor [Sun, 2 Dec 2007 05:45:08 +0000 (05:45 +0000)]
*win32-nat.c (open_process_used): New static variable.
(win32_init_thread_list): Remove call to CloseHandle for thread.
(win32_delete_thread): Ditto.
(fake_create_process): Set open_process_used if OpenProcess call is successful.
(get_win32_debug_event): Do not close process handle.
(do_initial_win32_stuff): Set open_process_used to zero.
(win32_mourn_inferior): Call CloseHandle for current_process_handle if
open_process_used is set.
(win32_kill_inferior): Do not close process and main_thread handles.

16 years ago*** empty log message ***
gdbadmin [Sun, 2 Dec 2007 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

16 years agodaily update
Alan Modra [Sat, 1 Dec 2007 23:00:05 +0000 (23:00 +0000)]
daily update

16 years ago * hostio.c: Correct copyright year.
Daniel Jacobowitz [Sat, 1 Dec 2007 05:00:04 +0000 (05:00 +0000)]
* hostio.c: Correct copyright year.

16 years ago*** empty log message ***
gdbadmin [Sat, 1 Dec 2007 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

16 years agodaily update
Alan Modra [Fri, 30 Nov 2007 23:00:06 +0000 (23:00 +0000)]
daily update

16 years ago * remote.c (remote_cmdlist): New variable.
Daniel Jacobowitz [Fri, 30 Nov 2007 21:50:19 +0000 (21:50 +0000)]
* remote.c (remote_cmdlist): New variable.
(PACKET_vFile_open, PACKET_vFile_pread, PACKET_vFile_pwrite)
(PACKET_vFile_close, PACKET_vFile_unlink): New constants.
(remote_buffer_add_string, remote_buffer_add_bytes)
(remote_buffer_add_int, remote_hostio_parse_result)
(remote_hostio_send_command, remote_hostio_open, remote_hostio_pwrite)
(remote_hostio_pread, remote_hostio_close, remote_hostio_unlink)
(remote_fileio_errno_to_host, remote_hostio_error, fclose_cleanup)
(remote_hostio_close_cleanup, remote_file_put, remote_file_get)
(remote_file_delete, remote_put_command, remote_get_command)
(remote_delete_command, remote_command): New functions.
(_initialize_remote): Register new packets and commands.
* Makefile.in (gdb_fileio_h): New variable.
(remote.o): Update.
(SUBDIR_MI_OBS): Add mi-cmd-target.o.
(SUBDIR_MI_SRCS): Add mi/mi-cmd-target.c.
(mi-cmd-target.o): New rule.
* mi/mi-cmd-target.c: New file.
* mi/mi-cmds.c (mi_cmds): Add target-file-delete, target-file-get,
and target-file-put.
* mi/mi-cmds.h (mi_cmd_target_file_get, mi_cmd_target_file_put)
(mi_cmd_target_file_delete): Declare.
* remote.h (remote_file_put, remote_file_get, remote_file_delete):
Declare.
* NEWS: Describe new file transfer support.

* gdb.texinfo (Debugging Programs with Multiple Processes): Correct
formatting.
(Remote Debugging): Add File Transfer section.
(Remote Configuration): Document Host I/O packets.
(GDB/MI): Add GDB/MI File Transfer Commands section.
(Remote Protocol): Add Host I/O Packets section.
(Packets): Add vFile.

* Makefile.in (OBS): Add hostio.o.
(hostio.o): New rule.
* server.h (handle_vFile): Declare.
* hostio.c: New file.
* server.c (handle_v_requests): Take packet_len and new_packet_len
for binary packets.  Call handle_vFile.
(main): Update call to handle_v_requests.

* gdb.server/file-transfer.exp, gdb.server/transfer.txt,
gdb.mi/mi-file-transfer.exp: New.

16 years ago * infrun.c (handle_inferior_event): Don't
Vladimir Prus [Fri, 30 Nov 2007 10:03:16 +0000 (10:03 +0000)]
* infrun.c (handle_inferior_event): Don't
        ignore beakpoints if trap_expected is set.

16 years ago Make insert_breakpoints return void.
Vladimir Prus [Fri, 30 Nov 2007 10:00:26 +0000 (10:00 +0000)]
Make insert_breakpoints return void.
* breakpoint.h (insert_breakpoints): Change
return type to void.
* breakpoint.c (insert_breakpoints): Change
return type to void.  Rename local return_val
variable to error.
* infrun.c (keep_going): Instead of checking
return value from insert_breakpoints, catch exception.

16 years agobfd/
Richard Sandiford [Fri, 30 Nov 2007 09:01:35 +0000 (09:01 +0000)]
bfd/
* elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Use the
ELF header to choose between 32-bit and 64-bit relocation structures.

16 years ago*** empty log message ***
gdbadmin [Fri, 30 Nov 2007 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

16 years agodaily update
Alan Modra [Thu, 29 Nov 2007 23:00:05 +0000 (23:00 +0000)]
daily update

16 years ago2007-11-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
Paolo Bonzini [Thu, 29 Nov 2007 15:36:39 +0000 (15:36 +0000)]
2007-11-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>

        * config-ml.in: Robustify against white space in absolute file
        names.

16 years ago bfd/
Mark Shinwell [Thu, 29 Nov 2007 12:23:44 +0000 (12:23 +0000)]
bfd/
* archures.c (bfd_mach_mips_loongson_2e): New.
(bfd_mach_mips_loongson_2f): New.
* bfd-in2.h (bfd_mach_mips_loongson_2e): New.
(bfd_mach_mips_loongson_2f): New.
* cpu-mips.c: Add I_loongson_2e and I_loongson_2f to
anonymous enum.
(arch_info_struct): Add Loongson-2E and Loongson-2F entries.
* elfxx-mips.c (_bfd_elf_mips_mach): Handle Loongson-2E
and Loongson-2F flags.
(mips_set_isa_flags): Likewise.
(mips_mach_extensions): Add Loongson-2E and Loongson-2F
entries.

binutils/
* readelf.c (get_machine_flags): Handle Loongson-2E and -2F
flags.

gas/
* config/tc-mips.c (mips_cpu_info_table): Add loongson2e
and loongson2f entries.
* doc/c-mips.texi: Document -march=loongson{2e,2f} options.

gas/testsuite/
* gas/mips/mips.exp: Add loongson-2e and -2f tests.
* gas/mips/loongson-2e.d: New.
* gas/mips/loongson-2e.s: New.
* gas/mips/loongson-2f.d: New.
* gas/mips/loongson-2f.s: New.

include/elf/
* mips.h (E_MIPS_MACH_LS2E): New.
(E_MIPS_MACH_LS2F): New.

include/opcode/
* mips.h (INSN_LOONGSON_2E): New.
(INSN_LOONGSON_2F): New.
(CPU_LOONGSON_2E): New.
(CPU_LOONGSON_2F): New.
(OPCODE_IS_MEMBER): Update for Loongson-2E and -2F flags.

opcodes/
* mips-dis.c (mips_arch_choices): Add Loongson-2E and -2F
entries.
* mips-opc.c (IL2E): New.
(IL2F): New.
(mips_builtin_opcodes): Add Loongson-2E and -2F instructions.
Allow movz and movn for Loongson-2E and -2F.  Add movnz entry.
Move coprocessor encodings to the end of the table.  Allow
certain MIPS V .ps instructions on the Loongson-2E and -2F.

16 years ago include/opcode/
Mark Shinwell [Thu, 29 Nov 2007 11:55:19 +0000 (11:55 +0000)]
include/opcode/
* mips.h (INSN_ISA*): Redefine certain values as an
enumeration.  Update comments.
(mips_isa_table): New.
(ISA_MIPS*): Redefine to match enumeration.
(OPCODE_IS_MEMBER): Modify to correctly test new INSN_ISA*
values.

opcodes/
* mips-opc.c (I3_32, I3_33, I4_32, I4_33, I5_33): New.
(mips_builtin_opcodes): Use these new I* values.

16 years agoPR ld/5398
Nick Clifton [Thu, 29 Nov 2007 08:14:22 +0000 (08:14 +0000)]
PR ld/5398
* elf32-arm.c (bfd_elf32_arm_process_before_allocation): Do not complain if
  there is no glue bfd, just return.

16 years ago Stop infrun from tracking breakpoint insertion status.
Vladimir Prus [Thu, 29 Nov 2007 07:48:21 +0000 (07:48 +0000)]
Stop infrun from tracking breakpoint insertion status.

The checks of breakpoints_inserted before calling
remove_breakpoints are removed, as remove_breakpoint
won't touch uninserted breakpoints. In a number of places,
we're interested if a breakpoint is inserted at particular
PC, and we now use breakpoint_inserted_here_p.  In a few
places, insert_breakpoints can be called unconditionally,
since it won't try to insert already inserted breakpoint.

* breakpoint.h (regular_breakpoint_inserted_here_p): New
declaration.
* breakpoint.c (regular_breakpoint_inserted_here_p): New.
(breakpoint_inserted_here_p): Use
regular_breakpoint_inserted_here_p.
* infrun.c (breakpoints_inserted): Remove.
(resume): Don't check for breakpoints_inserted before
remove_hw_watchpoints. Use breakpoint_inserted_here_p.
(proceed, init_wait_for_inferior): Don't set breakpoints_inserted.
(handle_inferior_event): Don't use breakpoints_inserted.
Use breakpoints_meant_to_be_inserted and
breakpoints_inserted_here_p.
(insert_step_resume_breakpoint_at_sal, keep_going): Use
breakpoints_meant_to_be_inserted. Don't set breakpoints_inserted.
(normal_stop): Don't check for breakpoints_inserted.  Don't
set breakpoints_inserted.
(keep_going): Don't check for breakpoints_inserted.
(insert_step_resume_breakpoint_at_sal): Don't insert
breakpoints

16 years ago*** empty log message ***
gdbadmin [Thu, 29 Nov 2007 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

16 years agodaily update
Alan Modra [Wed, 28 Nov 2007 23:00:05 +0000 (23:00 +0000)]
daily update

16 years ago* breakpoint.c (watch_command_1): When the watchpoint isn't local
Jim Blandy [Wed, 28 Nov 2007 18:21:30 +0000 (18:21 +0000)]
* breakpoint.c (watch_command_1): When the watchpoint isn't local
to any frame, initialize watchpoint_frame using null_frame_id, not
a memset.

16 years ago * internal.h (ELF_IS_SECTION_IN_SEGMENT): Adjust to cope with
Nathan Sidwell [Wed, 28 Nov 2007 13:53:05 +0000 (13:53 +0000)]
* internal.h (ELF_IS_SECTION_IN_SEGMENT): Adjust to cope with
segments at the end of memory.

16 years ago* elf-m10300.c (mn10300_elf_relax_section): Extend previous fix to cover forward...
Nick Clifton [Wed, 28 Nov 2007 13:04:17 +0000 (13:04 +0000)]
* elf-m10300.c (mn10300_elf_relax_section): Extend previous fix to cover forward jumps.
* ld-mn10300/i135409-5.s: New test case.  Check for relaxation to a 16-bit backward jump instruction.
* ld-mn10300/i135409-5.t: Linker script for the new test.
* ld-mn10300/i135409-5.d: Expected disassembly of new test.
* ld-mn10300/mn10300.exp: Run the new test.

16 years ago * infrun.c (resume): Set right thread even if
Vladimir Prus [Wed, 28 Nov 2007 12:49:55 +0000 (12:49 +0000)]
* infrun.c (resume): Set right thread even if
stepping over breakpoint using software single step.

16 years ago*** empty log message ***
gdbadmin [Wed, 28 Nov 2007 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

16 years ago(print_varobj): Revert change from 2007-08-31.
Nick Roberts [Tue, 27 Nov 2007 23:02:59 +0000 (23:02 +0000)]
(print_varobj): Revert change from 2007-08-31.
(mi_print_value_p): Guard against type = NULL.

16 years ago*** empty log message ***
Nick Roberts [Tue, 27 Nov 2007 23:02:31 +0000 (23:02 +0000)]
*** empty log message ***

16 years agodaily update
Alan Modra [Tue, 27 Nov 2007 23:00:05 +0000 (23:00 +0000)]
daily update

16 years ago * dfp.c (decimal_from_string): Remove superfluous newline from
Thiago Jung Bauermann [Tue, 27 Nov 2007 20:13:12 +0000 (20:13 +0000)]
* dfp.c (decimal_from_string): Remove superfluous newline from
error string.
(decimal_to_string): Likewise.
* printcmd.c (printf_command): Change string buffer to use
MAX_DECIMAL_STRING constant.
* value.c (value_from_decfloat): Likewise.

16 years ago * Makefile.in (ALL_TARGET_OBS): Remove object files that require
Ulrich Weigand [Tue, 27 Nov 2007 17:06:12 +0000 (17:06 +0000)]
* Makefile.in (ALL_TARGET_OBS): Remove object files that require
64-bit CORE_ADDR and BFD support, move them to ...
(ALL_64_TARGET_OBS): ... this new variable.
* configure.ac: Check for --enable-64-bit-bfd option.  Only add
64-bit targets with --enable-targets=all if BFD supports 64-bit.
* configure: Regenerate.

* i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Do not claim
all elf32-i386 executables, only cygwin core files.

16 years ago2007-11-27 Andreas Krebbel <krebbel1@de.ibm.com>
Andreas Krebbel [Tue, 27 Nov 2007 15:33:28 +0000 (15:33 +0000)]
2007-11-27  Andreas Krebbel  <krebbel1@de.ibm.com>

* s390-opc.txt ("tcet", "tcdt", "tcxt", "tget", "tgdt",
"tgxt"): Removed.
("tdcet", "tdcdt", "tdcxt", "tdget", "tdgdt", "tdgxt"): Added.

16 years ago2007-11-27 Andreas Krebbel <krebbel1@de.ibm.com>
Andreas Krebbel [Tue, 27 Nov 2007 15:31:57 +0000 (15:31 +0000)]
2007-11-27  Andreas Krebbel  <krebbel1@de.ibm.com>

* s390-opc.txt ("tcet", "tcdt", "tcxt", "tget", "tgdt",
"tgxt"): Removed.
("tdcet", "tdcdt", "tdcxt", "tdget", "tdgdt", "tdgxt"): Added.

2007-11-27  Andreas Krebbel  <krebbel1@de.ibm.com>

* gas/s390/zarch-z9-ec.d: ("tcet", "tcdt", "tcxt", "tget",
"tgdt", "tgxt"): Removed.
        ("tdcet", "tdcdt", "tdcxt", "tdget", "tdgdt", "tdgxt"): Added.
* gas/s390/zarch-z9-ec.s: Likewise.