external/binutils.git
16 years agoFrom Craig Silverstein: Better handling of ODR violations which are
Ian Lance Taylor [Wed, 28 Nov 2007 18:01:06 +0000 (18:01 +0000)]
From Craig Silverstein: Better handling of ODR violations which are
not in a function.

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:18 +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:59 +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.

16 years agoRework merge_map for speed.
Ian Lance Taylor [Tue, 27 Nov 2007 06:13:33 +0000 (06:13 +0000)]
Rework merge_map for speed.

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

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

16 years ago * cxxfilt.c (demangle_it): Don't call printf without format string.
Alan Modra [Mon, 26 Nov 2007 01:53:59 +0000 (01:53 +0000)]
* cxxfilt.c (demangle_it): Don't call printf without format string.

16 years ago * config/tc-alpha.c (assemble_insn): Don't segv on NULL reloc_operand.
Alan Modra [Mon, 26 Nov 2007 01:43:43 +0000 (01:43 +0000)]
* config/tc-alpha.c (assemble_insn): Don't segv on NULL reloc_operand.

16 years ago*** empty log message ***
gdbadmin [Mon, 26 Nov 2007 00:00:34 +0000 (00:00 +0000)]
*** empty log message ***

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

16 years agogdb/
Jan Kratochvil [Sun, 25 Nov 2007 21:40:39 +0000 (21:40 +0000)]
gdb/
* dwarf2read.c (dwarf2_get_pc_bounds): Moved the `DW_AT_ranges' parsing
code with its variables OBJFILE, CU_HEADER and OBFD into ...
(dwarf2_ranges_read): ... a new function.
(read_partial_die): Implemented the parsing of `DW_AT_ranges'.

gdb/testsuite/
* gdb.dwarf2/dw2-ranges.S, gdb.dwarf2/dw2-ranges.exp: New files.

16 years ago*** empty log message ***
gdbadmin [Sun, 25 Nov 2007 00:00:32 +0000 (00:00 +0000)]
*** empty log message ***

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

16 years ago * win32-nat.c (DR6_CLEAR_VALUE): New define.
Pedro Alves [Sat, 24 Nov 2007 12:13:28 +0000 (12:13 +0000)]
* win32-nat.c (DR6_CLEAR_VALUE): New define.
(thread_info_struct): Rename suspend_count to suspended, to be
used as a flag.
(thread_rec): Only suspend the thread if it wasn't suspended by
gdb before.  Warn if suspending failed.
(win32_add_thread): Set Dr6 to DR6_CLEAR_VALUE.
(win32_continue): Set Dr6 to DR6_CLEAR_VALUE.  Update usage of the
`suspended' flag.  Do ContinueDebugEvent after resuming the
suspended threads, not before.  Set threads' contexts before
resuming them, not after.
(win32_resume): Set Dr6 to DR6_CLEAR_VALUE.

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

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

16 years ago * breakpoint.c (insert_breakpoints)
Vladimir Prus [Fri, 23 Nov 2007 16:54:34 +0000 (16:54 +0000)]
* breakpoint.c (insert_breakpoints)
(insert_bp_location): Remove stale comments.

16 years ago* mips-linux-tdep.h: Fix some formatting.
Maciej W. Rozycki [Fri, 23 Nov 2007 16:33:11 +0000 (16:33 +0000)]
* mips-linux-tdep.h: Fix some formatting.

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

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

16 years ago* gdb.trace/backtrace.exp: Fix a typo.
Maciej W. Rozycki [Thu, 22 Nov 2007 16:03:00 +0000 (16:03 +0000)]
* gdb.trace/backtrace.exp: Fix a typo.
* gdb.trace/circ.exp: Likewise.
* gdb.trace/collection.exp: Likewise.
* gdb.trace/limits.exp: Likewise.
* gdb.trace/report.exp: Likewise.
* gdb.trace/tfind.exp: Likewise.
* gdb.trace/while-dyn.exp: Likewise.

16 years agoMake Merge_key_less operator() inline.
Ian Lance Taylor [Thu, 22 Nov 2007 00:45:46 +0000 (00:45 +0000)]
Make Merge_key_less operator() inline.

16 years agoAdd threading support.
Ian Lance Taylor [Thu, 22 Nov 2007 00:05:51 +0000 (00:05 +0000)]
Add threading support.

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

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

16 years ago * dwarf.c (display_debug_loc): Cast section_end - start to long
Hans-Peter Nilsson [Wed, 21 Nov 2007 17:50:41 +0000 (17:50 +0000)]
* dwarf.c (display_debug_loc): Cast section_end - start to long
for output format.

16 years ago* elf-m10300.c (mn10300_elf_relax_section): Allow for alignment relocs when
Nick Clifton [Wed, 21 Nov 2007 12:06:26 +0000 (12:06 +0000)]
* elf-m10300.c (mn10300_elf_relax_section): Allow for alignment relocs when
   computing whether instructions can be relaxed.
* ld-mn10300/i135409-4.s: New test case.  Check for relaxation to a 16-bit
    jump instruction.
* ld-mn10300/i135409-4.t: Linker script for the new test.
* ld-mn10300/i135409-4.d: Expected disassembly of new test.
* ld-mn10300/mn10300.exp: Run the new test.

16 years ago* dwarf.c (display_debug_loc): Issue a warning if there are bytes at the end
Nick Clifton [Wed, 21 Nov 2007 11:58:00 +0000 (11:58 +0000)]
* dwarf.c (display_debug_loc): Issue a warning if there are bytes at the end
  of the .debug_loc section which are not referenced by any attribute in the
  .debug_info section.

16 years ago2007-11-21 Markus Deuling <deuling@de.ibm.com>
Markus Deuling [Wed, 21 Nov 2007 06:02:53 +0000 (06:02 +0000)]
2007-11-21  Markus Deuling  <deuling@de.ibm.com>

* stack.c (print_args_stub): Use get_frame_arch to get at the current
architecture and replace current_gdbarch.
(frame_info): Likewise.

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

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

16 years agoVariables objects of pointers that can't be dereferenced are now
Nick Roberts [Tue, 20 Nov 2007 20:01:35 +0000 (20:01 +0000)]
Variables objects of pointers that can't be dereferenced are now
"noneditable".

16 years ago*** empty log message ***
Nick Roberts [Tue, 20 Nov 2007 19:59:05 +0000 (19:59 +0000)]
*** empty log message ***

16 years ago(mi_cmd_var_assign): Simplify.
Nick Roberts [Tue, 20 Nov 2007 19:55:16 +0000 (19:55 +0000)]
(mi_cmd_var_assign): Simplify.

16 years agoAdd extern for varobj_editable_p.
Nick Roberts [Tue, 20 Nov 2007 19:54:58 +0000 (19:54 +0000)]
Add extern for varobj_editable_p.

16 years ago(c_variable_editable, cplus_variable_editable)
Nick Roberts [Tue, 20 Nov 2007 19:54:39 +0000 (19:54 +0000)]
(c_variable_editable, cplus_variable_editable)
(java_variable_editable, variable_editable): Delete.
(varobj_editable_p): Replace above functions with one language
independent function.  Check for an lvalue.
(varobj_get_attributes, varobj_set_value): Use varobj_editable_p.
(struct language_specific): Delete variable_editable field.

16 years ago*** empty log message ***
Nick Roberts [Tue, 20 Nov 2007 19:52:41 +0000 (19:52 +0000)]
*** empty log message ***

16 years ago*** empty log message ***
Nick Roberts [Tue, 20 Nov 2007 19:44:19 +0000 (19:44 +0000)]
*** empty log message ***

16 years ago Remove unused breakpoint fields.
Vladimir Prus [Tue, 20 Nov 2007 17:37:35 +0000 (17:37 +0000)]
Remove unused breakpoint fields.
* breakpoint.h (struct breakpoint): Remove
from_tty and flag fields.
* breakpoint.c (break_command_1): Don't set
from_tty and flag field set of breakpoint.
(create_ada_exception_breakpoint): Don't set
the from_tty field.

16 years agooops - omitted from previous delta
Nick Clifton [Tue, 20 Nov 2007 16:58:47 +0000 (16:58 +0000)]
oops - omitted from previous delta

16 years ago* elflink.c (elf_link_output_extsym): Weaken assertion: if --gc-section is set, there...
Nick Clifton [Tue, 20 Nov 2007 15:08:25 +0000 (15:08 +0000)]
* elflink.c (elf_link_output_extsym): Weaken assertion: if --gc-section is set, there may be no TLS segment.
* lib/ld-lib.exp (check_gc_sections_available): New proc, based on the version in gcc/testsuite/lib/target-supports.exp.
* ld-elf/eld.exp: Use check_gc_sections_available.

16 years ago* mips-tdep.c (mips16_scan_prologue): Handle the MIPS16e SAVE
Maciej W. Rozycki [Tue, 20 Nov 2007 13:47:42 +0000 (13:47 +0000)]
* mips-tdep.c (mips16_scan_prologue): Handle the MIPS16e SAVE
instruction.

16 years ago * infrun.c (resume): Clarify logic that
Vladimir Prus [Tue, 20 Nov 2007 08:18:47 +0000 (08:18 +0000)]
* infrun.c (resume): Clarify logic that
decides if a single thread must be resumed. Add
comments.

16 years ago * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
Vladimir Prus [Tue, 20 Nov 2007 08:16:15 +0000 (08:16 +0000)]
* breakpoint.c (disable_breakpoints_in_unloaded_shlib):
Make static.

16 years agoFrom Craig Silverstein: Also set entsize for .debug_str sections.
Ian Lance Taylor [Tue, 20 Nov 2007 04:26:15 +0000 (04:26 +0000)]
From Craig Silverstein: Also set entsize for .debug_str sections.

16 years ago*** empty log message ***
gdbadmin [Tue, 20 Nov 2007 00:00:02 +0000 (00:00 +0000)]
*** empty log message ***

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

16 years agoFrom Craig Silverstein: Force .debug_str sections to be SHF_MERGE and
Ian Lance Taylor [Mon, 19 Nov 2007 22:49:38 +0000 (22:49 +0000)]
From Craig Silverstein: Force .debug_str sections to be SHF_MERGE and
SHF_STRINGS.

16 years ago * config/xtensa-istack.h (tinsn_struct): Replace linenum field
Bob Wilson [Mon, 19 Nov 2007 19:40:55 +0000 (19:40 +0000)]
* config/xtensa-istack.h (tinsn_struct): Replace linenum field
with loc_directive_seen and debug_line.
* config/tc-xtensa.c: Include xtensa-istack.h after dwarf2dbg.h.
(xg_build_to_insn): Copy the new fields instead of linenum.
(xg_build_token_insn): Likewise.  Abort on INSTR_LABEL_DEF and move
common code out of the switch.
(md_assemble): Set new tinsn fields from DWARF information.  Call
dwarf2_consume_line_info.
(xg_assemble_vliw_tokens): Update the code to select the "best" line
number to use new information.  Call dwarf2_gen_line_info instead
of dwarf2_emit_insn.

16 years ago * dwarf2dbg.h (dwarf2_loc_directive_seen): New.
Bob Wilson [Mon, 19 Nov 2007 19:37:18 +0000 (19:37 +0000)]
* dwarf2dbg.h (dwarf2_loc_directive_seen): New.
* dwarf2dbg.c (loc_directive_seen): Make external and rename to...
(dwarf2_loc_directive_seen): ...this.
(dwarf2_emit_insn, dwarf2_consume_line_info)
(dwarf2_emit_label, dwarf2_directive_loc): Use new name.

16 years ago * dwarf2dbg.c (dwarf2_emit_label): Use dwarf2_consume_line_info.
Bob Wilson [Mon, 19 Nov 2007 19:33:23 +0000 (19:33 +0000)]
* dwarf2dbg.c (dwarf2_emit_label): Use dwarf2_consume_line_info.

16 years ago * dwarf2dbg.c (dwarf2_consume_line_info): New.
Bob Wilson [Mon, 19 Nov 2007 18:15:53 +0000 (18:15 +0000)]
* dwarf2dbg.c (dwarf2_consume_line_info): New.
(dwarf2_emit_insn): Use it here.
(dwarf2_directive_loc): Fix check for consecutive .loc directives
when debug_type is DEBUG_DWARF2.
* dwarf2dbg.h (dwarf2_consume_line_info): New prototype.
* config/tc-ia64.c (ia64_flush_insns): Call dwarf2_consume_line_info.
(md_assemble): Likewise.
testsuite/
* gas/lns/lns.exp: Run lns-common-1 with alternate source for ia64.
* gas/lns/lns-common-1-ia64.s: New file.

16 years ago* readelf.c (is_32bit_abs_reloc): Add support for NIOS relocs.
Nick Clifton [Mon, 19 Nov 2007 12:01:42 +0000 (12:01 +0000)]
* readelf.c (is_32bit_abs_reloc): Add support for NIOS relocs.
   (is_64bit_abs_reloc): Add support for HPPA relocs.
   (is_16bit_abs_reloc): Add support for NIOS relocs.

16 years ago2007-11-19 Markus Deuling <deuling@de.ibm.com>
Markus Deuling [Mon, 19 Nov 2007 05:06:24 +0000 (05:06 +0000)]
2007-11-19  Markus Deuling  <deuling@de.ibm.com>

* gdbarch.sh (register_sim_regno): Add gdbarch as parameter.
* gdbarch.{c,h}: Regenerate.

* arch-utils.h (legacy_register_sim_regno): Add gdbarch as parameter.
* score-tdep.c (score_register_sim_regno): Likewise.
* sim-regno.h (one2one_register_sim_regno): Likewise.

* arch-utils.c (legacy_register_sim_regno): Add gdbarch as parameter.
Replace current_gdbarch by gdbarch.
* sh-tdep.c (sh_sh2a_register_sim_regno)
(sh_dsp_register_sim_regno): Likewise.
* rs6000-tdep.c (rs6000_register_sim_regno): Likewise.
* mips-tdep.c (mips_register_sim_regno): Likewise.
* m32c-tdep.c (m32c_register_sim_regno): Likewise.
* frv-tdep.c (frv_register_sim_regno): Likewise.
* arm-tdep.c (arm_register_sim_regno): Likewise.
* remote-sim.c (one2one_register_sim_regno): Likewise.

16 years ago * elf-bfd.h (bfd_elf_perform_complex_relocation): Update prototype.
Alan Modra [Mon, 19 Nov 2007 02:19:39 +0000 (02:19 +0000)]
* elf-bfd.h (bfd_elf_perform_complex_relocation): Update prototype.
* elflink.c (bfd_elf_perform_complex_relocation): Return status.
Don't print reloc overflow message.
* elf32-mep.c (mep_elf_relocate_section): Handle status from
bfd_elf_perform_complex_relocation.

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

16 years agodaily update
Alan Modra [Sun, 18 Nov 2007 23:00:07 +0000 (23:00 +0000)]
daily update

17 years ago*** empty log message ***
gdbadmin [Sun, 18 Nov 2007 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

17 years agodaily update
Alan Modra [Sat, 17 Nov 2007 23:00:05 +0000 (23:00 +0000)]
daily update

17 years ago(Set Breaks): Fix a typo in last change.
Eli Zaretskii [Sat, 17 Nov 2007 15:33:46 +0000 (15:33 +0000)]
(Set Breaks): Fix a typo in last change.

17 years ago * config/tc-mips.c (md_parse_option): Match mips_optimize to the -O
Thiemo Seufer [Sat, 17 Nov 2007 14:19:19 +0000 (14:19 +0000)]
* config/tc-mips.c (md_parse_option): Match mips_optimize to the -O
option supplied, but still keep mips_optimize == 2 as default value.

17 years ago [ld/testsuite/ChangeLog]
Thiemo Seufer [Sat, 17 Nov 2007 13:38:57 +0000 (13:38 +0000)]
[ld/testsuite/ChangeLog]
* ld-mips-elf/attr-gnu-4-14.d, ld-mips-elf/attr-gnu-4-41.d:
Adjust warning message for -mfp64 flag.
* ld-mips-elf/attr-gnu-4-5.s, ld-mips-elf/attr-gnu-4-04.d,
ld-mips-elf/attr-gnu-4-51.d, ld-mips-elf/attr-gnu-4-05.d,
ld-mips-elf/attr-gnu-4-15.d, ld-mips-elf/attr-gnu-4-24.d,
ld-mips-elf/attr-gnu-4-25.d, ld-mips-elf/attr-gnu-4-34.d,
ld-mips-elf/attr-gnu-4-35.d, ld-mips-elf/attr-gnu-4-42.d,
ld-mips-elf/attr-gnu-4-43.d, ld-mips-elf/attr-gnu-4-44.d,
ld-mips-elf/attr-gnu-4-45.d, ld-mips-elf/attr-gnu-4-40.d,
ld-mips-elf/attr-gnu-4-14.d: New testcases files.
* ld-mips-elf/mips-elf.exp: Run new testcases.

[binutils/ChangeLog]
* readelf.c (display_mips_gnu_attribute): Recognize -mips32r2 -mfp64
objects.

[include/ChangeLog]
* elf/mips.h (Tag_GNU_MIPS_ABI_FP): Mention -mips32r2 -mfp64 variant
in comment.

[bfd/ChangeLog]
* elfxx-mips.c (mips_elf_merge_obj_attributes): Handle -mips32r2
-mfp64 attribute.

[gas/ChangeLog]
* doc/as.texinfo: Document the new attribute value.

17 years ago * gdb.texinfo (Set Breaks, Disabling): Clarify behavior of
Eli Zaretskii [Sat, 17 Nov 2007 11:56:02 +0000 (11:56 +0000)]
* gdb.texinfo (Set Breaks, Disabling): Clarify behavior of
breakpoints with multiple locations.
(Breakpoint Menus): Improve wording.
(Output): Fix last change.

17 years agoFrom Craig Silverstein: Quote the symbol name in the ODR violation
Ian Lance Taylor [Sat, 17 Nov 2007 02:49:22 +0000 (02:49 +0000)]
From Craig Silverstein: Quote the symbol name in the ODR violation
message to avoid a gcc collect2 demangling bug.

17 years agoFix broken check-in -- forgot to cvs remove file.
Ulrich Weigand [Sat, 17 Nov 2007 01:02:40 +0000 (01:02 +0000)]
Fix broken check-in -- forgot to cvs remove file.

17 years ago * configure.ac (--enable-targets): New configure option.
Ulrich Weigand [Sat, 17 Nov 2007 01:02:01 +0000 (01:02 +0000)]
* configure.ac (--enable-targets): New configure option.
Collect gdb_target_obs of multiple targets into TARGET_OBS.
Call configure.tgt multiple times, using $targ as operand.
* configure.tgt: Operate on $targ instead of $target.
* configure: Regenerate.
* Makefile.in (ALL_TARGET_OBS): Define.

* NEWS: Mention --enable-targets option.

17 years ago * mips-tdep.c (show_mipsfpu_command): Do not crash if called when
Ulrich Weigand [Sat, 17 Nov 2007 00:57:41 +0000 (00:57 +0000)]
* mips-tdep.c (show_mipsfpu_command): Do not crash if called when
current architecture is not MIPS.

17 years ago * cli/cli-setshow.c (do_setshow_command): Use dynamically sized buffer
Ulrich Weigand [Sat, 17 Nov 2007 00:57:01 +0000 (00:57 +0000)]
* cli/cli-setshow.c (do_setshow_command): Use dynamically sized buffer
to construct error message if no argument was supplied.

17 years ago * i386nbsd-tdep.c (i386nbsd_aout_supply_regset): Remove.
Ulrich Weigand [Sat, 17 Nov 2007 00:56:11 +0000 (00:56 +0000)]
* i386nbsd-tdep.c (i386nbsd_aout_supply_regset): Remove.
(i386nbsd_aout_regset_from_core_section): Likewise.
(i386nbsd_aout_init_abi): Likewise.
(_initialize_i386nbsd_tdep): Do not register i386nbsd_aout_init_abi.

* vaxnbsd-tdep.c (vaxnbsd_aout_init_abi): Remove.
(_initialize_vaxnbsd_tdep): Do not register vaxnbsd_aout_init_abi.

17 years ago * amd64fsdb-tdep.c (amd64fbsd_sigtramp_start_addr): Use ULL suffix.
Ulrich Weigand [Sat, 17 Nov 2007 00:55:29 +0000 (00:55 +0000)]
* amd64fsdb-tdep.c (amd64fbsd_sigtramp_start_addr): Use ULL suffix.
(amd64fbsd_sigtramp_end_addr): Likewise.

* iq2000-tdep.c (iq2000_pointer_to_address): Fix argument type.
(iq2000_address_to_pointer): Likewise.
(iq2000_frame_prev_register): Likewise.
(iq2000_extract_return_value): Use regcache_cooked_read_unsigned
instead of regcache_cooked_read into CORE_ADDR variable.
(iq2000_return_value): Fix argument types.

* m32r-rom.c (m32r_load_section): Fix printf argument type.
(m32r_load): Likewise.

* m68kbsd-tdep.c: Include "gdbtypes.h".
* Makefile.in: Update dependencies.

* mn10300-tdep.c (mn10300_frame_unwind_cache): Fix aliasing violation.

* nto-tdep.c (LM_ADDR): Do not refer to no-longer-existing
lmo->l_addr_size element.

* remote-m32r-sdi.c (m32r_xfer_memory): Use paddr to print address.
(m32r_insert_breakpoint): Likewise.
(m32r_remove_breakpoint): Likewise.
(m32r_insert_watchpoint): Likewise.
(m32r_remove_watchpoint): Likewise.
(m32r_load): Fix printf argument type.

* xtensa-tdep.c (xtensa_regset_from_core_section): Fix printf
argument type.
(xtensa_frame_this_id): Do not cast pointers to "int" for output.
(xtensa_frame_prev_register): Likewise.
(xtensa_push_dummy_call): Likewise.

17 years ago * config/alpha/alpha-linux.mt: Remove file.
Ulrich Weigand [Sat, 17 Nov 2007 00:54:18 +0000 (00:54 +0000)]
* config/alpha/alpha-linux.mt: Remove file.
* config/alpha/alpha.mt: Remove file.
* config/alpha/alpha-osf1.mt: Remove file.
* config/alpha/fbsd.mt: Remove file.
* config/alpha/nbsd.mt: Remove file.
* config/alpha/obsd.mt: Remove file.
* config/arm/embed.mt: Remove file.
* config/arm/linux.mt: Remove file.
* config/arm/nbsd.mt: Remove file.
* config/arm/obsd.mt: Remove file.
* config/arm/wince.mt: Remove file.
* config/avr/avr.mt: Remove file.
* config/cris/cris.mt: Remove file.
* config/frv/frv.mt: Remove file.
* config/h8300/h8300.mt: Remove file.
* config/i386/cygwin.mt: Remove file.
* config/i386/fbsd64.mt: Remove file.
* config/i386/fbsd.mt: Remove file.
* config/i386/i386gnu.mt: Remove file.
* config/i386/i386.mt: Remove file.
* config/i386/i386sol2.mt: Remove file.
* config/i386/linux64.mt: Remove file.
* config/i386/linux.mt: Remove file.
* config/i386/mingw.mt: Remove file.
* config/i386/nbsd64.mt: Remove file.
* config/i386/nbsd.mt: Remove file.
* config/i386/nto.mt: Remove file.
* config/i386/obsd64.mt: Remove file.
* config/i386/obsd.mt: Remove file.
* config/i386/sol2-64.mt: Remove file.
* config/ia64/ia64.mt: Remove file.
* config/ia64/linux.mt: Remove file.
* config/iq2000/iq2000.mt: Remove file.
* config/m32c/m32c.mt: Remove file.
* config/m32r/linux.mt: Remove file.
* config/m32r/m32r.mt: Remove file.
* config/m68hc11/m68hc11.mt: Remove file.
* config/m68k/linux.mt: Remove file.
* config/m68k/monitor.mt: Remove file.
* config/m68k/nbsd.mt: Remove file.
* config/m68k/obsd.mt: Remove file.
* config/m88k/obsd.mt: Remove file.
* config/mep/mep.mt: Remove file.
* config/mips/embed.mt: Remove file.
* config/mips/irix5.mt: Remove file.
* config/mips/irix6.mt: Remove file.
* config/mips/linux.mt: Remove file.
* config/mips/nbsd.mt: Remove file.
* config/mips/obsd64.mt: Remove file.
* config/mn10300/linux.mt: Remove file.
* config/mn10300/mn10300.mt: Remove file.
* config/mt/mt.mt: Remove file.
* config/pa/hppahpux.mt: Remove file.
* config/pa/hppa.mt: Remove file.
* config/pa/linux.mt: Remove file.
* config/pa/obsd.mt: Remove file.
* config/powerpc/aix.mt: Remove file.
* config/powerpc/linux.mt: Remove file.
* config/powerpc/nbsd.mt: Remove file.
* config/powerpc/obsd.mt: Remove file.
* config/powerpc/ppc-eabi.mt: Remove file.
* config/s390/s390.mt: Remove file.
* config/score/embed.mt: Remove file.
* config/sh/embed.mt: Remove file.
* config/sh/linux.mt: Remove file.
* config/sh/nbsd.mt: Remove file.
* config/sh/obsd.mt: Remove file.
* config/sh/sh64.mt: Remove file.
* config/sparc/embed.mt: Remove file.
* config/sparc/fbsd.mt: Remove file.
* config/sparc/linux64.mt: Remove file.
* config/sparc/linux.mt: Remove file.
* config/sparc/nbsd64.mt: Remove file.
* config/sparc/nbsd.mt: Remove file.
* config/sparc/obsd64.mt: Remove file.
* config/sparc/obsd.mt: Remove file.
* config/sparc/sol2-64.mt: Remove file.
* config/sparc/sol2.mt: Remove file.
* config/sparc/sparc64.mt: Remove file.
* config/sparc/sparc.mt: Remove file.
* config/spu/spu.mt: Remove file.
* config/v850/v850.mt: Remove file.
* config/vax/nbsd.mt: Remove file.
* config/vax/obsd.mt: Remove file.
* config/vax/vax.mt: Remove file.
* config/xstormy16/xstormy16.mt: Remove file.
* config/xtensa/xtensa.mt: Remove file.

* configure.tgt (gdb_target_cpu): Remove.  Do not set anywhere.
(gdb_target): Likewise.
(gdb_target_obs): Document.  Set for every target to contents
of TDEPFILES in former .mt makefile fragment.

* configure.ac (TARGET_OBS): Define.
(target_makefile_frag, gdb_target_cpu): Do not define.
* configure: Regenerate.

* Makefile.in (MT_FLAGS): Remove.
(GLOBAL_CFLAGS): Update.
(TARGET_OBS): Substitute from configure.
(DEPFILES): Remove TDEPFILES, add TARGET_OBS.
(@target_makefile_frag@): Remove.

doc/ChangeLog:

* Makefile.in (Makefile): Do not depend on target_makefile_frag.

testsuite/ChangeLog:

* Makefile.in (Makefile): Do not depend on target_makefile_frag.
(target_cpu): Remove.

17 years ago * config/arm/embed.mt (SIM_OBS, SIM): Remove.
Ulrich Weigand [Sat, 17 Nov 2007 00:44:38 +0000 (00:44 +0000)]
* config/arm/embed.mt (SIM_OBS, SIM): Remove.
* config/avr/avr.mt (SIM_OBS, SIM): Remove.
* config/frv/frv.mt (SIM_OBS, SIM): Remove.
* config/h8300/h8300.mt (SIM_OBS, SIM): Remove.
* config/iq2000/iq2000.mt (SIM_OBS, SIM): Remove.
* config/m32c/m32c.mt (SIM_OBS, SIM): Remove.
* config/m32r/linux.mt (SIM_OBS, SIM): Remove.
* config/m32r/m32r.mt (SIM_OBS, SIM): Remove.
* config/m68hc11/m68hc11.mt (SIM_OBS, SIM): Remove.
* config/mips/embed.mt (SIM_OBS, SIM): Remove.
* config/mips/linux.mt (SIM_OBS, SIM): Remove.
* config/mips/nbsd.mt (SIM_OBS, SIM): Remove.
* config/mn10300/mn10300.mt (SIM_OBS, SIM): Remove.
* config/powerpc/linux.mt (SIM_OBS, SIM): Remove.
* config/powerpc/nbsd.mt (SIM_OBS, SIM): Remove.
* config/powerpc/ppc-sim.mt: Remove file.
* config/sh/embed.mt (SIM_OBS, SIM): Remove.
* config/sh/linux.mt (SIM_OBS, SIM): Remove.
* config/sh/nbsd.mt (SIM_OBS, SIM): Remove.
* config/sh/sh64.mt (SIM_OBS, SIM): Remove.
* config/sparc/embed.mt (SIM_OBS, SIM): Remove.
* config/v850/v850.mt (SIM_OBS, SIM): Remove.
* config/xstormy16/xstormy16.mt (SIM_OBS, SIM): Remove.

* configure.tgt (gdb_sim): Document variable.
(arm*-*-* | thumb*-*-* | strongarm*-*-* | xscale-*-*): Set it.
(avr-*-*): Likewise.
(frv-*-*): Likewise.
(h8300-*-*): Likewise.
(iq2000-*-*): Likewise.
(m32c-*-*): Likewise.
(m32r*-*-linux*): Likewise.
(m32r*-*-*): Likewise.
(m68hc11*-*-*|m6811*-*-*): Likewise.
(mips*-*-*): Likewise.
(mips*-*-linux*): Likewise.
(mips*-*-netbsd* | mips*-*-knetbsd*-gnu): Likewise.
(mn10300-*-*): Likewise.
(powerpc-*-linux* | powerpc64-*-linux*): Likewise.
(powerpc-*-netbsd* | powerpc-*-knetbsd*-gnu): Likewise.
(powerpc*-*-*): Use ppc-eabi target.  Conditionally set gdb_sim.
(sh*): Set gdb_sim.
(sh-*-linux*): Likewise.
(sh*-*-netbsdelf* | sh*-*-knetbsd*-gnu): Likewise.
(sh64-*-elf*): Likewise.
(sparc-*-rtems*): Likewise.
(v850*-*-elf): Likewise.
(xstormy16-*-*): Likewise.

* configure.ac (IGNORE_SIM, IGNORE_SIM_OBS): Do not set.
(SIM, SIM_OBS): Set depending on ${ignore_sim} and ${gdb_sim}.
* configure: Regenerate.
* Makefile.in (SIM, SIM_OBS): Substitute from configure.
(@IGNORE_SIM@, @IGNORE_SIM_OBS@): Remove.

17 years ago * configure.tgt (gdb_osabi, build_gdbserver): Comment variables.
Ulrich Weigand [Sat, 17 Nov 2007 00:42:59 +0000 (00:42 +0000)]
* configure.tgt (gdb_osabi, build_gdbserver): Comment variables.
(arm*-*-*): Do not set obsolete build_rdi_share variable.

(*-*-freebsd* | *-*-kfreebsd*-gnu): Remove generic case, replace by ...
(alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu)
(i[34567]86-*-freebsd* | i[34567]86-*-kfreebsd*-gnu)
(sparc*-*-freebsd* | sparc*-*-kfreebsd*-gnu): ... specific cases.
(x86_64-*-freebsd* | x86_64-*-kfreebsd*-gnu): Re-sort.

(xscale-*-*): Merge into arm*-*-* case.
(fido-*-elf*): Merge into m68*-*-elf* case.
(m68*-*-aout*, m68*-*-coff*, m68*-*-elf*, m68*-*-rtems*,
m68*-*-uclinux*): Merge cases.
(powerpc-*-linux*, powerpc64-*-linux*): Merge cases.
(sh-*-coff*, sh-*-elf*): Merge into sh* case.

17 years ago * configure.tgt: Reformat main case statement.
Ulrich Weigand [Sat, 17 Nov 2007 00:42:07 +0000 (00:42 +0000)]
* configure.tgt: Reformat main case statement.

17 years ago * configure.ac (hostfile, targetfile): Remove.
Ulrich Weigand [Sat, 17 Nov 2007 00:41:17 +0000 (00:41 +0000)]
* configure.ac (hostfile, targetfile): Remove.
(GDB_XM_FILE, GDB_TM_FILE): Do not define.
(xm_h, tm_h): Likewise.
(DEPRECATED_TM_FILE, XM_FILE): Do not substitute into Makefile.
* configure, config.in: Regenerate.

* Makefile.in (xm_h, tm_h): Remove.  Update dependencies.
(TAGS): Do not consider DEPRECATED_TM_FILE or XM_FILE.
(clean, local-maintainer-clean): Do not remove xm.h or tm.h.
* defs.h: Do not include "xm.h" or "tm.h".

* gdbarch.sh (verify_gdbarch): Do not dump GDB_XM_FILE or GDB_TM_FILE.
* gdbarch.c: Regenerate.

* config/score/embed.mt: Remove obsolete comment.

17 years ago*** empty log message ***
gdbadmin [Sat, 17 Nov 2007 00:00:04 +0000 (00:00 +0000)]
*** empty log message ***

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

17 years agoReleased gold 0.8
Craig Silverstein [Fri, 16 Nov 2007 21:18:22 +0000 (21:18 +0000)]
Released gold 0.8

17 years agoIgnore empty archives.
Ian Lance Taylor [Fri, 16 Nov 2007 18:44:20 +0000 (18:44 +0000)]
Ignore empty archives.

17 years ago2007-11-16 Eric B. Weddington <eric.weddington@atmel.com>
Eric B. Weddington [Fri, 16 Nov 2007 17:39:22 +0000 (17:39 +0000)]
2007-11-16  Eric B. Weddington  <eric.weddington@atmel.com>

* config/tc-avr.c (mcu_types): Add ATmega32HVB device.
* doc/c-avr.texi: Likewise.

17 years ago2007-11-16 Eric B. Weddington <eric.weddington@atmel.com>
Eric B. Weddington [Fri, 16 Nov 2007 17:25:28 +0000 (17:25 +0000)]
2007-11-16  Eric B. Weddington  <eric.weddington@atmel.com>

* config/tc-avr.c (mcu_types): Add ATmega1284P device.
* doc/c-avr.texi: Likewise.

17 years agoWhen looking for ODR violations, only check the file base name. Also,
Ian Lance Taylor [Fri, 16 Nov 2007 16:54:19 +0000 (16:54 +0000)]
When looking for ODR violations, only check the file base name.  Also,
never demangle if --no-demangle was used.

17 years ago* dwarf2.h: Mention the location of the DWARF3 spec on the web.
Nick Clifton [Fri, 16 Nov 2007 15:36:21 +0000 (15:36 +0000)]
* dwarf2.h: Mention the location of the DWARF3 spec on the web.
  (DW_AT_stride_size): Rename to DW_AT_bit_stride.
  (DW_AT_stride): Rename to DW_AT_byte_stride.
* dwarf.c (process_extended_line_op): Add cases for HP extensions to the line ops.
  Mention if an unknown op code is in the user defined range.
  (decode_location_expression): Add cases for HP extensions, the DW_OP_GNU_uninit extension and the DW_OP_call_frame_cfa and DW_OP_bit_piece DWARF3 operators.
  (read_and_display_attr): Correct list of attributes which can reference a location list.
  (read_and_display_attr_value): Add cases for DWARF3 values and HP extensions.
  Correct list of attributes which can reference a location list.
  (get_AT_name): Add cases for DWARF3 values and HP and PGI extensions.

17 years ago* ld-mn10300/mn10300.exp: Fix the start address of the .bss section for the i1127740...
Nick Clifton [Fri, 16 Nov 2007 09:48:05 +0000 (09:48 +0000)]
* ld-mn10300/mn10300.exp: Fix the start address of the .bss section for the i1127740.s test.
* elf-m10300.c (mn10300_elf_check_relocs): Fix memory leak and check that bfd_elf_get_elf_syms is only called once.

17 years agoDW_LNE_end_sequence indicates that the address points to the byte
Ian Lance Taylor [Fri, 16 Nov 2007 06:47:53 +0000 (06:47 +0000)]
DW_LNE_end_sequence indicates that the address points to the byte
*after* the current target sequence.

17 years ago2007-11-16 Markus Deuling <deuling@de.ibm.com>
Markus Deuling [Fri, 16 Nov 2007 04:56:45 +0000 (04:56 +0000)]
2007-11-16  Markus Deuling  <deuling@de.ibm.com>

* gdbarch.sh (cannot_fetch_register, cannot_store_register): Add gdbarch
as parameter.
* gdbarch.{c,h}: Regenerate.

* alpha-tdep.c (alpha_cannot_fetch_register)
(alpha_cannot_store_register): Add gdbarch as parameter. Replace
current_gdbarch by gdbarch.
* cris-tdep.c (cris_cannot_fetch_register, cris_cannot_store_register)
(crisv32_cannot_fetch_register)
(crisv32_cannot_store_register): Likewise.
* arch-utils.c (cannot_register_not): Likewise.
* arch-utils.h (cannot_register_not): Likewise.
* hppa-tdep.c (hppa32_cannot_store_register)
(hppa32_cannot_store_register, hppa64_cannot_store_register)
(hppa64_cannot_fetch_register): Likewise.
* mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register)
(mipsnbsd_cannot_store_register): Likewise.

17 years ago2007-11-16 Markus Deuling <deuling@de.ibm.com>
Markus Deuling [Fri, 16 Nov 2007 04:53:46 +0000 (04:53 +0000)]
2007-11-16  Markus Deuling  <deuling@de.ibm.com>

* m32r-rom.c (m32r_supply_register): Use get_regcache_arch to get at
the current architecture by regcache.
* ppcnbsd-nat.c (ppcnbsd_supply_pcb): Likewise.
* ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register)
(fetch_register, supply_vrregset, fetch_ppc_registers)
(store_altivec_register, store_spe_register, store_register)
(fill_vrregset, store_ppc_registers): Likewise.
* ppcobsd-nat.c (ppcobsd_supply_pcb): Likewise.
* win32-nat.c (do_win32_fetch_inferior_registers)
(do_win32_store_inferior_registers): Likewise.
* procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
* remote-m32r-sdi.c (m32r_fetch_registers)
(m32r_store_registers): Likewise.
* remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Likewise.

* trad-frame.c (trad_frame_alloc_saved_regs): Replace current_gdbarch by
gdbarch.
* user-regs.c (user_reg_map_name_to_regnum): Likewise.
* ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
(do_ppc_sysv_return_value, ppc64_sysv_abi_push_dummy_call)
(ppc64_sysv_abi_return_value): Likewise.
* m32c-tdep.c (m32c_register_reggroup_p): Likewise.
* m2-lang.c (build_m2_types): Likewise.
* ppc-linux-tdep.c (ppc_linux_sigtramp_cache
* ppcnbsd-tdep.c (ppcnbsd_sigtramp_cache_init): Likewise.
* ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
* rs6000-tdep.c (ppc_dwarf2_frame_init_reg): Likewise.

* m68hc11-tdep.c (m68hc11_frame_unwind_cache): Use get_frame_arch to
get at the current architecture by frame_info.
* gcore.c (derive_stack_segment): Likewise.

* shnbsd-nat.c (GETREGS_SUPPLIES): Add gdbarch parameter.
(shnbsd_fetch_inferior_registers, shnbsd_store_inferior_registers): Add
gdbarch to GETREGS_SUPPLIES call.

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

17 years agobfd/ChangeLog:
Ulrich Weigand [Thu, 15 Nov 2007 23:48:00 +0000 (23:48 +0000)]
bfd/ChangeLog:

* elf64-ppc.c (ppc64_elf_get_synthetic_symtab): Set udata.p of
synthetic symbol to point to the ELF symbol it was derived from.

gdb/ChangeLog:

* elfread.c (ST_REGULAR, ST_DYNAMIC, ST_SYNTHETIC): New defines.
(elf_symtab_read): Rename DYNAMIC argument to TYPE.  Do not access
ELF-private symbol data when processing synthetic symbols.  Use
udata.p to get at size of ppc64 synthetic 'dot' symbols.
(elf_symfile_read): Pass TYPE argument to elf_symtab_read.

17 years agoFrom Cary Coutant: Count textrel with output sections rather than
Ian Lance Taylor [Thu, 15 Nov 2007 23:46:46 +0000 (23:46 +0000)]
From Cary Coutant: Count textrel with output sections rather than
setting a flag as we add each reloc in the target code.

17 years agoFrom Craig Silverstein: Add --strip-debug-gdb.
Ian Lance Taylor [Thu, 15 Nov 2007 23:03:45 +0000 (23:03 +0000)]
From Craig Silverstein: Add --strip-debug-gdb.