external/binutils.git
23 years ago * gas/elf/ehopt0.s: New.
Richard Henderson [Mon, 14 May 2001 22:37:31 +0000 (22:37 +0000)]
    * gas/elf/ehopt0.s: New.
        * gas/elf/ehopt0.d: New.
        * gas/elf/elf.exp: Run it.

23 years agoRemove stray @item's.
Andrew Cagney [Mon, 14 May 2001 20:24:23 +0000 (20:24 +0000)]
Remove stray @item's.

23 years ago* config/tc-mn10300.c (md_assemble): Anchor dwarf2 line info
Alexandre Oliva [Mon, 14 May 2001 20:01:12 +0000 (20:01 +0000)]
* config/tc-mn10300.c (md_assemble): Anchor dwarf2 line info
before a relaxable insns.

23 years ago2001-05-14 Michael Snyder <msnyder@redhat.com>
Michael Snyder [Mon, 14 May 2001 19:02:00 +0000 (19:02 +0000)]
2001-05-14  Michael Snyder  <msnyder@redhat.com>

* remote.c (hex2bin):   Make first argument const.
Require explicit count, don't accept null-terminated str.
(remote_resume, remote_async_resume): White space fix-up.

23 years ago* symtab.c (lookup_symtab_1): Use lbasename (NAME) instead of
Mark Kettenis [Mon, 14 May 2001 18:49:54 +0000 (18:49 +0000)]
* symtab.c (lookup_symtab_1): Use lbasename (NAME) instead of
basename (NAME).  The FreeBSD basename returns a pointer to a
static buffer, even if it's simply returning a string identical to
its argument.
(lookup_partial_symtab): Likewise.

23 years ago2001-05-14 Michael Snyder <msnyder@redhat.com>
Michael Snyder [Mon, 14 May 2001 18:45:45 +0000 (18:45 +0000)]
2001-05-14  Michael Snyder  <msnyder@redhat.com>

        * solib.c, solib.h: Add comment for function no_shared_libraries.

23 years ago2001-05-14 Michael Snyder <msnyder@redhat.com>
Michael Snyder [Mon, 14 May 2001 18:31:35 +0000 (18:31 +0000)]
2001-05-14  Michael Snyder  <msnyder@redhat.com>

* remote.c (remote_write_bytes): Set nr_bytes to return value of
bin2hex.

23 years agoFix no_shared_libraries() declaration.
Kevin Buettner [Mon, 14 May 2001 18:09:05 +0000 (18:09 +0000)]
Fix no_shared_libraries() declaration.

23 years ago* ppc-opc.c (powerpc_opcodes): Fixed extended opcode field of
J.T. Conklin [Mon, 14 May 2001 17:20:13 +0000 (17:20 +0000)]
* ppc-opc.c (powerpc_opcodes): Fixed extended opcode field of
simplified mnemonics used for setting PPC750-specific special
purpose registers.

23 years agoOutput ``[...]'' when a list.
Andrew Cagney [Mon, 14 May 2001 16:59:49 +0000 (16:59 +0000)]
Output ``[...]'' when a list.

23 years ago* Makefile.am (ld.dvi): Search bfd/doc for texinfo files.
DJ Delorie [Mon, 14 May 2001 16:55:23 +0000 (16:55 +0000)]
* Makefile.am (ld.dvi): Search bfd/doc for texinfo files.
* Makefile.in: Ditto.

23 years ago* remote.c (remote_write_bytes): Set nr_bytes before returning it.
Andrew Cagney [Mon, 14 May 2001 16:48:01 +0000 (16:48 +0000)]
* remote.c (remote_write_bytes): Set nr_bytes before returning it.
* solib.h (no_shared_libraries): Declare.

23 years agoFix logic selecting a new architecture. Use the sequence:
Andrew Cagney [Mon, 14 May 2001 16:43:35 +0000 (16:43 +0000)]
Fix logic selecting a new architecture.  Use the sequence:
o provided by INFO
o hard-wired by (gdb) set ...
o reversed engineered from INFO.abfd
o default to previous architecture

23 years ago2001-05-14 H.J. Lu <hjl@gnu.org>
H.J. Lu [Mon, 14 May 2001 16:40:49 +0000 (16:40 +0000)]
2001-05-14  H.J. Lu <hjl@gnu.org>

* config.if (libc_interface): Set to -libc6.2- for cross
compiling to Linux/glibc 2.2.

23 years ago* Makefile.in (GDBvn.texi): Set GDBVN from ../version.in.
Andrew Cagney [Mon, 14 May 2001 16:18:50 +0000 (16:18 +0000)]
* Makefile.in (GDBvn.texi): Set GDBVN from ../version.in.

23 years ago* config/tc-mn10300.c (tc_gen_reloc): Don't reject differences
Alexandre Oliva [Sun, 13 May 2001 23:16:30 +0000 (23:16 +0000)]
* config/tc-mn10300.c (tc_gen_reloc): Don't reject differences
between symbols if the base symbol is in the current section;
emit a PC-relative relocation instead.

23 years agoAdd missing entry for change committed on 2001-01-28.
Michael Chastain [Sat, 12 May 2001 21:56:04 +0000 (21:56 +0000)]
Add missing entry for change committed on 2001-01-28.

23 years ago2001-05-12 Fernando Nasser <fnasser@redhat.com>
Fernando Nasser [Sat, 12 May 2001 21:05:59 +0000 (21:05 +0000)]
2001-05-12  Fernando Nasser  <fnasser@redhat.com>

* remote-e7000.c (e7000_open): Check for bad baud rate.
* remote-st.c (st2000_open): Ditto.

23 years ago2001-05-12 H.J. Lu <hjl@gnu.org>
H.J. Lu [Sat, 12 May 2001 15:19:22 +0000 (15:19 +0000)]
2001-05-12  H.J. Lu  <hjl@gnu.org>

* i386-dis.c (print_insn_i386): Always set `mod', `reg' and
`rm'.

23 years agoPeter Targett's backwards compatibility and other arc fixes.
Alan Modra [Sat, 12 May 2001 15:14:53 +0000 (15:14 +0000)]
Peter Targett's backwards compatibility and other arc fixes.

23 years ago * i386-dis.c (twobyte_has_modrm): Update table.
Alan Modra [Sat, 12 May 2001 12:07:10 +0000 (12:07 +0000)]
* i386-dis.c (twobyte_has_modrm): Update table.
(need_modrm): Give it file scope.
(MODRM_CHECK): Define.
(dofloat): Use MODRM_CHECK.
(OP_E): Likewise.
(OP_EM): Likewise.
(OP_EX): Likewise.
and fix testsuite yet again now that we are getting correct disassembly.

23 years agoOops, wrong address for pmuludq insn.
Alan Modra [Sat, 12 May 2001 10:28:20 +0000 (10:28 +0000)]
Oops, wrong address for pmuludq insn.

23 years agoCorrect cvtps2dq, movdq2q, movq2dq, and movq problems.
Alan Modra [Sat, 12 May 2001 09:52:40 +0000 (09:52 +0000)]
Correct cvtps2dq, movdq2q, movq2dq, and movq problems.

23 years ago* thread.c (do_captured_list_thread_ids): Use ui_out_tuple_begin
Jim Blandy [Sat, 12 May 2001 05:04:01 +0000 (05:04 +0000)]
* thread.c (do_captured_list_thread_ids): Use ui_out_tuple_begin
and ui_out_tuple_end instead of ui_out_list_begin and
ui_out_list_end.

23 years ago* Makefile.in (gnu-v2-abi.o): Add $(demangle_h) to list of
Jim Blandy [Sat, 12 May 2001 04:09:38 +0000 (04:09 +0000)]
* Makefile.in (gnu-v2-abi.o): Add $(demangle_h) to list of
dependencies.  Reorder dependencies to match #includes in file,
for easier verification.

23 years agos/ui_out_list/ui_out_tupple/
Andrew Cagney [Sat, 12 May 2001 04:08:24 +0000 (04:08 +0000)]
s/ui_out_list/ui_out_tupple/

23 years ago* gnu-v2-abi.c: Don't #include "gdb_regex.h". We don't use it.
Jim Blandy [Sat, 12 May 2001 04:01:16 +0000 (04:01 +0000)]
* gnu-v2-abi.c: Don't #include "gdb_regex.h".  We don't use it.

23 years agoTweeks from RDBrown to fix compiling on HP/UX using HP's compiler.
Andrew Cagney [Sat, 12 May 2001 03:18:34 +0000 (03:18 +0000)]
Tweeks from RDBrown to fix compiling on HP/UX using HP's compiler.

23 years agoNEWS on version.in.
Andrew Cagney [Sat, 12 May 2001 01:34:09 +0000 (01:34 +0000)]
NEWS on version.in.

23 years ago* mips-tdep.c (mips_store_return_value,
Jim Blandy [Sat, 12 May 2001 00:38:11 +0000 (00:38 +0000)]
* mips-tdep.c (mips_store_return_value,
mips_extract_return_value): Pass arguments to
return_value_location in the proper order.

23 years agoReplace Makefile.in:VERSION with the file version.in.
Andrew Cagney [Sat, 12 May 2001 00:31:09 +0000 (00:31 +0000)]
Replace Makefile.in:VERSION with the file version.in.

23 years agoFix handling of XScale LDRD and STRD instructions with post indexed addressing modes.
Nick Clifton [Fri, 11 May 2001 21:51:07 +0000 (21:51 +0000)]
Fix handling of XScale LDRD and STRD instructions with post indexed addressing modes.

23 years agomerge from gcc
DJ Delorie [Fri, 11 May 2001 20:22:28 +0000 (20:22 +0000)]
merge from gcc

23 years ago2001-05-10 Elena Zannoni <ezannoni@redhat.com>
Elena Zannoni [Fri, 11 May 2001 19:53:38 +0000 (19:53 +0000)]
2001-05-10  Elena Zannoni  <ezannoni@redhat.com>

       * gdb.base/completion.exp: Revamp test. Make it execute on all
       platforms.

23 years ago 2001-05-10 Elena Zannoni <ezannoni@redhat.com>
Elena Zannoni [Fri, 11 May 2001 19:53:04 +0000 (19:53 +0000)]
 2001-05-10  Elena Zannoni  <ezannoni@redhat.com>

       * gdb.base/completion.exp: Revamp test. Make it execute on all
       platforms.

23 years agoAdd ``type'' parameter to set_raw_breakpoint().
Kevin Buettner [Fri, 11 May 2001 19:46:35 +0000 (19:46 +0000)]
Add ``type'' parameter to set_raw_breakpoint().

23 years ago2001-05-11 Fernando Nasser <fnasser@redhat.com>
Fernando Nasser [Fri, 11 May 2001 18:34:13 +0000 (18:34 +0000)]
2001-05-11  Fernando Nasser  <fnasser@redhat.com>

* ser-unix.c (rate_to_code): Issue warning if baud rate is invalid.
(hardwire_setbaudrate): Set errno to EINVAL and return with error
if the conversion of the baud rate to code fails.

23 years ago2001-02-28 Michael Snyder <msnyder@mvstp600e.cygnus.com>
Michael Snyder [Fri, 11 May 2001 17:48:31 +0000 (17:48 +0000)]
2001-02-28  Michael Snyder  <msnyder@mvstp600e.cygnus.com>

* symtab.c (print_msymbol_info): Print addresses by portable method
longest_local_hex_string_custom.  Allow for 64-bit addresses.

23 years ago * elfxx-ia64.c (is_unwind_section_name): Consider linkonce unwind
Jakub Jelinek [Fri, 11 May 2001 12:36:47 +0000 (12:36 +0000)]
* elfxx-ia64.c (is_unwind_section_name): Consider linkonce unwind
sections as well.
(elfNN_ia64_final_write_processing): Map .gnu.linkonce.ia64unw.FOO
to .gnu.linkonce.t.FOO text section.

* readelf.c (process_unwind): Print all unwind sections, not just
one.

* config/tc-ia64.c (special_linkonce_name): New.
(make_unw_section): Map .gnu.linkonce.t.FOO text section into
.gnu.linkonce.ia64unw{,i}.FOO.
(ia64_elf_section_type): Handle .gnu.linkonce.ia64unw{,i}.FOO.
(dot_endp): Add comment about it.

* elf/ia64.h (ELF_STRING_ia64_unwind_once): Define.
(ELF_STRING_ia64_unwind_info_once): Define.

* emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Put
.gnu.linkonce.ia64unw{,i} sections into corresponding .IA_64.unwind*
output sections.
* emulparams/elf64_aix.sh (OTHER_READONLY_SECTIONS): Likewise.

23 years ago * merge.c (struct sec_merge_hash_entry): Add u.entsize and u.suffix
Jakub Jelinek [Fri, 11 May 2001 12:23:48 +0000 (12:23 +0000)]
* merge.c (struct sec_merge_hash_entry): Add u.entsize and u.suffix
fields, change sec into secinfo.
(struct sec_merge_info): Add chain, remove last fields.
(struct sec_merge_sec_info): Add next, sec, psecinfo fields.
(sec_merge_hash_lookup): If lookup could not use a string only
because it has bad alignment, mark the old string for deletion.
(sec_merge_add): Add secinfo argument. Don't compute entry's
position, instead record the section.
(sec_merge_emit): Update for the sec into secinfo change in
struct sec_merge_hash_entry.
(_bfd_merge_section): Only record the section for merging, defer
putting strings into the hash table.
(cmplengthentry, last4_eq, last_eq, record_section, merge_strings,
_bfd_merge_sections): New functions.
(_bfd_merged_section_offset): Update for the sec_merge_hash_entry
changes.
* libbfd-in.h (_bfd_merge_sections): Add prototype.
(_bfd_nolink_bfd_merge_sections): Define.
* libbfd.h: Likewise.
(bfd_generic_merge_sections): Add prototype.
* targets.c (BFD_JUMP_TABLE_LINK): Add _bfd_merge_sections.
(struct bfd_target): Likewise.
* bfd.c (bfd_merge_sections): Define.
* bfd-in2.h: Rebuilt.
* elf.c (_bfd_elf_merge_sections): New function.
* elf-bfd.h (_bfd_elf_merge_sections): Add prototype.
* elfxx-target.h (bfd_elfNN_bfd_merge_sections): Define.
* reloc.c (bfd_generic_merge_sections): New function.
* vms.c (vms_bfd_merge_sections): New function.
* aout-adobe.c (aout_32_bfd_merge_sections): Define.
* aout-target.h (MY_bfd_merge_sections): Define.
* aout-tic30.c (MY_bfd_merge_sections): Define.
* binary.c (binary_bfd_merge_sections): Define.
* bout.c (b_out_bfd_merge_sections): Define.
* coff-alpha.c (_bfd_ecoff_bfd_merge_sections): Define.
* coffcode.c (coff_bfd_merge_sections): Define.
* coff-mips.c (_bfd_ecoff_bfd_merge_sections): Define.
* i386msdos.c (msdos_bfd_merge_sections): Define.
* i386os9k.c (os9k_bfd_merge_sections): Define.
* ieee.c (ieee_bfd_merge_sections): Define.
* ihex.c (ihex_bfd_merge_sections): Define.
* nlm-target.h (nlm_bfd_merge_sections): Define.
* oasys.c (oasys_bfd_merge_sections): Define.
* ppcboot.c (ppcboot_bfd_merge_sections): Define.
* som.c (som_bfd_merge_sections): Define.
* srec.c (srec_bfd_merge_sections): Define.
* tekhex.c (tekhex_bfd_merge_sections): Define.
* versados.c (versados_bfd_merge_sections): Define.
* xcoff-target.h (_bfd_xcoff_bfd_merge_sections): Define.

* ldlang.c (lang_process): Call bfd_merge_sections.

23 years agoWhen truncating an aligned block, ensure that the low order bits of the
Nick Clifton [Fri, 11 May 2001 10:01:41 +0000 (10:01 +0000)]
When truncating an aligned block, ensure that the low order bits of the
alignment are preserved.

23 years agoChange type of 'addr' to be unsigned long, in order to match its use.
Nick Clifton [Fri, 11 May 2001 09:55:02 +0000 (09:55 +0000)]
Change type of 'addr' to be unsigned long, in order to match its use.

23 years ago2001-05-11 Fernando Nasser <fnasser@redhat.com>
Fernando Nasser [Fri, 11 May 2001 07:00:04 +0000 (07:00 +0000)]
2001-05-11  Fernando Nasser  <fnasser@redhat.com>

* mi-var-child.exp: Adjust for the fact that now (char *) can be
dereferenced.

23 years ago2001-05-10 H.J. Lu <hjl@gnu.org>
H.J. Lu [Thu, 10 May 2001 22:59:29 +0000 (22:59 +0000)]
2001-05-10  H.J. Lu  <hjl@gnu.org>

* linker.c (_bfd_generic_link_add_one_symbol): Check loop on
indirect symbols.

23 years agoPass the tupple/list parameter.
Andrew Cagney [Thu, 10 May 2001 22:32:26 +0000 (22:32 +0000)]
Pass the tupple/list parameter.

23 years ago2001-05-10 Andrew Cagney <ac131313@redhat.com>
Andrew Cagney [Thu, 10 May 2001 21:30:37 +0000 (21:30 +0000)]
2001-05-10  Andrew Cagney  <ac131313@redhat.com>

* ui-out.h (make_cleanup_ui_out_begin_end): Declare.
* ui-out.c (struct ui_out_end_cleanup_data): Define.
(do_cleanup_end): New function.  Replace do_list_end.
(make_cleanup_ui_out_end): New function.
(make_cleanup_ui_out_begin_end): New function.
(make_cleanup_ui_out_list_end): Use make_cleanup_ui_out_end.

23 years ago2001-05-10 Elena Zannoni <ezannoni@redhat.com>
Elena Zannoni [Thu, 10 May 2001 21:10:09 +0000 (21:10 +0000)]
2001-05-10  Elena Zannoni  <ezannoni@redhat.com>

        * MAINTAINERS: Declare xcoffread.c open to all maintainers,
        and make Kevin Buettner (kevinb@redhat.com) the reference person.

23 years ago2001-05-10 Elena Zannoni <ezannoni@redhat.com>
Elena Zannoni [Thu, 10 May 2001 21:03:03 +0000 (21:03 +0000)]
2001-05-10  Elena Zannoni  <ezannoni@redhat.com>

        * proc-api.c (ioctl_with_trace): Fix uninitialized variable.

23 years ago2001-05-10 Fernando Nasser <fnasser@redhat.com>
Fernando Nasser [Thu, 10 May 2001 20:33:09 +0000 (20:33 +0000)]
2001-05-10  Fernando Nasser  <fnasser@redhat.com>

* MAINTAINERS: Add testsuite subdirectory co-maintainers.

23 years agoFix -Werror problem with mi-main.c.
Andrew Cagney [Thu, 10 May 2001 20:31:46 +0000 (20:31 +0000)]
Fix -Werror problem with mi-main.c.

23 years agoFix ChangeLog cut-n-paste error!
Elena Zannoni [Thu, 10 May 2001 19:36:38 +0000 (19:36 +0000)]
Fix ChangeLog cut-n-paste error!

23 years ago2001-04-12 Elena Zannoni <ezannoni@redhat.com>
Elena Zannoni [Thu, 10 May 2001 19:35:14 +0000 (19:35 +0000)]
2001-04-12  Elena Zannoni  <ezannoni@redhat.com>

        * config/gdbserver.exp (gdb_load): Handle the case
        in which the arguments to gdbserver are given in the
        baseboard configuration file.
        Also handle the case in which the server needs to do a
        load.

23 years ago2001-05-10 Michael Snyder <msnyder@redhat.com>
Michael Snyder [Thu, 10 May 2001 19:06:19 +0000 (19:06 +0000)]
2001-05-10  Michael Snyder  <msnyder@redhat.com>

* remote.c (remote_open_1): Call no_shared_libraries, so that
symbols for shared libraries can be reloaded per session.
(remote_async_open_1): Ditto.

23 years ago2001-05-10 Michael Snyder <msnyder@redhat.com>
Michael Snyder [Thu, 10 May 2001 19:00:35 +0000 (19:00 +0000)]
2001-05-10  Michael Snyder  <msnyder@redhat.com>

* remote.c (bin2hex, hex2bin): New functions.  Factor out these
two conversions which are coded for repeatedly in this module.
(remote_threads_extra_info, remote_wait, remote_async_wait,
store_register_using_P, remote_store_registers, remote_write_bytes,
remote_read_bytes, remote_rcmd): Use bin2hex and hex2bin instead
of coding the conversions inline.
(fromhex): Not exported, change from extern to static.

23 years agoDelete ``info architecture'' command.
Andrew Cagney [Thu, 10 May 2001 18:36:26 +0000 (18:36 +0000)]
Delete ``info architecture'' command.

23 years agoGeneral updates for 5.1/5.2 lists.
Andrew Cagney [Thu, 10 May 2001 18:20:51 +0000 (18:20 +0000)]
General updates for 5.1/5.2 lists.

23 years agoJim Ingham stepping back from Arm maintenance.
Andrew Cagney [Thu, 10 May 2001 18:10:48 +0000 (18:10 +0000)]
Jim Ingham stepping back from Arm maintenance.

23 years ago * Makefile.in (SUBDIR_GDBTK_OBS): Add gdbtk-bp.o, gdbtk-register.o
Keith Seitz [Thu, 10 May 2001 18:02:58 +0000 (18:02 +0000)]
* Makefile.in (SUBDIR_GDBTK_OBS): Add gdbtk-bp.o, gdbtk-register.o
and gdbtk-stack.o.
(SUBDIR_GDBTK_SRCS): Ditto for the sources.
(gdbtk-bp.o): New rule.
(gdbtk-register.o): New rule.
(gdbtk-stack.o): New rule.
(gdbtk-cmds.o): Update dependencies.
(gdbtk.o): Ditto.
(gdbtk-hooks.o): Ditto.
(gdbtk-varobj.o): Ditto.

23 years agoDon't loose last block during a dma.
Andrew Cagney [Thu, 10 May 2001 17:48:10 +0000 (17:48 +0000)]
Don't loose last block during a dma.

23 years ago2001-05-10 Fernando Nasser <fnasser@redhat.com>
Fernando Nasser [Thu, 10 May 2001 16:57:01 +0000 (16:57 +0000)]
2001-05-10  Fernando Nasser  <fnasser@redhat.com>

* varobj.c (c_number_of_children): Fix memory leak. Delete unwanted old
variables, not just unregister them.

23 years ago2001-05-10 Fernando Nasser <fnasser@redhat.com>
Fernando Nasser [Thu, 10 May 2001 16:44:56 +0000 (16:44 +0000)]
2001-05-10  Fernando Nasser  <fnasser@redhat.com>

* varobj.c (c_number_of_children): Check for target type of void*,
not the target type name.  Allow dereferencing char*.

23 years ago2001-05-10 Fernando Nasser <fnasser@redhat.com>
Fernando Nasser [Thu, 10 May 2001 15:33:21 +0000 (15:33 +0000)]
2001-05-10  Fernando Nasser  <fnasser@redhat.com>

* symfile.c (symbol_file_add_main_1): New static function.
Passes the flags arguments to  symbol_file_add() and takes care
of any necessary reinitializations.
        (symbol_file_command): Call symbol_file_add_main_1() instead of
        symbol_file_add().
        (symbol_file_add_main): Ditto.

23 years agoFix more fallout from multi-pass relaxation patch.
Alan Modra [Thu, 10 May 2001 11:32:52 +0000 (11:32 +0000)]
Fix more fallout from multi-pass relaxation patch.

23 years ago * gdbint.texinfo (Clean Design and Portable Implementation):
Eli Zaretskii [Thu, 10 May 2001 10:29:37 +0000 (10:29 +0000)]
* gdbint.texinfo (Clean Design and Portable Implementation):
Renamed from "Clean Design".
(Clean Design and Portable Implementation): Document portable
methods of handling file names, and the associated macros.

23 years ago * gas/cris/rd-dw2-10.d: Tweak for change in gas dwarf2 line number
Hans-Peter Nilsson [Thu, 10 May 2001 02:31:01 +0000 (02:31 +0000)]
* gas/cris/rd-dw2-10.d: Tweak for change in gas dwarf2 line number
handling.

23 years agoRevert a couple of small changes that inadvertently came in via the
Kevin Buettner [Thu, 10 May 2001 01:34:17 +0000 (01:34 +0000)]
Revert a couple of small changes that inadvertently came in via the
2001-05-03 patch.

23 years agoMinor ptid_t changes for the upcoming phase 3 ptid patch.
Kevin Buettner [Thu, 10 May 2001 01:07:39 +0000 (01:07 +0000)]
Minor ptid_t changes for the upcoming phase 3 ptid patch.

23 years ago * config/tc-ia64.c (generate_unwind_image): Align the fragment
Richard Henderson [Thu, 10 May 2001 00:18:19 +0000 (00:18 +0000)]
    * config/tc-ia64.c (generate_unwind_image): Align the fragment
        beginning a function's unwind info block.

23 years ago2001-05-09 H.J. Lu <hjl@gnu.org>
H.J. Lu [Wed, 9 May 2001 22:34:30 +0000 (22:34 +0000)]
2001-05-09  H.J. Lu  <hjl@gnu.org>

* elflink.h (elf_link_add_object_symbols): Fix a typo. Allocate
versymhdr->sh_size bytes for extversym instead of hdr->sh_size.
Remove the unused veriable `dynver'.

23 years agomerge from gcc
DJ Delorie [Wed, 9 May 2001 20:08:48 +0000 (20:08 +0000)]
merge from gcc

23 years ago2001-05-09 Elena Zannoni <ezannoni@redhat.com>
Elena Zannoni [Wed, 9 May 2001 17:51:01 +0000 (17:51 +0000)]
2001-05-09  Elena Zannoni  <ezannoni@redhat.com>

* sh3-rom.c (_initialize_sh3_rom): Get rid of specific _WINDOWS
  conditional for help with connections through parallel ports,
  given that the actual code for downloading through a parallel port
  is not conditionalized.

* sh-tdep.c: Remove WIN32_WCE conditional. The wince sh target is
  unmaintaned, and probably on its way to obsolescence.

23 years ago* i386-tdep.c (i386_frame_saved_pc): New function.
Mark Kettenis [Wed, 9 May 2001 16:16:33 +0000 (16:16 +0000)]
* i386-tdep.c (i386_frame_saved_pc): New function.
* config/i386/tm-i386.h (FRAME_SAVED_PC): Redefine in terms of
i386_frame_saved_pc.
(i386_frame_saved_pc): New prototype.

23 years ago* config/tc-mn10300.c (md_apply_fix3): Accept PC-relative relocs.
Alexandre Oliva [Wed, 9 May 2001 13:32:01 +0000 (13:32 +0000)]
* config/tc-mn10300.c (md_apply_fix3): Accept PC-relative relocs.

23 years ago* i386-tdep.c (i386_register_virtual_type): New function.
Mark Kettenis [Wed, 9 May 2001 09:58:45 +0000 (09:58 +0000)]
* i386-tdep.c (i386_register_virtual_type): New function.
(i386_register_convertible): New function.
* config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE): Redefine in terms
of i386_register_virtual_type.
(REGISTER_CONVERTIBLE): Redefine in terms of
i386_register_convertible.
(i386_register_virtual_type, i386_register_convertible): New
prototypes.

23 years ago* Makefile.in (mn10300-tdep.o): New rule.
Jim Blandy [Wed, 9 May 2001 05:45:31 +0000 (05:45 +0000)]
* Makefile.in (mn10300-tdep.o): New rule.

* Makefile.in (gdb_string_h): Define.  Use it throughout.
Some rules were already using this, even though it isn't defined.

23 years ago* Makefile.in (mn10300-tdep.o): New rule.
Jim Blandy [Wed, 9 May 2001 05:45:30 +0000 (05:45 +0000)]
* Makefile.in (mn10300-tdep.o): New rule.

23 years ago* Makefile.in (obstack_h, target_h): Define; these are already
Jim Blandy [Wed, 9 May 2001 05:23:24 +0000 (05:23 +0000)]
* Makefile.in (obstack_h, target_h): Define; these are already
used elsewhere, but have been expanding to the empty string.
(memattr_h): Define; needed by target_h.

23 years ago* mn10300-tdep.c (mn10300_extract_return_value): Mark this as
Jim Blandy [Wed, 9 May 2001 05:03:01 +0000 (05:03 +0000)]
* mn10300-tdep.c (mn10300_extract_return_value): Mark this as
static.  (This was accidentally omitted from the earlier patch.)

23 years ago* mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): New function.
Jim Blandy [Wed, 9 May 2001 02:55:21 +0000 (02:55 +0000)]
* mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): New function.
(mn10300_gdbarch_init): Register it as the architecture's
dwarf2_reg_to_regnum method.

23 years agoCorrect and expand handling of `movm' instruction, and register
Jim Blandy [Wed, 9 May 2001 02:44:01 +0000 (02:44 +0000)]
Correct and expand handling of `movm' instruction, and register
saves in general.
* config/mn10300/tm-mn10300.h (D0_REGNUM, A0_REGNUM, MDRQ_REGNUM,
MCRH_REGNUM, MCRL_REGNUM, MCVF_REGNUM): New definitions.
(enum movm_register_bits): New enum.
* mn10300-tdep.c (set_movm_offsets): Use symbolic names for the
bits, not hex literals.  Handle the `other', `exreg0', and
`exother' bits.  Correct handling of `exreg1': it saves r4, r5,
r6, and r7, not r2, r3, r4, and r5.
(saved_regs_size): New function.
(mn10300_frame_chain, mn10300_frame_saved_pc): Use it, instead
of computing the same thing inline, incorrectly.

23 years ago* mn10300-tdep.c (mn10300_gdbarch_init): We do have a
Jim Blandy [Wed, 9 May 2001 02:27:47 +0000 (02:27 +0000)]
* mn10300-tdep.c (mn10300_gdbarch_init): We do have a
dummy_breakpoint_offset; it's zero.

23 years ago* mn10300-tdep.c (mn10300_pop_frame): Split the mn10300-specific
Jim Blandy [Wed, 9 May 2001 02:22:35 +0000 (02:22 +0000)]
* mn10300-tdep.c (mn10300_pop_frame): Split the mn10300-specific
stuff out into mn10300_pop_frame_regular, and use
generic_pop_current_frame.  This lets us share code, and also
makes this function's prototype match that expected by gdbarch.
Make this function static.
(mn10300_pop_frame_regular): New function.
(mn10300_gdbarch_init): Register mn10300_pop_frame as the
gdbarch's pop_frame method.
* config/mn10300/tm-mn10300.h (POP_FRAME): Delete definition.
(mn10300_pop_frame): Delete declaration.

23 years ago* mn10300-tdep.c (mn10300_saved_pc_after_call,
Jim Blandy [Wed, 9 May 2001 02:19:06 +0000 (02:19 +0000)]
* mn10300-tdep.c (mn10300_saved_pc_after_call,
mn10300_extract_return_value,
mn10300_extract_struct_value_address, mn10300_store_return_value,
mn10300_use_struct_convention, mn10300_breakpoint_from_pc,
mn10300_frame_chain, mn10300_skip_prologue,
mn10300_push_arguments, mn10300_push_return_address,
mn10300_store_struct_return, mn10300_frame_saved_pc,
mn10300_init_extra_frame_info, mn10300_frame_init_saved_regs):
Make these functions static; they should only be visible to the
outside world as gdbarch methods.

23 years ago* config/mn10300/tm-mn10300.h (mn10300_find_callers_reg): Delete
Jim Blandy [Wed, 9 May 2001 02:16:38 +0000 (02:16 +0000)]
* config/mn10300/tm-mn10300.h (mn10300_find_callers_reg): Delete
unused declaration.

23 years ago* mn10300-tdep.c (mn10300_gdbarch_init): Put the gdbarch methods
Jim Blandy [Wed, 9 May 2001 02:09:48 +0000 (02:09 +0000)]
* mn10300-tdep.c (mn10300_gdbarch_init): Put the gdbarch methods
in some rational order.

23 years ago* mn10300-tdep.c (mn10300_gdbarch_init): Rather than using
Jim Blandy [Wed, 9 May 2001 02:07:36 +0000 (02:07 +0000)]
* mn10300-tdep.c (mn10300_gdbarch_init): Rather than using
generic_pc_in_call_dummy, use pc_in_call_dummy_at_entry_point.

23 years agoUse gdbarch for most target parameters for the MN10300, rather
Jim Blandy [Wed, 9 May 2001 02:04:26 +0000 (02:04 +0000)]
Use gdbarch for most target parameters for the MN10300, rather
than the tm-*.h file.
* config/mn10300/tm-mn10300.h (MAX_REGISTER_VIRTUAL_SIZE,
REGISTER_BYTES, FP_REGNUM, BREAKPOINT_FROM_PC,
FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK, INNER_THAN,
SAVED_PC_AFTER_CALL, INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS,
FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC,
EXTRACT_RETURN_VALUE, EXTRACT_STRUCT_VALUE_ADDRESS,
STORE_RETURN_VALUE, STORE_STRUCT_RETURN, SKIP_PROLOGUE,
FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
FRAME_NUM_ARGS, POP_FRAME, USE_GENERIC_DUMMY_FRAMES, CALL_DUMMY,
CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
CALL_DUMMY_LOCATION, FIX_CALL_DUMMY, CALL_DUMMY_ADDRESS,
TARGET_READ_FP, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
SAVE_DUMMY_FRAME_TOS, PUSH_ARGUMENTS, PC_IN_CALL_DUMMY,
REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER):
Delete definitions.  We register gdbarch methods for these now.
(struct frame_info, struct type, struct value): Delete forward
declarations of these types; they're no longer necessary, since we
don't have function declarations here any more.
* mn10300-tdep.c: #include "arch-utils.h", to get declarations for
some default gdbarch methods.
(mn10300_store_struct_return): Return void, as expected by
gdbarch.
(mn10300_init_extra_frame_info): Take initial `fromleaf' argument,
as expected by gdbarch.
(mn10300_frame_init_saved_regs): Provide dummy definition for
this, as required by gdbarch.
(mn10300_gdbarch_init): Add mn10300_call_dummy_words, as expected
by gdbarch.  Register gdbarch methods or values for all the stuff
removed from tm-10300.h, listed above.

23 years agoReplace ui_out_list_{begin,end}() with ui_out_{begin,end}().
Andrew Cagney [Wed, 9 May 2001 01:33:10 +0000 (01:33 +0000)]
Replace ui_out_list_{begin,end}() with ui_out_{begin,end}().

23 years agoUse a stack of structures (instead of a simple array) to keep track of
Andrew Cagney [Wed, 9 May 2001 00:23:23 +0000 (00:23 +0000)]
Use a stack of structures (instead of a simple array) to keep track of
the top list.

23 years ago2001-05-08 Michael Snyder <msnyder@redhat.com>
Michael Snyder [Tue, 8 May 2001 21:19:43 +0000 (21:19 +0000)]
2001-05-08  Michael Snyder  <msnyder@redhat.com>

* language.c (longest_local_hex_string_custom): Strlen test is
inverted -- reverse the sense of the test.

23 years ago * config/tc-m68k.c: Instead of replacing -1 by 64 in assignment to
Andreas Schwab [Tue, 8 May 2001 18:03:27 +0000 (18:03 +0000)]
* config/tc-m68k.c: Instead of replacing -1 by 64 in assignment to
fx_pcrel_adjust explicitly sign extend when reading it.

23 years ago * coff-i386.c (coff_i386_reloc): Don't dump core if output_bfd is
Ian Lance Taylor [Tue, 8 May 2001 17:44:00 +0000 (17:44 +0000)]
* coff-i386.c (coff_i386_reloc): Don't dump core if output_bfd is
NULL or is not COFF.
(coff_i386_rtype_to_howto): Don't dump core if output section
owner is not COFF.

23 years agoRemove extraneous character in first line.
Ian Lance Taylor [Tue, 8 May 2001 17:14:35 +0000 (17:14 +0000)]
Remove extraneous character in first line.

23 years agomerge from gcc
DJ Delorie [Tue, 8 May 2001 14:35:18 +0000 (14:35 +0000)]
merge from gcc

23 years agoMore fallout from 2001-03-30 changes.
Alan Modra [Tue, 8 May 2001 13:13:56 +0000 (13:13 +0000)]
More fallout from 2001-03-30 changes.
* config/tc-m68k.c (md_estimate_size_before_relax): Set fr_var
from md_relax_table, and combine some switch cases.

23 years ago* config/i386/tm-i386v.h (struct frame_info, struct
Mark Kettenis [Tue, 8 May 2001 12:00:49 +0000 (12:00 +0000)]
* config/i386/tm-i386v.h (struct frame_info, struct
frame_saved_regs):  Remove declarations.
(i386_frame_num_args): Remove prototype.

23 years agoCheck Mode not Bank in order to determine rocesor mode.
Nick Clifton [Tue, 8 May 2001 08:28:28 +0000 (08:28 +0000)]
Check Mode not Bank in order to determine rocesor mode.

23 years ago * lib/gdb.exp (gdbtk_initialize_display): New proc which will
Keith Seitz [Mon, 7 May 2001 20:34:45 +0000 (20:34 +0000)]
    * lib/gdb.exp (gdbtk_initialize_display): New proc which will
        set up the display for testing.
        (gdbtk_start): Convert all paths to paths that tcl will like.
        Export target information to environment.
        (_gdbtk_xvfb_init): New proc to start Xvfb if available and
        necessary.
        (_gdbtk_xvfb_exit): New proc to kill Xvfb if necessary.
        (to_tcl_path): New proc to convert a given pathname into
        a path acceptible as an argument to a tcl command.
        (_gdbtk_export_target_info): New proc to export target info
        into the environment for gdbtk testing.
        (gdbtk_done): New proc to signal end-of-test.

23 years agoDrop self as mn10300 maintainer.
Andrew Cagney [Mon, 7 May 2001 20:02:26 +0000 (20:02 +0000)]
Drop self as mn10300 maintainer.

23 years agoZap some bogus #ifndef _WIN32 - hangover from WinGDB
Andrew Cagney [Mon, 7 May 2001 19:03:11 +0000 (19:03 +0000)]
Zap some bogus #ifndef _WIN32 - hangover from WinGDB