binutils-gdb.git
19 years ago2005-05-24 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Wed, 25 May 2005 06:49:53 +0000 (06:49 +0000)]
2005-05-24  H.J. Lu  <hongjiu.lu@intel.com>

* ld-mmix/bpo-6.d: Updated.
* ld-mmix/bpo-19.d: Likewise.

19 years agoopcodes/
Jan Beulich [Wed, 25 May 2005 06:47:58 +0000 (06:47 +0000)]
opcodes/
2005-05-25  Jan Beulich  <jbeulich@novell.com>

* i386-dis.c (prefix_name): Remove pointless mode_64bit check.
(OP_E): Remove redundant REX_EXTZ handling. Remove pointless
masking of 'rm' in 16-bit memory address handling.

19 years ago2005-05-24 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Wed, 25 May 2005 06:30:25 +0000 (06:30 +0000)]
2005-05-24  H.J. Lu  <hongjiu.lu@intel.com>

* gas/elf/group0b.d: Updated.
* gas/elf/group1b.d: Likewise.

19 years ago2005-05-24 Andrew Cagney <cagney@gnu.org>
Andrew Cagney [Wed, 25 May 2005 03:12:13 +0000 (03:12 +0000)]
2005-05-24  Andrew Cagney  <cagney@gnu.org>

* rs6000-tdep.c (ppc_supply_reg, ppc_collect_reg): Use gdb_byte
for byte buffers.
(rs6000_fetch_pointer_argument): Use get_frame_register_unsigned.
(rs6000_software_single_step, sstep_breaks, skip_prologue)
(rs6000_push_dummy_call, rs6000_push_dummy_call)
(rs6000_push_dummy_call, rs6000_push_dummy_call)
(rs6000_register_to_value, e500_pseudo_register_read)
(rs6000_store_return_value, e500_pseudo_register_write)
(rs6000_frame_prev_register, rs6000_extract_return_value): Ditto.
* ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
(ppc_sysv_abi_push_dummy_call, do_ppc_sysv_return_value)
(do_ppc_sysv_return_value, ppc_sysv_abi_return_value)
(ppc_sysv_abi_broken_return_value)
(ppc64_sysv_abi_push_dummy_call, ppc64_sysv_abi_push_dummy_call)
(ppc64_sysv_abi_push_dummy_call, ppc64_sysv_abi_return_value)
(ppc64_sysv_abi_return_value, ppc64_sysv_abi_return_value): Ditto.
* ppc-linux-tdep.c (ppc_linux_in_sigtramp)
(ppc_linux_at_sigtramp_return_path)
(ppc_linux_skip_trampoline_code)
(ppc_linux_memory_remove_breakpoint, ppc_linux_return_value):
* rs6000-tdep.c (rs6000_value_to_register)
(rs6000_register_to_value): Ditto.
* ppc-tdep.h (ppc_sysv_abi_return_value)
(ppc64_sysv_abi_return_value, ppc_sysv_abi_broken_return_value)
(ppc_linux_memory_remove_breakpoint): Ditto.

19 years ago*** empty log message ***
gdbadmin [Wed, 25 May 2005 00:00:10 +0000 (00:00 +0000)]
*** empty log message ***

19 years agodaily update
Alan Modra [Wed, 25 May 2005 00:00:09 +0000 (00:00 +0000)]
daily update

19 years agomerge from gcc
DJ Delorie [Tue, 24 May 2005 21:01:33 +0000 (21:01 +0000)]
merge from gcc

19 years ago * s390-tdep.c (s390_frame_prev_register): Change type of last
Ulrich Weigand [Tue, 24 May 2005 16:12:58 +0000 (16:12 +0000)]
* s390-tdep.c (s390_frame_prev_register): Change type of last
argument to 'gdb_byte *'.
(s390_stub_frame_prev_register): Likewise.
(s390_sigtramp_frame_prev_register): Likewise.

19 years ago2005-05-24 Kris Warkentin <kewarken@qnx.com>
Kris Warkentin [Tue, 24 May 2005 15:43:21 +0000 (15:43 +0000)]
2005-05-24  Kris Warkentin  <kewarken@qnx.com>

    * config/i386/nto.mt: Remove remote-nto.o.

19 years ago(handle_v6_thumb_insn): New function.
Nick Clifton [Tue, 24 May 2005 15:30:38 +0000 (15:30 +0000)]
(handle_v6_thumb_insn): New function.
(ARMul_ThumbDecode): Call handle_v6_thumb_insn() when an undefined instruction
  binary is encountered.

19 years ago * Make-common.in (LIBDEPS): Correctly use INTLDEPS for dependency
Corinna Vinschen [Tue, 24 May 2005 14:21:19 +0000 (14:21 +0000)]
* Make-common.in (LIBDEPS): Correctly use INTLDEPS for dependency
check.

19 years ago2005-05-24 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Tue, 24 May 2005 13:53:30 +0000 (13:53 +0000)]
2005-05-24  H.J. Lu  <hongjiu.lu@intel.com>

* readelf.c (process_section_groups): Report group section
index. Check if the section member index is valid.

19 years ago2005-05-24 Orjan Friberg <orjanf@axis.com>
Orjan Friberg [Tue, 24 May 2005 08:27:01 +0000 (08:27 +0000)]
2005-05-24  Orjan Friberg  <orjanf@axis.com>

* config/djgpp/fnchange.lst: Add mappings for
gdbserver/linux-cris-low.c and gdbserver/linux-crisv32-low.c.

19 years ago * emultempl/ppc32elf.em (after_allocation): Don't call
Alan Modra [Tue, 24 May 2005 00:27:58 +0000 (00:27 +0000)]
* emultempl/ppc32elf.em (after_allocation): Don't call
ppc_elf_set_sdata_syms when relocatable.

19 years ago*** empty log message ***
gdbadmin [Tue, 24 May 2005 00:00:05 +0000 (00:00 +0000)]
*** empty log message ***

19 years agodaily update
Alan Modra [Tue, 24 May 2005 00:00:04 +0000 (00:00 +0000)]
daily update

19 years ago2005-05-23 Michael Snyder <msnyder@redhat.com>
Michael Snyder [Mon, 23 May 2005 21:19:48 +0000 (21:19 +0000)]
2005-05-23  Michael Snyder  <msnyder@redhat.com>
        From Nora Pan <qpan@mvista.com>
        * linux-nat.c (read_mapping): Don't stumble over entries in
        mapping that have name but zero inode.

19 years ago2005-05-23 Andrew Cagney <cagney@gnu.org>
Andrew Cagney [Mon, 23 May 2005 19:32:28 +0000 (19:32 +0000)]
2005-05-23  Andrew Cagney  <cagney@gnu.org>

* target.h (child_xfer_memory): Use gdb_byte for byte buffer
parameters.
* inftarg.c (child_xfer_partial): Update.
* wince.c (child_xfer_memory): Update.
* win32-nat.c (child_xfer_memory): Update.
* rs6000-nat.c (child_xfer_memory): Update.
* infptrace.c (child_xfer_memory): Update.
* dcache.c (struct dcache_block): Use gdb_byte for the byte
buffers.
(dcache_read_line, dcache_xfer_memory, dcache_poke_byte)
(dcache_peek_byte, dcache_write_line): Ditto.

19 years ago2005-05-23 Andrew Cagney <cagney@gnu.org>
Andrew Cagney [Mon, 23 May 2005 18:20:03 +0000 (18:20 +0000)]
2005-05-23  Andrew Cagney  <cagney@gnu.org>

* auxv.h (target_auxv_read, procfs_xfer_auxv)
(target_auxv_parse): Use gdb_byte for byte buffer parameters.
* auxv.c (target_auxv_read, procfs_xfer_auxv, target_auxv_parse)
(target_auxv_search, fprint_target_auxv): Update.

19 years agoApproved by nickc@redhat.com:
Fred Fish [Mon, 23 May 2005 17:45:42 +0000 (17:45 +0000)]
Approved by nickc@redhat.com:

2005-05-23  Fred Fish  <fnf@specifixinc.com>
* addr2line.c (unwind_inlines): New flag for 'i' option.
(usage): Document '-i' option.
(long_options): Recognize '--inlines'.
(translate_addresses): Loop, calling bfd_find_inliner_info as
necessary and printing multiple output lines.
(main): Handle 'i' option.
* doc/binutils.texi (addr2line): Document '-i' option.
* NEWS: Mention new addr2line '-i' option.

19 years agoApproved by nickc@redhat.com
Fred Fish [Mon, 23 May 2005 17:44:55 +0000 (17:44 +0000)]
Approved by nickc@redhat.com

2005-05-23  Fred Fish  <fnf@specifixinc.com>
* dwarf2.c (struct dwarf2_debug): Add inliner_chain member.
(struct funcinfo): Add caller_func, caller_file, caller_line.
tag, and nesting_level members.
(lookup_address_in_function_table): Change first passed parameter
from "struct funcinfo *" to "struct comp_unit *".
(lookup_address_in_function_table): Dereference unit to find function
table.
(lookup_address_in_function_table): Traverse the function list to
create a chain of inlined functions back to the first non inlined
function.
(scan_unit_for_functions): Remember tag and nesting level.  Handle
DW_AT_call_file and DW_AT_call_line.
(comp_unit_find_nearest_line): Adjust lookup_address_in_function_table
call to pass unit pointer instead of function table pointer.  For
inlined functions, save pointer to the inliner chain.
(_bfd_dwarf2_find_nearest_line): Initialize inliner_chain to NULL.
(_bfd_dwarf2_find_inliner_info): New function that returns information
from the inliner chain after a call to bfd_find_nearest_line.

* bfd.c (bfd_find_inliner_info): Define using BFD_SEND.
* targets.c (BFD_JUMP_TABLE_SYMBOLS): Add entry for
NAME##_find_inliner_info.
(bfd_target): Add _bfd_find_inliner_info.
* bfd-in2.h: Regenerate.

* libbfd-in.h (_bfd_nosymbols_find_inliner_info): Define as
macro that always returns bfd_false.
(_bfd_dwarf2_find_inliner_info): Declare.
* libbfd.h: Regenerate.

* elf32-arm.c (elf32_arm_find_inliner_info): New function
that calls _bfd_dwarf2_find_inliner_info.
(bfd_elf32_find_inliner_info): Define to elf32_arm_find_inliner_info.

* elfxx-mips.c (_bfd_mips_elf_find_inliner_info): New function
that calls _bfd_dwarf2_find_inliner_info.
* elfxx-mips.h (_bfd_mips_elf_find_inliner_info): Declare.
* elfn32-mips.c (bfd_elf32_find_inliner_info): Define to
_bfd_mips_elf_find_inliner_info.
* elf64-mips.c (bfd_elf64_find_inliner_info): Ditto.
* elf32-mips.c (bfd_elf32_find_inliner_info): Ditto.

* elf.c (_bfd_elf_find_inliner_info): New function that calls
_bfd_dwarf2_find_inliner_info.
* elf-bfd.h (_bfd_elf_find_inliner_info): Declare.
* elfxx-target.h (bfd_elfNN_find_inliner_info): Define to
_bfd_elf_find_inliner_info.

* coffgen.c (coff_find_inliner_info): New function that
calls _bfd_dwarf2_find_inliner_info.
* libcoff-in.h (coff_find_inliner_info): Declare.
* libcoff.h: Regenerate.
* coff-rs6000.c (rs6000coff_vec): Add coff_find_inliner_info.
(pmac_xcoff_vec) Ditto.
* coff64-rs6000.c (rs6000coff64_vec): Ditto.
(aix5coff64_vec): Ditto.

* aout-target.h (MY_find_inliner_info): Define as
_bfd_nosymbols_find_inliner_info.
* aout-tic30.c (MY_find_inliner_info): Ditto.
* binary.c (binary_find_inliner_info): Ditto.
* i386msdos.c (msdos_find_inliner_info): Ditto.
* ihex.c (ihex_find_inliner_info): Ditto.
* libaout.h (aout_32_find_inliner_info): Ditto.
* libecoff.h (_bfd_ecoff_find_inliner_info): Ditto.
* mach-o.c (bfd_mach_o_find_inliner_info): Ditto.
* mmo.c (mmo_find_inliner_info): Ditto.
* nlm-target.h (nlm_find_inliner_info): Ditto.
* pef.c (bfd_pef_find_inliner_info): Ditto.
* ppcboot.c (ppcboot_find_inliner_info): Ditto.
* srec.c (srec_find_inliner_info): Ditto.
* tekhex.c (tekhex_find_inliner_info): Ditto.
* versados.c (versados_find_inliner_info): Ditto.
* xsym.c (bfd_sym_find_inliner_info): Ditto.

* ieee.c (ieee_find_inliner_info): New function that always
returns FALSE.
* oasys.c (oasys_find_inliner_info): Ditto.
* vms.c (vms_find_inliner_info): Ditto.

19 years ago * hppa.h (FLAG_STRICT): Correct comment.
Dave Anglin [Mon, 23 May 2005 16:26:43 +0000 (16:26 +0000)]
* hppa.h (FLAG_STRICT): Correct comment.
(pa_opcodes): Update load and store entries to allow both PA 1.X and
PA 2.0 mneumonics when equivalent.  Entries with cache control
completers now require PA 1.1.  Adjust whitespace.

19 years ago * elf32-ppc.c (ppc_elf_check_relocs): For old gcc -fPIC code
Alan Modra [Mon, 23 May 2005 16:22:25 +0000 (16:22 +0000)]
* elf32-ppc.c (ppc_elf_check_relocs): For old gcc -fPIC code
force old plt layout.

19 years ago(fetch_indirect_string): Display a warning message when a corrupt
Nick Clifton [Mon, 23 May 2005 12:12:00 +0000 (12:12 +0000)]
(fetch_indirect_string): Display a warning message when a corrupt
  DW_FORM_strp value is encountered.

(process_debug_info): Mention that the compilation unit offset is being
  displayed in hexadecimal.

(display_debug_lines): Fix typo in name of .debug_line section.

19 years ago2005-05-23 Orjan Friberg <orjanf@axis.com>
Orjan Friberg [Mon, 23 May 2005 11:20:07 +0000 (11:20 +0000)]
2005-05-23  Orjan Friberg  <orjanf@axis.com>

* linux-cris-low.c: New file with support for CRIS.
* linux-crisv32-low.c: Ditto for CRISv32.
* Makefile.in (SFILES): Add linux-cris-low.c, linux-crisv32-low.c.
(clean): Add reg-cris.c and reg-crisv32.c.
Add linux-cris-low.o, linux-crisv32-low.o, reg-cris.o, reg-cris.c,
reg-crisv32.o, and reg-crisv32.c to make rules.
* configure.srv: Add cris-*-linux* and crisv32-*-linux* to list of
recognized targets.

19 years ago* Last commit contained the wrong ChangeLog entry.
Orjan Friberg [Mon, 23 May 2005 10:48:03 +0000 (10:48 +0000)]
* Last commit contained the wrong ChangeLog entry.

19 years ago2005-05-23 Orjan Friberg <orjanf@axis.com>
Orjan Friberg [Mon, 23 May 2005 10:43:18 +0000 (10:43 +0000)]
2005-05-23  Orjan Friberg  <orjanf@axis.com>

* cris-tdep.c: Tweak values for cris-mode.

19 years ago2005-05-23 Orjan Friberg <orjanf@axis.com>
Orjan Friberg [Mon, 23 May 2005 10:41:33 +0000 (10:41 +0000)]
2005-05-23  Orjan Friberg  <orjanf@axis.com>

* gdb.texinfo (CRIS): Update the cris-version and cris-dwarf2-cfi
documentation.  Add documentation for cris-mode.

19 years ago * mdebugread.c (record_minimal_symbol): New procedure.
Joel Brobecker [Mon, 23 May 2005 03:28:38 +0000 (03:28 +0000)]
    * mdebugread.c (record_minimal_symbol): New procedure.
        (parse_partial_symbols): Use record_minimal_symbol to record
        the new minimal symbols instead of prim_record_minimal_symbol
        and prim_record_minimal_symbol_and_info.

19 years ago * elf64-alpha.c (elf64_alpha_relax_section): Ignore non-allocated
Richard Henderson [Mon, 23 May 2005 01:26:58 +0000 (01:26 +0000)]
    * elf64-alpha.c (elf64_alpha_relax_section): Ignore non-allocated
        sections.
        (elf64_alpha_check_relocs): Likewise.
        (elf64_alpha_relocate_section): Don't emit dynamic relocations to
        non-allocated sections.

19 years ago*** empty log message ***
gdbadmin [Mon, 23 May 2005 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

19 years agodaily update
Alan Modra [Mon, 23 May 2005 00:00:03 +0000 (00:00 +0000)]
daily update

19 years ago * elf64-alpha.c (elf64_alpha_relax_with_lituse): Relax jsr to
Richard Henderson [Sun, 22 May 2005 22:13:21 +0000 (22:13 +0000)]
    * elf64-alpha.c (elf64_alpha_relax_with_lituse): Relax jsr to
        undefweak to use zero register.  Call elf64_alpha_relax_got_load
        if not all uses removed.
        (elf64_alpha_relax_got_load): Relax undefweak to lda zero.
        (elf64_alpha_relax_section): Handle undefweak symbols.
        (elf64_alpha_calc_dynrel_sizes): Don't add relocs for undefweak.
        (elf64_alpha_size_rela_got_1): Likewise.
        (elf64_alpha_relocate_section): Likewise.

19 years ago * elf64-alpha.c (elf64_alpha_relax_section): Only operate
Richard Henderson [Sun, 22 May 2005 22:07:31 +0000 (22:07 +0000)]
    * elf64-alpha.c (elf64_alpha_relax_section): Only operate
        on SEC_CODE sections.

19 years ago * ld-elfweak/dsow.dsym: Adjust for non-zero ST_OTHER.
Richard Henderson [Sun, 22 May 2005 21:02:19 +0000 (21:02 +0000)]
    * ld-elfweak/dsow.dsym: Adjust for non-zero ST_OTHER.
        * ld-elfweak/weak.dsym: Likewise.

        * ld-selective/selective.exp: Don't test alpha.

19 years ago* NEWS: Mention OpenBSD/arm as a new native configuration.
Mark Kettenis [Sun, 22 May 2005 20:40:26 +0000 (20:40 +0000)]
* NEWS: Mention OpenBSD/arm as a new native configuration.

19 years ago* armnbsd-nat.c: Include "gdb_string.h" and "inf_ptrace.h".
Mark Kettenis [Sun, 22 May 2005 20:36:19 +0000 (20:36 +0000)]
* armnbsd-nat.c: Include "gdb_string.h" and "inf_ptrace.h".
Reorder includes.  Don't require FETCH_INFERIOR_REGISTERS to be
defined.
(armnbsd_fetch_registers): Rename from armnbsd_fetch_registers.
Make static.
(armnbsd_store_registers): Rename from armnbsd_store_registers.
Make static.
(_initialize_arm_netbsd_nat): Construct and add target vector.
* Makefile.in (armnbsd-nat.o): Update dependencies.
* config/arm/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
intarg.o, add inf-ptrace.o.
(NAT_FILE): Set to solib.h.
* config/arm/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
inftarg.o, add inf-ptrace.o.
(NAT_FILE): Remove.

19 years ago* arm-tdep.c (arm_extract_return_value, arm_store_return_value):
Mark Kettenis [Sun, 22 May 2005 20:11:12 +0000 (20:11 +0000)]
* arm-tdep.c (arm_extract_return_value, arm_store_return_value):
Change type of last argument to `gdb_byte *'.

19 years ago * som.c (try_prev_fixup): Changed type of subspace_reloc_sizep to
Dave Anglin [Sun, 22 May 2005 20:02:16 +0000 (20:02 +0000)]
* som.c (try_prev_fixup): Changed type of subspace_reloc_sizep to
unsigned int *.
(som_write_space_strings): Change type of tmp_space and p to char *.
(som_write_symbol_strings): Likewise.  Also change type of comp to
char *comp[4].
(som_begin_writing): Change type of strings_size to unsigned int.
(som_finish_writing): Likewise.
(som_slurp_reloc_table): Change type of external_relocs to unsigned
char *.
* som.h (struct som_section_data_struct): Change type of reloc_stream
field to unsigned char *.

19 years ago* configure.host: Add arm*-*-openbsd*.
Mark Kettenis [Sun, 22 May 2005 19:11:42 +0000 (19:11 +0000)]
* configure.host: Add arm*-*-openbsd*.
* configure.tgt: Add arm*-*-openbsd*.

19 years ago2005-05-22 Andrew Cagney <cagney@gnu.org>
Andrew Cagney [Sun, 22 May 2005 14:53:35 +0000 (14:53 +0000)]
2005-05-22  Andrew Cagney  <cagney@gnu.org>

* frame.h (frame_register_unwind, frame_unwind_register)
(get_frame_register, frame_register, put_frame_register)
(get_frame_memory, safe_frame_unwind_memory)
(frame_register_read): Use gdb_byte for byte buffer parameters.
* trad-frame.h (trad_frame_get_register)
(frame_get_prev_register): Ditto.
* frame-unwind.h (frame_prev_register_ftype): Ditto.
* frame.c (frame_pop, frame_register, frame_unwind_register)
(get_frame_register, frame_unwind_register_signed)
(frame_unwind_register_unsigned, frame_unwind_unsigned_register)
(frame_register_read, get_frame_memory): Update.
* trad-frame.c (trad_frame_get_prev_register): Update.
(trad_frame_get_register): Update.
* gdbcore.h (deprecated_read_memory_nobpt, read_memory): Ditto.
* breakpoint.c (deprecated_read_memory_nobpt): Update.
* corefile.c (read_memory): Update.
* tramp-frame.c (tramp_frame_prev_register): Update.
* valops.c (value_assign): Update.
* sentinel-frame.c (sentinel_frame_prev_register): Update.
* std-regs.c (value_of_builtin_frame_fp_reg)
(value_of_builtin_frame_pc_reg): Update.
* infcmd.c (default_print_registers_info): Update
* dummy-frame.c (dummy_frame_prev_register): Update.
* findvar.c (value_of_register, value_from_register): Update.
* tui/tui-regs.c (tui_register_format, tui_get_register): Update.
* mi/mi-main.c (register_changed_p, get_register): Update.

19 years agoFix typo
Nick Clifton [Sun, 22 May 2005 05:55:15 +0000 (05:55 +0000)]
Fix typo

19 years ago * config/tc-hppa.c (pa_ip): Promote architecture from PA 1.0 to 1.1
Dave Anglin [Sun, 22 May 2005 01:40:28 +0000 (01:40 +0000)]
* config/tc-hppa.c (pa_ip): Promote architecture from PA 1.0 to 1.1
only if an instruction match is found.

19 years agodaily update
Alan Modra [Sun, 22 May 2005 00:00:04 +0000 (00:00 +0000)]
daily update

19 years ago*** empty log message ***
gdbadmin [Sun, 22 May 2005 00:00:02 +0000 (00:00 +0000)]
*** empty log message ***

19 years ago2005-05-21 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Sat, 21 May 2005 23:43:59 +0000 (23:43 +0000)]
2005-05-21  H.J. Lu  <hongjiu.lu@intel.com>

* Makefile.am (ld.1): Revert the last 2 changes.
(info-recursive): Depend on ld.1.
* Makefile.in: Regenerated.

19 years ago2005-05-21 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Sat, 21 May 2005 22:22:20 +0000 (22:22 +0000)]
2005-05-21  H.J. Lu  <hongjiu.lu@intel.com>

* Makefile.am (ld.1): Depend on "info" instead of
"configdoc.texi ldver.texi".
* Makefile.in: Regenerated.

19 years ago2005-05-21 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Sat, 21 May 2005 21:31:13 +0000 (21:31 +0000)]
2005-05-21  H.J. Lu  <hongjiu.lu@intel.com>

* Makefile.am (ld.1): Depend on "info".
* Makefile.in: Regenerated.

19 years agodaily update
Alan Modra [Sat, 21 May 2005 00:00:07 +0000 (00:00 +0000)]
daily update

19 years ago*** empty log message ***
gdbadmin [Sat, 21 May 2005 00:00:04 +0000 (00:00 +0000)]
*** empty log message ***

19 years ago * elf32-i386.c (elf_i386_adjust_dynamic_symbol): Don't eliminate
Daniel Jacobowitz [Fri, 20 May 2005 22:02:08 +0000 (22:02 +0000)]
* elf32-i386.c (elf_i386_adjust_dynamic_symbol): Don't eliminate
copy relocations for VxWorks.

19 years agobfd/
Daniel Jacobowitz [Fri, 20 May 2005 21:57:12 +0000 (21:57 +0000)]
bfd/
* bfd/elf32-ppc.c (struct ppc_elf_link_hash_entry): Add new field
has_sda_refs.
(ppc_elf_copy_indirect_symbol): Copy has_sda_refs.
(ppc_elf_check_relocs): Set has_sda_refs.
(ppc_elf_adjust_dynamic_symbol): Check has_sda_refs before eliminating
copy relocations.  Use has_sda_refs to place variables in .sbss.
(ppc_elf_finish_dynamic_symbol): Use has_sda_refs to place variables in
.sbss.
ld/testsuite/
* ld-powerpc/sdalib.s, ld-powerpc/sdadyn.s, ld-powerpc/sdadyn.d: New
files.
* ld-powerpc/powerpc.exp: Run the new test.

19 years ago * elf32-xtensa.c (bfd_elf_xtensa_reloc): Make sure that
Bob Wilson [Fri, 20 May 2005 19:53:18 +0000 (19:53 +0000)]
* elf32-xtensa.c (bfd_elf_xtensa_reloc): Make sure that
xtensa_default_isa is initialized.

19 years ago * ld-undefined/undefined.exp: Revert xfail for xtensa-*-*.
Bob Wilson [Fri, 20 May 2005 19:09:54 +0000 (19:09 +0000)]
* ld-undefined/undefined.exp: Revert xfail for xtensa-*-*.

19 years ago * config/tc-xtensa.c (xg_assemble_vliw_tokens): Change subtraction
Bob Wilson [Fri, 20 May 2005 19:01:56 +0000 (19:01 +0000)]
* config/tc-xtensa.c (xg_assemble_vliw_tokens): Change subtraction
to addition in argument to xtensa_dwarf2_emit_insn.

19 years ago * configure.ac: Fix bad description of _MSE_INT_H that caused each
Eli Zaretskii [Fri, 20 May 2005 18:17:47 +0000 (18:17 +0000)]
* configure.ac: Fix bad description of _MSE_INT_H that caused each
word in config.in to be enclosed in [].
* config.in: Regenerate.

19 years ago*** empty log message ***
Eli Zaretskii [Fri, 20 May 2005 18:07:12 +0000 (18:07 +0000)]
*** empty log message ***

19 years ago * configure, config.in: Regenerate.
Eli Zaretskii [Fri, 20 May 2005 18:06:37 +0000 (18:06 +0000)]
* configure, config.in: Regenerate.

19 years ago*** empty log message ***
Eli Zaretskii [Fri, 20 May 2005 14:59:59 +0000 (14:59 +0000)]
*** empty log message ***

19 years ago * gdb.texinfo (Numbers): Explain the example and make the wording
Eli Zaretskii [Fri, 20 May 2005 14:58:38 +0000 (14:58 +0000)]
* gdb.texinfo (Numbers): Explain the example and make the wording
more acurate.

19 years ago * configure.ac: Add snprintf and vsnprintf to AC_CHECK_DECLS.
Eli Zaretskii [Fri, 20 May 2005 11:32:51 +0000 (11:32 +0000)]
* configure.ac: Add snprintf and vsnprintf to AC_CHECK_DECLS.

19 years ago2005-05-20 Paolo Bonzini <bonzini@gnu.org>
Paolo Bonzini [Fri, 20 May 2005 07:16:11 +0000 (07:16 +0000)]
2005-05-20  Paolo Bonzini  <bonzini@gnu.org>

* Makefile.def (configure-gcc): Depend on binutils having been built.
(all-gcc): No need to do it here.
* Makefile.in: Regenerate.

19 years ago * alpha-tdep.c (fp_register_zero_p): New function.
Joel Brobecker [Fri, 20 May 2005 06:56:00 +0000 (06:56 +0000)]
    * alpha-tdep.c (fp_register_zero_p): New function.
        (fp_register_sign_bit): New function.
        (alpha_next_pc): Add support for floating-point control instructions.

19 years ago * elf32-ppc.c (allocate_dynrelocs): Correct plt offset assigned
Alan Modra [Fri, 20 May 2005 02:37:21 +0000 (02:37 +0000)]
* elf32-ppc.c (allocate_dynrelocs): Correct plt offset assigned
for second and subsequent list entries.  Only allocate multiple
glink stubs when shared or pie.
(ppc_elf_finish_dynamic_symbol): Break out early when only one
glink stub is needed.

19 years ago*** empty log message ***
gdbadmin [Fri, 20 May 2005 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

19 years agodaily update
Alan Modra [Fri, 20 May 2005 00:00:07 +0000 (00:00 +0000)]
daily update

19 years ago * bfd/Makefile.am, binutils/Makefile.am, etc/Makefile.in
Zack Weinberg [Thu, 19 May 2005 23:49:52 +0000 (23:49 +0000)]
* bfd/Makefile.am, binutils/Makefile.am, etc/Makefile.in
* gas/Makefile.am: Have 'all' depend on 'info'.
* ld/Makefile.am: Have 'all' depend on 'info' and 'ld.1'.
* bfd/Makefile.in, binutils/Makefile.in, gas/Makefile.in
* ld/Makefile.in: Regenerate.

19 years ago2005-05-19 Paul Brook <paul@codesourcery.com>
Paul Brook [Thu, 19 May 2005 20:25:24 +0000 (20:25 +0000)]
2005-05-19  Paul Brook  <paul@codesourcery.com>

* configure.in: Rewrite misleading error message when requested
language cannot be built.
* configure: Regenerate.

19 years ago2005-05-19 Andrew Cagney <cagney@gnu.org>
Andrew Cagney [Thu, 19 May 2005 17:55:53 +0000 (17:55 +0000)]
2005-05-19  Andrew Cagney  <cagney@gnu.org>

* defs.h (extract_signed_integer, extract_unsigned_integer)
(extract_long_unsigned_integer, extract_typed_address)
(store_signed_integer, store_unsigned_integer)
(store_typed_address): Use gdb_byte for byte buffer parameters.
(push_bytes, push_word): Delete declaration.
* valops.c (push_bytes, push_word): Delete function.
* findvar.c (extract_signed_integer, extract_unsigned_integer)
(extract_typed_address, store_signed_integer)
(store_unsigned_integer): Update.

Index: defs.h
===================================================================
RCS file: /cvs/src/src/gdb/defs.h,v
retrieving revision 1.185
diff -p -u -r1.185 defs.h
--- defs.h 9 May 2005 17:20:18 -0000 1.185
+++ defs.h 19 May 2005 17:54:12 -0000
@@ -1042,27 +1042,25 @@ enum { MAX_REGISTER_SIZE = 16 };

 /* In findvar.c.  */

-extern LONGEST extract_signed_integer (const void *, int);
+extern LONGEST extract_signed_integer (const gdb_byte *, int);

-extern ULONGEST extract_unsigned_integer (const void *, int);
+extern ULONGEST extract_unsigned_integer (const gdb_byte *, int);

-extern int extract_long_unsigned_integer (const void *, int, LONGEST *);
+extern int extract_long_unsigned_integer (const gdb_byte *, int, LONGEST *);

-extern CORE_ADDR extract_typed_address (const void *buf, struct type *type);
+extern CORE_ADDR extract_typed_address (const gdb_byte *buf,
+ struct type *type);

-extern void store_signed_integer (void *, int, LONGEST);
+extern void store_signed_integer (gdb_byte *, int, LONGEST);

-extern void store_unsigned_integer (void *, int, ULONGEST);
+extern void store_unsigned_integer (gdb_byte *, int, ULONGEST);

-extern void store_typed_address (void *buf, struct type *type, CORE_ADDR addr);
+extern void store_typed_address (gdb_byte *buf, struct type *type,
+  CORE_ADDR addr);

 \f
 /* From valops.c */

-extern CORE_ADDR push_bytes (CORE_ADDR, char *, int);
-
-extern CORE_ADDR push_word (CORE_ADDR, ULONGEST);
-
 extern int watchdog;

 /* Hooks for alternate command interfaces.  */
Index: findvar.c
===================================================================
RCS file: /cvs/src/src/gdb/findvar.c,v
retrieving revision 1.91
diff -p -u -r1.91 findvar.c
--- findvar.c 14 May 2005 06:07:41 -0000 1.91
+++ findvar.c 19 May 2005 17:54:12 -0000
@@ -49,7 +49,7 @@ you lose
 #endif

 LONGEST
-extract_signed_integer (const void *addr, int len)
+extract_signed_integer (const gdb_byte *addr, int len)
 {
   LONGEST retval;
   const unsigned char *p;
@@ -83,7 +83,7 @@ That operation is not available on integ
 }

 ULONGEST
-extract_unsigned_integer (const void *addr, int len)
+extract_unsigned_integer (const gdb_byte *addr, int len)
 {
   ULONGEST retval;
   const unsigned char *p;
@@ -117,16 +117,18 @@ That operation is not available on integ
    function returns 1 and sets *PVAL.  Otherwise it returns 0.  */

 int
-extract_long_unsigned_integer (const void *addr, int orig_len, LONGEST *pval)
+extract_long_unsigned_integer (const gdb_byte *addr, int orig_len,
+        LONGEST *pval)
 {
-  char *p, *first_addr;
+  const gdb_byte *p;
+  const gdb_byte *first_addr;
   int len;

   len = orig_len;
   if (TARGET_BYTE_ORDER == BFD_ENDIAN_BIG)
     {
-      for (p = (char *) addr;
-    len > (int) sizeof (LONGEST) && p < (char *) addr + orig_len;
+      for (p = addr;
+    len > (int) sizeof (LONGEST) && p < addr + orig_len;
     p++)
  {
    if (*p == 0)
@@ -138,9 +140,9 @@ extract_long_unsigned_integer (const voi
     }
   else
     {
-      first_addr = (char *) addr;
-      for (p = (char *) addr + orig_len - 1;
-    len > (int) sizeof (LONGEST) && p >= (char *) addr;
+      first_addr = addr;
+      for (p = addr + orig_len - 1;
+    len > (int) sizeof (LONGEST) && p >= addr;
     p--)
  {
    if (*p == 0)
@@ -164,7 +166,7 @@ extract_long_unsigned_integer (const voi
 /* Treat the bytes at BUF as a pointer of type TYPE, and return the
    address it represents.  */
 CORE_ADDR
-extract_typed_address (const void *buf, struct type *type)
+extract_typed_address (const gdb_byte *buf, struct type *type)
 {
   if (TYPE_CODE (type) != TYPE_CODE_PTR
       && TYPE_CODE (type) != TYPE_CODE_REF)
@@ -177,11 +179,11 @@ extract_typed_address (const void *buf,

 void
-store_signed_integer (void *addr, int len, LONGEST val)
+store_signed_integer (gdb_byte *addr, int len, LONGEST val)
 {
-  unsigned char *p;
-  unsigned char *startaddr = (unsigned char *) addr;
-  unsigned char *endaddr = startaddr + len;
+  gdb_byte *p;
+  gdb_byte *startaddr = addr;
+  gdb_byte *endaddr = startaddr + len;

   /* Start at the least significant end of the integer, and work towards
      the most significant.  */
@@ -204,7 +206,7 @@ store_signed_integer (void *addr, int le
 }

 void
-store_unsigned_integer (void *addr, int len, ULONGEST val)
+store_unsigned_integer (gdb_byte *addr, int len, ULONGEST val)
 {
   unsigned char *p;
   unsigned char *startaddr = (unsigned char *) addr;
@@ -233,7 +235,7 @@ store_unsigned_integer (void *addr, int
 /* Store the address ADDR as a pointer of type TYPE at BUF, in target
    form.  */
 void
-store_typed_address (void *buf, struct type *type, CORE_ADDR addr)
+store_typed_address (gdb_byte *buf, struct type *type, CORE_ADDR addr)
 {
   if (TYPE_CODE (type) != TYPE_CODE_PTR
       && TYPE_CODE (type) != TYPE_CODE_REF)
Index: valops.c
===================================================================
RCS file: /cvs/src/src/gdb/valops.c,v
retrieving revision 1.157
diff -p -u -r1.157 valops.c
--- valops.c 9 May 2005 21:20:35 -0000 1.157
+++ valops.c 19 May 2005 17:54:12 -0000
@@ -933,54 +933,6 @@ value_ind (struct value *arg1)
   return 0; /* For lint -- never reached */
 }
 \f
-/* Pushing small parts of stack frames.  */
-
-/* Push one word (the size of object that a register holds).  */
-
-CORE_ADDR
-push_word (CORE_ADDR sp, ULONGEST word)
-{
-  int len = DEPRECATED_REGISTER_SIZE;
-  char buffer[MAX_REGISTER_SIZE];
-
-  store_unsigned_integer (buffer, len, word);
-  if (INNER_THAN (1, 2))
-    {
-      /* stack grows downward */
-      sp -= len;
-      write_memory (sp, buffer, len);
-    }
-  else
-    {
-      /* stack grows upward */
-      write_memory (sp, buffer, len);
-      sp += len;
-    }
-
-  return sp;
-}
-
-/* Push LEN bytes with data at BUFFER.  */
-
-CORE_ADDR
-push_bytes (CORE_ADDR sp, char *buffer, int len)
-{
-  if (INNER_THAN (1, 2))
-    {
-      /* stack grows downward */
-      sp -= len;
-      write_memory (sp, buffer, len);
-    }
-  else
-    {
-      /* stack grows upward */
-      write_memory (sp, buffer, len);
-      sp += len;
-    }
-
-  return sp;
-}
-
 /* Create a value for an array by allocating space in the inferior, copying
    the data into that space, and then setting up an array value.

19 years ago2005-05-19 Andrew Cagney <cagney@gnu.org>
Andrew Cagney [Thu, 19 May 2005 16:37:09 +0000 (16:37 +0000)]
2005-05-19  Andrew Cagney  <cagney@gnu.org>

* regcache.h (regcache_raw_read, regcache_raw_write)
(regcache_raw_read_part, regcache_raw_write_part)
(regcache_cooked_read_part, regcache_cooked_write_part)
(regcache_cooked_read, regcache_cooked_write)
(regcache_raw_supply, regcache_raw_collect)
(regcache_cooked_read_ftype, regcache_save, regcache_restore)
(deprecated_read_register_gen, deprecated_write_register_gen)
(deprecated_read_register_bytes, deprecated_write_register_bytes)
(deprecated_grub_regcache_for_registers): Use gdb_byte for byte
buffer parameters.
* ia64-tdep.c (ia64_extract_return_value): Update.
* frame.c (do_frame_register_read): Update.
* regcache.c (deprecated_grub_regcache_for_registers)
(struct regcache, regcache_save, regcache_restore, regcache_cpy)
(do_cooked_read, regcache_xmalloc, register_buffer)
(deprecated_read_register_bytes, regcache_raw_read)
(regcache_raw_read_signed, regcache_raw_read_unsigned)
(deprecated_read_register_gen, regcache_cooked_read)
(regcache_cooked_read_signed, regcache_cooked_read_unsigned)
(deprecated_write_register_gen, regcache_cooked_write)
(deprecated_write_register_bytes, regcache_raw_read_part)
(regcache_raw_write_part, regcache_cooked_read_part)
(regcache_cooked_write_part, read_register, regcache_raw_supply):

19 years ago * config/tc-ppc.c (ppc_force_relocation): Add BFD_RELOC_24_PLT_PCREL.
Alan Modra [Thu, 19 May 2005 08:27:34 +0000 (08:27 +0000)]
* config/tc-ppc.c (ppc_force_relocation): Add BFD_RELOC_24_PLT_PCREL.

19 years ago * elf-bfd.h (struct elf_link_hash_table): Delete init_refcount and
Alan Modra [Thu, 19 May 2005 08:26:56 +0000 (08:26 +0000)]
* elf-bfd.h (struct elf_link_hash_table): Delete init_refcount and
init_offset.  Add init_got_refcount, init_plt_refcount,
init_got_offset and init_plt_offset.
* elf.c (_bfd_elf_link_hash_newfunc): Adjust for above change.
(_bfd_elf_link_hash_hide_symbol): Likewise.
(_bfd_elf_link_hash_table_init): Likewise.
* elf32-hppa.c (elf32_hppa_hide_symbol): Likewise.
* elf64-ppc.c (ppc64_elf_link_hash_table_create): Likewise.
* elflink.c (_bfd_elf_adjust_dynamic_symbol): Likewise.
(bfd_elf_size_dynamic_sections): Likewise.
* elf32-ppc.c (GLINK_PLTRESOLVE): Now 16 insns.
(LWZU_0_X_12, LWZ_0_4_30, LWZ_0_X_12, LWZ_11_X_11, LWZ_11_X_30,
LWZ_12_4_12, LWZ_12_8_30, LWZ_12_X_12, SUB_11_11_30): Delete.
(ADDIS_12_12, BCL_20_31, LWZU_0_12, LWZ_0_12, LWZ_11_11, LWZ_11_30,
LWZ_12_12, MFLR_0, MFLR_12, MTLR_0, SUB_11_11_12): Define.
(struct plt_entry): New.
(ppc_elf_link_hash_table_create): Set new init_plt fields.
(ppc_elf_copy_indirect_symbol): Handle merge of plt plist.  Don't
use _bfd_elf_link_hash_copy_indirect.
(update_plt_info, find_plt_ent): New functions.
(ppc_elf_check_relocs): Handle R_PPC_PLTREL24 with non-zero addend
and adjust for use of plt list rather than refcount.
(ppc_elf_gc_sweep_hook): Likewise.
(ppc_elf_tls_optimize): Likewise.
(ppc_elf_adjust_dynamic_symbol): Likewise.
(allocate_dynrelocs): Likewise.
(ppc_elf_relax_section): Likewise.
(ppc_elf_relocate_section): Likewise.  Adjust R_PPC_PLTREL24 addends
when performing a relocatable link.
(ppc_elf_finish_dynamic_symbol): Likewise.  Write .glink stubs here..
(ppc_elf_finish_dynamic_sections): ..rather than here.  Use new
pic resolver stub.

19 years ago * config/tc-ppc.c (parse_cpu): Handle "-mpower5".
Alan Modra [Thu, 19 May 2005 07:02:14 +0000 (07:02 +0000)]
* config/tc-ppc.c (parse_cpu): Handle "-mpower5".
(md_show_usage): Document it.
(ppc_setup_opcodes): Insert POWER5 mnemonics.
* doc/c-ppc.texi (PowerPC-Opts): Document "-mpower5".

19 years ago * ppc-dis.c (powerpc_dialect): Handle "-Mpower5".
Alan Modra [Thu, 19 May 2005 07:00:40 +0000 (07:00 +0000)]
* ppc-dis.c (powerpc_dialect): Handle "-Mpower5".
(print_ppc_disassembler_options): Document it.
* ppc-opc.c (SCV_LEV): Define.
(LEV): Allow optional operand.
(POWER5): Define.
(powerpc_opcodes): Extend "sc".  Adjust "svc" and "svcl".  Add
"hrfid", "popcntb", "fsqrtes", "fsqrtes.", "fre" and "fre.".

19 years ago * ppc.h (PPC_OPCODE_POWER5): Define.
Alan Modra [Thu, 19 May 2005 06:59:36 +0000 (06:59 +0000)]
* ppc.h (PPC_OPCODE_POWER5): Define.

19 years ago * elf.c (assign_file_positions_for_segments): Use maximum of
Alan Modra [Thu, 19 May 2005 06:51:01 +0000 (06:51 +0000)]
* elf.c (assign_file_positions_for_segments): Use maximum of
maxpagesize and section alignment when adjusting initial
segment offset and section offsets.

19 years agogas/
Jan Beulich [Thu, 19 May 2005 06:32:01 +0000 (06:32 +0000)]
gas/
2005-05-19  Jan Beulich  <jbeulich@novell.com>

* config/tc-ia64.c (dot_endp): Don't use global symbol for unwind
relocations in unwind section.

gas/testsuite/
2005-05-19  Jan Beulich  <jbeulich@novell.com>

* gas/ia64/reloc-uw.s: New.
* gas/ia64/reloc-uw.d: New.
* gas/ia64/reloc-uw-ilp32.d: New.
* gas/ia64/ia64.exp: Run new test.

19 years ago2005-05-19 Kelley Cook <kcook@gcc.gnu.org>
Kelley Cook [Thu, 19 May 2005 03:50:19 +0000 (03:50 +0000)]
2005-05-19  Kelley Cook  <kcook@gcc.gnu.org>

* accross.m4: Delete file.

19 years ago2005-05-19 Kelley Cook <kcook@gcc.gnu.org>
Kelley Cook [Thu, 19 May 2005 03:18:04 +0000 (03:18 +0000)]
2005-05-19  Kelley Cook  <kcook@gcc.gnu.org>

* Makefile.in:  Regenerate.

19 years ago*** empty log message ***
gdbadmin [Thu, 19 May 2005 00:00:34 +0000 (00:00 +0000)]
*** empty log message ***

19 years agodaily update
Alan Modra [Thu, 19 May 2005 00:00:05 +0000 (00:00 +0000)]
daily update

19 years agobinutils/ChangeLog
Ben Elliston [Wed, 18 May 2005 22:42:09 +0000 (22:42 +0000)]
binutils/ChangeLog
* readelf.c (read_and_display_attr_value): Handle a DW_AT_encoding
value of DW_ATE_GNU_decimal_float.

include/elf/ChangeLog
* dwarf2.h (enum dwarf_type): Assign DW_ATE_GNU_decimal_float from
the user-defined encoding space pending inclusion in the standard.

19 years ago * bfd/elf32-arm.c: Make all #ifndef OLD_ARM_ABI blocks
Zack Weinberg [Wed, 18 May 2005 16:48:15 +0000 (16:48 +0000)]
* bfd/elf32-arm.c: Make all #ifndef OLD_ARM_ABI blocks
unconditional.
* include/elf/arm.h: Make all #ifndef OLD_ARM_ABI blocks
unconditional, delete all #ifdef OLD_ARM_ABI blocks.

19 years ago2005-05-18 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Wed, 18 May 2005 13:41:59 +0000 (13:41 +0000)]
2005-05-18  H.J. Lu  <hongjiu.lu@intel.com>

* elf.c (group_signature): Check if the symbol table section is
correct.

19 years ago(md_apply_fix3): Only use the insertion routine if one exists.
Nick Clifton [Wed, 18 May 2005 09:42:13 +0000 (09:42 +0000)]
(md_apply_fix3): Only use the insertion routine if one exists.
Ignore any error messages it may produce, just allow it to perform the insertion.

19 years ago * MAINTAINERS: Undelete v850.
Corinna Vinschen [Wed, 18 May 2005 08:52:21 +0000 (08:52 +0000)]
* MAINTAINERS: Undelete v850.
* Makefile.in: Re-add v850-tdep.o dependencies.
* configure.tgt: Re-add v850.
* v850-tdep.c: Reorder code slightly.  Add register number enumerator.
(struct v850_frame_cache): New structure.
(v850_processor_type_table): Remove. Move functionality into
v850_register_name, v850e_register_name and v850_gdbarch_init.
(v850_register_name): New function.
(v850e_register_name): New function.
(struct prologue_info): Remove definition.
(v850_register_type): New function.
(v850_type_is_scalar): New function.
(v850_use_struct_convention): Align to gcc behaviour.
(v850_handle_prepare): Renamed from handle_prepare. Change third
parameter to struct v850_frame_cache *.
(v850_handle_pushm): Renamed from handle_pushm. Change third parameter
to struct v850_frame_cache *.
(v850_is_save_register): New function to evaluate if a register is
caller-save.
(v850_analyze_prologue): Replace v850_scan_prologue.  Change to support
new frame code.
(v850_init_extra_frame_info): Remove.
(v850_frame_chain): Remove.
(v850_find_callers_reg): Remove.
(v850_skip_prologue): Make static.
(v850_pop_frame): Remove.
(v850_frame_align): New function.
(v850_push_dummy_call): Replace v850_push_arguments.
(v850_push_return_address): Remove.
(v850_extract_return_value): New function.
(v850_store_return_value): New function.
(v850_return_value): New function.
(v850_frame_saved_pc): Remove.
(v850_breakpoint_from_pc): New function.
(v850_alloc_frame_cache): New function.
(v850_fix_call_dummy): Remove.
(v850_frame_cache): New function.
(v850_target_architecture_hook): Remove.
(v850_frame_prev_register): New function.
(v850_frame_this_id): New function.
(v850_frame_unwind): New structure.
(v850_frame_sniffer): New function.
(v850_unwind_sp): New function.
(v850_unwind_pc): New function.
(v850_unwind_dummy_id): New function.
(v850_frame_base_address): New function.
(v850_frame_base): New structure.
(v850_gdbarch_init): New function.
* config/v850/v850.mt: Undelete.  Drop TM_FILE.

19 years agogas/testsuite/
Jan Beulich [Wed, 18 May 2005 06:12:08 +0000 (06:12 +0000)]
gas/testsuite/
2005-05-18  Jan Beulich  <jbeulich@novell.com>

* gas/all/altmacro.s: Parenthesize operand of %.

19 years agoinclude/elf:
Zack Weinberg [Wed, 18 May 2005 05:40:12 +0000 (05:40 +0000)]
include/elf:
* arm.h: Import complete list of official relocation names
and numbers from AAELF.  Define FAKE_RELOCs for old names.
Remove a few old names no longer used anywhere.

bfd:
* elf32-arm.c: Wherever possible, use official reloc names
from AAELF.
(elf32_arm_howto_table, elf32_arm_tls_gd32_howto)
(elf32_arm_tls_ldo32_howto, elf32_arm_tls_ldm32_howto)
(elf32_arm_tls_le32_howto, elf32_arm_tls_ie32_howto)
(elf32_arm_vtinherit_howto, elf32_arm_vtentry_howto)
(elf32_arm_pc11_howto, elf32_arm_thm_pc9_howto, elf32_arm_got_prel)
(elf32_arm_r_howto): Replace with elf32_arm_howto_table_1,
elf32_arm_howto_table_2, and elf32_arm_howto_table_3.
Add many new relocations from AAELF.
(elf32_arm_howto_from_type): Update to match.
(elf32_arm_reloc_map): Add entries for R_ARM_THM_JUMP24,
R_ARM_THM_JUMP11, R_ARM_THM_JUMP19, R_ARM_THM_JUMP8,
R_ARM_THM_JUMP6, R_ARM_GNU_VTINHERIT, and R_ARM_GNU_VTENTRY.
(elf32_arm_reloc_type_lookup): Use elf32_arm_howto_from_type.
(elf32_arm_final_link_relocate): Add support for
R_ARM_THM_JUMP24, R_ARM_THM_JUMP19, R_ARM_THM_JUMP6.  Remove
case entries redundant with default.

* reloc.c: Reorganize ARM relocations.  Add Thumb
assembler-internal relocations BFD_RELOC_ARM_T32_OFFSET_U8,
BFD_RELOC_ARM_T32_OFFSET_IMM, BFD_RELOC_ARM_T32_IMMEDIATE.
Add visible relocations BFD_RELOC_THUMB_PCREL_BRANCH7,
BFD_RELOC_THUMB_BRANCH20, BFD_RELOC_THUMB_BRANCH25.
Delete unused relocations BFD_RELOC_ARM_GOT12, BFD_RELOC_ARM_COPY.
* bfd-in2.h, libbfd.h: Regenerate.

opcodes:
* arm-dis.c (thumb_opcodes): Add disassembly for V6T2 16-bit
instructions.  Adjust disassembly of some opcodes to match
unified syntax.
(thumb32_opcodes): New table.
(print_insn_thumb): Rename print_insn_thumb16; don't handle
two-halfword branches here.
(print_insn_thumb32): New function.
(print_insn): Choose among print_insn_arm, print_insn_thumb16,
and print_insn_thumb32.  Be consistent about order of
halfwords when printing 32-bit instructions.

gas:
* hash.c (hash_lookup): Add len parameter.  All callers changed.
(hash_find_n): New interface.
* hash.h: Prototype hash_find_n.
* sb.c: Include as.h.
(scrub_from_sb, sb_to_scrub, scrub_position): New statics.
(sb_scrub_and_add_sb): New interface.
* sb.h: Prototype sb_scrub_and_add_sb.
* input-scrub.c (input_scrub_include_sb): Use sb_scrub_and_add_sb.

* config/tc-arm.h (TC_FORCE_RELOCATION_LOCAL): Remove
reference to BFD_RELOC_ARM_GOT12 which is never generated.
* config/tc-arm.c: Rewrite, adding Thumb-2 support.

gas/testsuite:
* gas/arm/arm.exp: Convert all existing "gas_test" tests to
"run_dump_test" tests.  Run more tests unconditionally.  Run new tests.
* gas/arm/arch4t.s, gas/arm/arch6zk.s, gas/arm/arm3.s, gas/arm/arm6.s
* gas/arm/arm7dm.s, gas/arm/bignum1.s, gas/arm/float.s
* gas/arm/immed.s, gas/arm/iwmmxt.s, gas/arm/offset.s, gas/arm/thumb.s:
Adjust to work as a dump test.
* gas/arm/arch4t.d, gas/arm/arch6zk.d, gas/arm/arm3.d, gas/arm/arm6.d
* gas/arm/arm7dm.d, gas/arm/bignum1.d, gas/arm/float.d
* gas/arm/immed.d, gas/arm/iwmmxt.d, gas/arm/offset.d, gas/arm/thumb.d:
New files.

* gas/arm/armv1-bad.l, gas/arm/armv1-bad.s: Remove tests for
diagnostics that don't happen in the first pass anymore.

* gas/arm/iwmmxt-bad.l, gas/arm/r15-bad.l, gas/arm/req.l
* gas/arm/vfp-bad.l:
Update expected diagnostics.
* gas/arm/pic.d: Update expected reloc name.
* gas/arm/thumbv6.d: CPY no longer appears in disassembly.
* gas/arm/r15-bad.s: Avoid two-argument mul.
* gas/arm/req.s: Adjust comments.
* gas/arm/maverick.d, gas/arm/maverick.s: Avoid inappropriate
use of PC.

* gas/arm/macro-1.d, gas/arm/macro1.s
* gas/arm/t16-bad.l, gas/arm/t16-bad.s
* gas/arm/tcompat.d, gas/arm/tcompat.s
* gas/arm/tcompat2.d, gas/arm/tcompat2.s
* gas/arm/thumb32.d, gas/arm/thumb32.s
New test pair.

ld/testsuite:
* ld-arm/mixed-app.d: Adjust expected disassembly a little.

19 years ago2005-05-17 Daniel Jacobowitz <dan@codesourcery.com>
Daniel Jacobowitz [Wed, 18 May 2005 03:41:59 +0000 (03:41 +0000)]
2005-05-17  Daniel Jacobowitz  <dan@codesourcery.com>
    Dennis Brueni  <dennis@slickedit.com>

gdb/
* stack.c (print_frame): In MI mode, output a fullname attribute
with the stack frame.
gdb/doc/
* gdb.texinfo (GDB/MI Breakpoint Table Commands)
(GDB/MI Data Manipulation, GDB/MI Program Control)
(GDB/MI Stack Manipulation): Update examples to include the fullname
attribute in stack frames.
gdb/testsuite/
* gdb.mi/mi-cli.exp, gdb.mi/mi-return.exp, gdb.mi/mi-stack.exp,
gdb.mi/mi-stepi.exp, gdb.mi/mi-syn-frame.exp, gdb.mi/mi-until.exp,
gdb.mi/mi-var-display.exp, gdb.mi/mi-watch.exp, gdb.mi/mi2-cli.exp,
gdb.mi/mi2-return.exp, gdb.mi/mi2-stack.exp,
gdb.mi/mi2-syn-frame.exp, gdb.mi/mi2-until.exp,
gdb.mi/mi2-var-display.exp: Expect fullname field in stack frames.
* lib/mi-support.exp (mi_runto, mi_execute_to_helper): Likewise.

19 years agoUpdate copyright years for last commit.
Daniel Jacobowitz [Wed, 18 May 2005 01:55:46 +0000 (01:55 +0000)]
Update copyright years for last commit.

19 years ago * Make-common.in (install-common, installdirs): Honor $DESTDIR.
Daniel Jacobowitz [Wed, 18 May 2005 01:54:39 +0000 (01:54 +0000)]
* Make-common.in (install-common, installdirs): Honor $DESTDIR.

19 years ago * gdb.base/shreloc.exp: Use gdb_compile_shlib. Add support for
Daniel Jacobowitz [Wed, 18 May 2005 01:38:46 +0000 (01:38 +0000)]
* gdb.base/shreloc.exp: Use gdb_compile_shlib.  Add support for
IBM's xlc compiler.
* gdb.base/shreloc1.c (fn_1): Reference variable static_var_1.
* gdb.base/shreloc2.c (fn_2): Reference variable static_var_2.

19 years agodaily update
Alan Modra [Wed, 18 May 2005 00:00:05 +0000 (00:00 +0000)]
daily update

19 years ago*** empty log message ***
gdbadmin [Wed, 18 May 2005 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

19 years ago * elf.c (_bfd_elf_write_object_contents): Check for non-NULL
Daniel Jacobowitz [Tue, 17 May 2005 19:44:55 +0000 (19:44 +0000)]
* elf.c (_bfd_elf_write_object_contents): Check for non-NULL
elf_shstrtab.
* format.c (bfd_check_format_matches): Set output_has_begun
for both_direction.
* section.c (bfd_set_section_contents): Use bfd_write_p.  Remove
special case for both_direction.

19 years agobinutils/
Daniel Jacobowitz [Tue, 17 May 2005 19:43:52 +0000 (19:43 +0000)]
binutils/
* doc/Makefile.am (config.texi): Don't use $<.
* doc/Makefile.in: Regenerated.
ld/
* Makefile.am (ldver.texi): Don't use $<.
* Makefile.in: Regenerated.
gas/
* doc/Makefile.am (gasver.texi): Don't use $<.
* doc/Makefile.in: Regenerated.

19 years ago * Makefile.am (AM_MAKEINFOFLAGS, TEXI2DVI): Explicitly include
Daniel Jacobowitz [Tue, 17 May 2005 19:41:29 +0000 (19:41 +0000)]
* Makefile.am (AM_MAKEINFOFLAGS, TEXI2DVI): Explicitly include
$(srcdir) before $(BFDDIR)/doc.
* Makefile.in: Regenerated.

19 years ago(group_signature): Check for a group section which is actually a (corrupt)
Nick Clifton [Tue, 17 May 2005 18:08:08 +0000 (18:08 +0000)]
(group_signature): Check for a group section which is actually a (corrupt)
symbol table section in disguise and prevent an infinite loop from occurring.

19 years ago2005-05-17 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Tue, 17 May 2005 17:26:27 +0000 (17:26 +0000)]
2005-05-17  H.J. Lu  <hongjiu.lu@intel.com>

* elfxx-ia64.c (elfNN_ia64_relax_brl): Undo the change made on
2005-02-16.

19 years ago2005-05-17 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Tue, 17 May 2005 17:23:37 +0000 (17:23 +0000)]
2005-05-17  H.J. Lu  <hongjiu.lu@intel.com>

* elfxx-ia64.c (elfNN_ia64_relax_br): Keep the original
predicate on slot 0 only if slot 0 isn't br.