OSDN Git Service

pf3gnuchains/sourceware.git
21 years ago * z8k-dis.c (instr_data_s): Change tabl_index from long to int.
cpg [Thu, 19 Jun 2003 13:46:36 +0000 (13:46 +0000)]
* z8k-dis.c (instr_data_s): Change tabl_index from long to int.
(print_insn_z8k): Correctly check return value from
z8k_lookup_instr call.
(unparse_instr): Handle CLASS_IRO case.
* z8kgen.c: Fix function definitions.  Fix formatting.
(opt): Add brk opcode alias for non-simulator breakpoint.  Add
missing and fix existing in/out and sin/sout opcode definitions.
(args): "@ri", "@ro" - add CLASS_IRO register usage for in/out
opcodes.
(internal): Check p->flags for non-zero before dereferencing it.
(gas): Add CLASS_IRO line.  Insert new OPC_xxx lines for the added
opcodes and renumber the remaining lines repectively.
(main): Remove "-d" command line switch.
* z8k-opc.h: Regenerate with new z8kgen.c.

21 years ago * config/tc-z8k.c (parse_reg): Invalid registers generate an error
cpg [Thu, 19 Jun 2003 13:44:41 +0000 (13:44 +0000)]
* config/tc-z8k.c (parse_reg): Invalid registers generate an error
now, not only a warning.  Add some more checks to detect invalid
registers.
(get_operand): For CLASS_IR remember register size in mode struct.
(get_specific): Handle new CLASS_IRO type.  Add register size
checks for CLASS_IR and CLASS_IRO.
        (md_apply_fix3): Fix undefined usage of buf.

21 years ago * elf64-sparc.c (sparc64_elf_relocate_section): Ignore R_SPARC_DISP32
amodra [Thu, 19 Jun 2003 13:21:52 +0000 (13:21 +0000)]
* elf64-sparc.c (sparc64_elf_relocate_section): Ignore R_SPARC_DISP32
reloc overflow on discarded eh_frame entries.

21 years ago * emultempl/ppc64elf.em (build_section_lists): Check return status
amodra [Thu, 19 Jun 2003 11:51:55 +0000 (11:51 +0000)]
* emultempl/ppc64elf.em (build_section_lists): Check return status
from ppc64_elf_next_input_section.

21 years ago * elf64-ppc.c (toc_adjusting_stub_needed): New function.
amodra [Thu, 19 Jun 2003 11:49:01 +0000 (11:49 +0000)]
* elf64-ppc.c (toc_adjusting_stub_needed): New function.
(ppc64_elf_next_input_section): Use it here to set has_gp_reloc.
Return error condition.
(ppc64_elf_size_stubs): Restrict toc adjusting stubs to sections
that have has_gp_reloc set.
(struct ppc_link_hash_table): Add stub_count.
(ppc_build_one_stub): Increment it.
(ppc64_elf_link_hash_table_create): zmalloc rather than clearing
individual fields.
* elf64-ppc.h (ppc64_elf_next_input_section): Update prototype.

21 years agooops - remove spurious debugging left in previous delta
nickc [Thu, 19 Jun 2003 10:24:52 +0000 (10:24 +0000)]
oops - remove spurious debugging left in previous delta

21 years agoWhen printing DEC_5 values, if the number is bigger than 99999 switch to using
nickc [Thu, 19 Jun 2003 10:23:39 +0000 (10:23 +0000)]
When printing DEC_5 values, if the number is bigger than 99999 switch to using
hexadecimal notation.

21 years ago* avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
troth [Thu, 19 Jun 2003 08:09:53 +0000 (08:09 +0000)]
* avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
trad-frame.h.
(AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
(AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
(AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
(AVR_PROLOGUE_*): Enumerate prologue types.
(struct frame_extra_info): Remove.
(struct avr_unwind_cache): Define.
(avr_write_sp): Delete function.
(avr_read_fp): Ditto.
(avr_init_extra_frame_info): Ditto.
(avr_pop_frame): Ditto.
(avr_frame_saved_pc): Ditto.
(avr_saved_pc_after_call): Ditto.
(avr_push_return_address): Ditto.
(avr_frame_chain): Ditto.
(avr_store_struct_return): Ditto.
(avr_push_arguments): Ditto.
(avr_scan_prologue): Update comments. Changed to set up the info for
cache unwinding. Now returns end of prologue PC.
(avr_skip_prologue): Better handling of functions lacking a prologue
by using avr_scan_prologue.
(avr_scan_arg_moves): New function.
(avr_saved_regs_unwinder): Ditto.
(avr_frame_unwind_cache): Ditto.
(avr_unwind_pc): Ditto.
(avr_frame_this_id): Ditto.
(avr_frame_prev_register): Ditto.
(avr_frame_p): Ditto.
(avr_frame_base_address ): Ditto.
(avr_unwind_dummy_id): Ditto.
(avr_push_dummy_code): Ditto.
(push_stack_item): Ditto.
(pop_stack_item): Ditto.
(avr_push_dummy_call): Ditto.
(struct stack_item): Define.
(avr_frame_unwind): Declare structure.
(avr_frame_base): Ditto.
(avr_gdbarch_init): Remove calls to
set_gdbarch_deprecated_init_frame_pc,
set_gdbarch_deprecated_target_read_fp,
set_gdbarch_deprecated_dummy_write_sp,
set_gdbarch_deprecated_fp_regnum,
set_gdbarch_deprecated_push_arguments,
set_gdbarch_deprecated_push_return_address,
set_gdbarch_deprecated_pop_frame,
set_gdbarch_deprecated_store_struct_return,
set_gdbarch_deprecated_frame_init_saved_regs,
set_gdbarch_deprecated_init_extra_frame_info,
set_gdbarch_deprecated_frame_chain,
set_gdbarch_deprecated_frame_saved_pc,
set_gdbarch_deprecated_saved_pc_after_call.
Add calls to set_gdbarch_push_dummy_call,
set_gdbarch_push_dummy_code,
frame_unwind_append_predicate,
frame_base_set_default,
set_gdbarch_unwind_dummy_id,
set_gdbarch_unwind_pc.
Wrap a long line.

21 years agoReplace occurances of testprog with $test_prog. Initialise this variable to
nickc [Thu, 19 Jun 2003 07:45:49 +0000 (07:45 +0000)]
Replace occurances of testprog with $test_prog.  Initialise this variable to
testprog.exe on Cygwin targeted systems.

21 years ago2003-06-18 Corinna Vinschen <vinschen@redhat.com>
msnyder [Thu, 19 Jun 2003 03:18:48 +0000 (03:18 +0000)]
2003-06-18  Corinna Vinschen  <vinschen@redhat.com>

        * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
        registers for H8/300S.
        (h8300_print_registers_info): Ditto.
        (h8300_gdbarch_init): Accommodate register count for H8/300S.

21 years agoFix typo.
msnyder [Thu, 19 Jun 2003 02:56:24 +0000 (02:56 +0000)]
Fix typo.

21 years ago2003-05-30 Alexandre Oliva <aoliva@redhat.com>
msnyder [Thu, 19 Jun 2003 02:40:12 +0000 (02:40 +0000)]
2003-05-30  Alexandre Oliva  <aoliva@redhat.com>

* allinsn.exp: Fix typos introduced on 2003-05-27.

2003-05-29  Michael Snyder  <msnyder@redhat.com>

* tas.s: Use er4 for h8h and h8s, er3 for h8sx.

2003-05-28  Michael Snyder  <msnyder@redhat.com>

* subs.s: New file.
* subx.s: New file.
* allinsn.exp: Add new subs and subx tests.
* testutils.inc: Simplify (and fix) set_carry_flag.
(clear_carry_flag, set_zero_flag, clear_zero_flag...): New macros.
* addx.s: Use simplified set_carry_flag.

2003-05-27  Michael Snyder  <msnyder@redhat.com>

* tas.s: New file.
* band.s: New file.
* biand.s: New file.
* allinsn.exp: Add tas, band, biand tests.
* brabc.s: Add abs8 test.
* bset.s: Add bset/ne, bclr/ne tests.

2003-05-23  Michael Snyder  <msnyder@redhat.com>

* and.b.s: Add andc exr.
* or.b.s: Add orc.exr.
* xor.b.s: Add xor exr.

* jmp.s: Fix 8-bit indirect test.  Add 7-bit vector test.

2003-05-22  Michael Snyder  <msnyder@redhat.com>

* stack.s: Add rte/l and rts/l tests.
* allinsn.exp: Add stack tests.

2003-05-21  Michael Snyder  <msnyder@redhat.com>

* stack.s: New file: test stack operations.
* stack.s: Add bsr, jsr tests.
* stack.s: Add trapa, rte tests.

* div.s: Corrections for size of dividend.

2003-05-20  Michael Snyder  <msnyder@redhat.com>

* mul.s: Corrections for unsigned multiply.

* div.s: New file, test div instructions.
* allinsn.exp: Add div test.

2003-05-19  Michael Snyder  <msnyder@redhat.com>

* mul.s: New file, test mul instructions.
* allinsn.exp: Add mul test.

21 years ago2003-06-18 Michael Snyder <msnyder@redhat.com>
msnyder [Thu, 19 Jun 2003 02:14:14 +0000 (02:14 +0000)]
2003-06-18  Michael Snyder  <msnyder@redhat.com>

        * compile.c: Replace "Hitachi" with "Renesas".
        (decode): Distinguish AV_H8S from AV_H8H.
        (sim_resume): H8SX can use any register for TAS.
        (decode): Add support for VECIND.
        (sim_resume): Implement rte/l and rts/l.
        (GETSR): New macro (actually old macro reincarnated).
        (decode): Add handling for IMM2.
        (sim_resume): Drop extra block around jmp, jsr, rts.
        Add handling for trapa and rte.
        For divxu.b, change 0xffff mask to 0xff.
        (set_h8300h): Add bfd_mach_h8300sxn machine.

21 years agoOops, Forgot to submit the change log
earnie [Thu, 19 Jun 2003 02:06:04 +0000 (02:06 +0000)]
Oops, Forgot to submit the change log

21 years ago2003-06-18 Corinna Vinschen <vinschen@redhat.com>
msnyder [Thu, 19 Jun 2003 01:54:22 +0000 (01:54 +0000)]
2003-06-18  Corinna Vinschen  <vinschen@redhat.com>

        * sim-main.h (enum h8_regnum): Turn around order of MACH, MACL
        and SBR, VBR (for benefit of gdb).

21 years ago * gdb.texinfo (Remote Debugging): New section "Connecting to a
drow [Thu, 19 Jun 2003 01:31:47 +0000 (01:31 +0000)]
    * gdb.texinfo (Remote Debugging): New section "Connecting to a
remote target".  Document the "detach" and "disconnect" commands.
(Server, Netware, Debug Session): Reference "Connecting to a
remote target".
(GDB/MI Target Manipulation): Document "-target-disconnect".

21 years ago2003-06-18 Pierre Humblet <pierre.humblet@ieee.org>
phumblet [Thu, 19 Jun 2003 00:57:26 +0000 (00:57 +0000)]
2003-06-18  Pierre Humblet  <pierre.humblet@ieee.org>

        * autoload.cc (GetNetworkParams): Add.
        * net.cc (getdomainname): Call GetNetworkParams and read the
        DhcpDomain registry value if warranted.

21 years ago2003-06-05 Michael Snyder <msnyder@redhat.com>
msnyder [Thu, 19 Jun 2003 00:49:33 +0000 (00:49 +0000)]
2003-06-05  Michael Snyder  <msnyder@redhat.com>

* compile.c (sim_fetch_register): Handle SBR, VBR, MACH, MACL.
(sim_store_register): Ditto.

21 years ago*** empty log message ***
gdbadmin [Thu, 19 Jun 2003 00:00:32 +0000 (00:00 +0000)]
*** empty log message ***

21 years agodaily update
amodra [Thu, 19 Jun 2003 00:00:06 +0000 (00:00 +0000)]
daily update

21 years ago * config/nm-linux.h (linux_record_stopped_pid): New prototype.
drow [Wed, 18 Jun 2003 23:33:30 +0000 (23:33 +0000)]
* config/nm-linux.h (linux_record_stopped_pid): New prototype.
* lin-lwp.c (child_wait): Call linux_record_stopped_pid.
(lin_lwp_wait): Likewise.  Update comments.
* linux-nat.c (struct simple_pid_list, add_to_pid_list)
(pull_pid_from_list, linux_record_stopped_pid): New.

21 years ago * config/tc-ppc.c (ppc_csect): Pass alignment to ppc_change_csect.
amodra [Wed, 18 Jun 2003 23:05:42 +0000 (23:05 +0000)]
* config/tc-ppc.c (ppc_csect): Pass alignment to ppc_change_csect.
(ppc_change_csect): Add align param.  Align frag at start of csect.
(ppc_section, ppc_named_section): Adjust ppc_change_csect calls.
(ppc_frob_section): Align vma.

21 years ago * dw2gencfi.c (EH_FRAME_ALIGNMENT): Define if not defined.
jakub [Wed, 18 Jun 2003 17:58:46 +0000 (17:58 +0000)]
* dw2gencfi.c (EH_FRAME_ALIGNMENT): Define if not defined.
(output_cie): Don't pad.
(output_fde): Add align argument.  Pad to align if not 0.
(cfi_finish): Set .eh_frame alignment to EH_FRAME_ALIGNMENT.
Pad just last FDE to EH_FRAME_ALIGNMENT.

* gas/cfi/cfi-i386.d: Regenerated.
* gas/cfi/cfi-common-1.d: Regenerated.
* gas/cfi/cfi-common-2.d: Regenerated.
* gas/cfi/cfi-common-3.d: Regenerated.
* gas/cfi/cfi-x86_64.d: Regenerated.
* gas/cfi/cfi-alpha-1.d: Regenerated.
* gas/cfi/cfi-alpha-2.d: Regenerated.
* gas/cfi/cfi-alpha-3.d: Regenerated.

21 years ago * include/dirent.h (dirent): Make d_name and array instead of a pointer.
earnie [Wed, 18 Jun 2003 13:54:46 +0000 (13:54 +0000)]
* include/dirent.h (dirent): Make d_name and array instead of a pointer.
* mingwex/dirent.c: Modifications througout to fill d_name array.
        * Makefile.in (LIBS): Add new MSVCRT libraries libmsvcr70 and
        libmsvcr71, including debug versions.
        (msvcr70.def, msvcr70d.def, msvcr71.def, msvcr71.def): New targets.

21 years ago * config/tc-s390.c (init_default_arch): Make current_mode_mask
sky [Wed, 18 Jun 2003 11:18:45 +0000 (11:18 +0000)]
* config/tc-s390.c (init_default_arch): Make current_mode_mask
dependent on s390_arch_size and current_cpu dependent on
current_mode_mask.

21 years ago2003-06-17 Danny Smith <dannysmith@users.sourceforge.net>
dannysmith [Wed, 18 Jun 2003 10:04:08 +0000 (10:04 +0000)]
2003-06-17  Danny Smith  <dannysmith@users.sourceforge.net>

* include/shellapi.h (SHQUERYRBINFO): Add structure,
(SHQueryRecycleBin[AW]. SHEmptyRecycleBin[AW]):Add prototypes.
(SHERB_NOCONFIRMATION, SHERB_NOPROGRESSUI, SHERB_NOSOUND):
Add defines. Thanks to Brett Hart <brett at ncubedtech dot com>

2003-06-17  Danny Smith  <dannysmith@users.sourceforge.net>

* include/winbase.h (GlobalCompact, GlobalFix, GlobalFlags,
GlobalUnfix, GlobalUnWire, GlobalWire, LocalCompact,
LocalFlags, LocalShrink, LockSegment, UnlockSegment): Add comment
that these are obsolete no-ops.

2003-06-17  Bang Jun-Young  <junyoung@netbsd.org>

* include/winbase.h (GetProcessWorkingSetSize,
GlobalCompact, LocalAlloc, LocalCompact, LocalReAlloc,
LocalShrink, SignalObjectAndWait, WriteProcessMemory):
Correct prototypes.

21 years agoAdd c4x as an architecture variant to tic4x.
nickc [Wed, 18 Jun 2003 09:49:54 +0000 (09:49 +0000)]
Add c4x as an architecture variant to tic4x.

21 years ago2003-06-18 Steven Edwards <Steven_Ed4153@yahoo.com>
infidel [Wed, 18 Jun 2003 09:46:08 +0000 (09:46 +0000)]
2003-06-18  Steven Edwards  <Steven_Ed4153@yahoo.com>

* include/winuser.h (TPM_RECURSE): Add define.

21 years ago * Makefile.am (cgen-all): Exit early if file generation fails.
devans [Wed, 18 Jun 2003 05:49:31 +0000 (05:49 +0000)]
* Makefile.am (cgen-all): Exit early if file generation fails.
* Makefile.in: Regenerate.

21 years ago * elflink.h (elf_gc_record_vtentry): Revert last change. Correct
amodra [Wed, 18 Jun 2003 05:18:06 +0000 (05:18 +0000)]
* elflink.h (elf_gc_record_vtentry): Revert last change.  Correct
size calculation from addend.  Round size up.

21 years ago * elf32-cris.c (cris_elf_relocate_section) <case
hp [Wed, 18 Jun 2003 04:14:13 +0000 (04:14 +0000)]
* elf32-cris.c (cris_elf_relocate_section) <case
R_CRIS_32_GOTREL>: When linking a program, don't complain about a
symbol from a normal object or an undefined weak symbol.

21 years ago * ld-cris/locref1.d, ld-cris/locref1.s, ld-cris/locref2.d,
hp [Wed, 18 Jun 2003 04:11:13 +0000 (04:11 +0000)]
* ld-cris/locref1.d, ld-cris/locref1.s, ld-cris/locref2.d,
ld-cris/locref2.s: New tests.

21 years ago * ld-elfcomm/elfcomm.exp (dump_common1): Use $READELF, not plain
hp [Wed, 18 Jun 2003 03:38:05 +0000 (03:38 +0000)]
* ld-elfcomm/elfcomm.exp (dump_common1): Use $READELF, not plain
readelf as found using default path.

21 years ago * config/tc-ppc.c (ppc_elf_suffix): Don't remove symbols other than
amodra [Wed, 18 Jun 2003 03:27:18 +0000 (03:27 +0000)]
* config/tc-ppc.c (ppc_elf_suffix): Don't remove symbols other than
".TOC." from PPC64_TOC relocs.

21 years ago * elf64-ppc.c (ppc64_elf_relocate_section): Accept a symbol on
amodra [Wed, 18 Jun 2003 03:26:21 +0000 (03:26 +0000)]
* elf64-ppc.c (ppc64_elf_relocate_section): Accept a symbol on
R_PPC64_TOC relocs.

21 years ago* configure.in: Update testsuite_flags to new location.
dj [Wed, 18 Jun 2003 02:25:30 +0000 (02:25 +0000)]
* configure.in: Update testsuite_flags to new location.
* configure. Regenerate.

21 years ago * lib/ld-lib.exp (default_ld_simple_link): Trim ld parms before
amodra [Wed, 18 Jun 2003 01:55:56 +0000 (01:55 +0000)]
* lib/ld-lib.exp (default_ld_simple_link): Trim ld parms before
trying to trim ld path.
(default_ld_compile): Likewise for cc.

21 years ago2003-06-17 Richard Sandiford <rsandifo@redhat.com>
cgd [Wed, 18 Jun 2003 01:12:03 +0000 (01:12 +0000)]
2003-06-17  Richard Sandiford  <rsandifo@redhat.com>

        * mips.igen (do_dmultx): Fix check for negative operands.

21 years agobfd/
hjl [Wed, 18 Jun 2003 00:30:03 +0000 (00:30 +0000)]
bfd/

2003-06-17  H.J. Lu <hongjiu.lu@intel.com>

* section.c (struct sec): Put back kept_section.
(STD_SECTION): Put back kept_section initialization.
* bfd-in2.h: Regenerate.

* elflink.h (elf_link_input_bfd): Also check discarded linkonce
sections for relocateable output. Use kept_section to preserve
debug information discarded by linkonce.

ld/

2003-06-17  H.J. Lu <hongjiu.lu@intel.com>

* ldlang.c (section_already_linked): Put back assignment of
kept_section.

21 years agodaily update
amodra [Wed, 18 Jun 2003 00:00:05 +0000 (00:00 +0000)]
daily update

21 years ago*** empty log message ***
gdbadmin [Wed, 18 Jun 2003 00:00:02 +0000 (00:00 +0000)]
*** empty log message ***

21 years ago2003-06-17 Roland McGrath <roland@redhat.com>
hjl [Tue, 17 Jun 2003 23:43:18 +0000 (23:43 +0000)]
2003-06-17  Roland McGrath  <roland@redhat.com>

* elfxx-ia64.c (elfNN_ia64_relocate_section): Support
segment-relative relocation between different segments.

21 years ago * lib/ld-lib.exp (default_ld_simple_link): Trim ld path before
amodra [Tue, 17 Jun 2003 23:26:57 +0000 (23:26 +0000)]
* lib/ld-lib.exp (default_ld_simple_link): Trim ld path before
looking for gcc match.
(default_ld_compile): Likewise for cc.

21 years ago * msvcrt.def.in (__badioinfo, __lc_codepage, __lc_handle,
dannysmith [Tue, 17 Jun 2003 23:08:25 +0000 (23:08 +0000)]
* msvcrt.def.in (__badioinfo, __lc_codepage, __lc_handle,
__pioinfo, __setlc_active, _unguarded_readlc_active, _dstbias):
Mark as DATA.

21 years ago (sync with gcc)
neroden [Tue, 17 Jun 2003 21:59:09 +0000 (21:59 +0000)]
(sync with gcc)
* Makefile.tpl: Remove BUILD_CC stuff.
* Makefile.in: Regenerate.

21 years ago * ada-lang.c (scan_discrim_bound): Name first argument.
ciceron [Tue, 17 Jun 2003 21:20:40 +0000 (21:20 +0000)]
* ada-lang.c (scan_discrim_bound): Name first argument.
(ada_add_block_symbols): Remove BLOCK_SYM to use local variable
declared by ALL_BLOCK_SYMBOLS.

21 years ago * ada-tasks.c (find_function_in_inferior): Don't declare it.
ciceron [Tue, 17 Jun 2003 20:58:32 +0000 (20:58 +0000)]
* ada-tasks.c (find_function_in_inferior): Don't declare it.
("regcache.h"): Include it.
* ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.

21 years agogdb/
drow [Tue, 17 Jun 2003 20:28:12 +0000 (20:28 +0000)]
gdb/
        * NEWS: Mention gdbserver detach change and "disconnect" command.
        * infcmd.c (disconnect_command): New function.
        (_initialize_infcmd): Add ``disconnect'' command.
        * remote.c (remote_async_detach): Delete.
        (remote_detach): Merge remote_async_detach.
        (remote_disconnect): New.
        (init_remote_ops): Set to_disconnect.
        (init_remote_cisco_ops): Likewise.
        (init_remote_async_ops): Likewise.  Use remote_detach.
        * target.c (cleanup_target): Default to_disconnect.
        (update_current_target): Inherit to_disconnect.
        (target_disconnect, debug_to_disconnect): New functions.
        (setup_target_debug): Set to_disconnect.
        * target.h (struct target_ops): Add to_disconnect.
        (target_disconnect): Add prototype.
gdbserver/
* linux-low.c: Move comment to linux_thread_alive where it belonged.
(linux_detach_one_process, linux_detach): New functions.
(linux_target_ops): Add linux_detach.
* server.c (main): Handle 'D' packet.
* target.h (struct target_ops): Add "detach" member.
(detach_inferior): Define.
mi/
        * mi-cmds.c (mi_cmds): Add "-target-disconnect".

21 years ago * breakpoint.c (insert_catchpoint): New function.
drow [Tue, 17 Jun 2003 19:17:59 +0000 (19:17 +0000)]
* breakpoint.c (insert_catchpoint): New function.
(insert_breakpoints): Use catch_exceptions to call
insert_catchpoint.  Disable catchpoints if they fail to insert.

21 years ago * symfile.c (reread_symbols): Clear sym_private.
drow [Tue, 17 Jun 2003 19:15:24 +0000 (19:15 +0000)]
* symfile.c (reread_symbols): Clear sym_private.

21 years ago2003-06-17 Andrew Cagney <cagney@redhat.com>
cagney [Tue, 17 Jun 2003 19:00:19 +0000 (19:00 +0000)]
2003-06-17  Andrew Cagney  <cagney@redhat.com>

* trad-frame.h (struct frame_info): Add opaque declaration.
* remote-fileio.h (struct cmd_list_element): Add opaque
declaration.
* h8300-tdep.c (h8300s_register_name): Avoid C++ // style
comments.

21 years ago* nto-tdep.c (nto_map_arch_to_cputype): Recognize powerpc.
kewarken [Tue, 17 Jun 2003 18:30:48 +0000 (18:30 +0000)]
* nto-tdep.c (nto_map_arch_to_cputype): Recognize powerpc.
(nto_find_and_open_solib): Likewise.
(nto_init_solib_absolute_prefix): Likewise.
(_initialize_nto_tdep): Fix indentation.

21 years ago * remote.c (remote_prepare_to_store): Replace call to
drow [Tue, 17 Jun 2003 18:18:56 +0000 (18:18 +0000)]
* remote.c (remote_prepare_to_store): Replace call to
deprecated_read_register_bytes with multiple regcache_raw_read
calls.

21 years ago* i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
kewarken [Tue, 17 Jun 2003 17:49:38 +0000 (17:49 +0000)]
* i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.

21 years ago* i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
kewarken [Tue, 17 Jun 2003 17:38:32 +0000 (17:38 +0000)]
* i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.

21 years ago* i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
kewarken [Tue, 17 Jun 2003 17:37:42 +0000 (17:37 +0000)]
* i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.

21 years ago* path.cc (mount): Do more strict checking on posix path arguments.
cgf [Tue, 17 Jun 2003 16:52:17 +0000 (16:52 +0000)]
* path.cc (mount): Do more strict checking on posix path arguments.

21 years agomerge from gcc
dj [Tue, 17 Jun 2003 16:31:07 +0000 (16:31 +0000)]
merge from gcc

21 years ago* ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
jimb [Tue, 17 Jun 2003 16:06:17 +0000 (16:06 +0000)]
* ppc-linux-tdep.c: "Linux" -> "GNU/Linux"

21 years ago * elf64-ppc.c (ppc64_elf_relocate_section): Do unaligned reloc
amodra [Tue, 17 Jun 2003 14:22:45 +0000 (14:22 +0000)]
* elf64-ppc.c (ppc64_elf_relocate_section): Do unaligned reloc
optimizations earlier.

21 years ago * elf64-ppc.c (struct ppc_link_hash_table): Reinstate top_index.
amodra [Tue, 17 Jun 2003 13:43:01 +0000 (13:43 +0000)]
* elf64-ppc.c (struct ppc_link_hash_table): Reinstate top_index.
Restore previous input_list type.
(ppc64_elf_link_hash_table_create): Undo last change.
(ppc64_elf_setup_section_lists): Reinstate code setting up input lists
per output section, but don't bother with bfd_abs_section marker.
(ppc64_elf_next_input_section): Adjust for multiple input section
lists.
(group_sections): Likewise.

21 years ago * elf64-ppc.c (ppc64_elf_relocation_section): Ensure
jakub [Tue, 17 Jun 2003 12:39:41 +0000 (12:39 +0000)]
* elf64-ppc.c (ppc64_elf_relocation_section): Ensure
*r_offset == r_addend for RELATIVE relocs against .got.

21 years ago * elf64-ppc.c (ppc64_elf_relocate_section): Optimize unaligned relocs.
amodra [Tue, 17 Jun 2003 12:37:25 +0000 (12:37 +0000)]
* elf64-ppc.c (ppc64_elf_relocate_section): Optimize unaligned relocs.

21 years agoCatch and ignore an ARM_26D reloc.
nickc [Tue, 17 Jun 2003 12:05:33 +0000 (12:05 +0000)]
Catch and ignore an ARM_26D reloc.

21 years agoTweak expected results for i386-pc-cygwin target.
nickc [Tue, 17 Jun 2003 11:46:34 +0000 (11:46 +0000)]
Tweak expected results for i386-pc-cygwin target.

21 years agoAllow system-specific gunk after canonical file format.
nickc [Tue, 17 Jun 2003 11:16:16 +0000 (11:16 +0000)]
Allow system-specific gunk after canonical file format.

21 years ago* ld-undefined/undefined.exp (i?86-*-freebsd*): Remove xfail.
nickc [Tue, 17 Jun 2003 11:01:17 +0000 (11:01 +0000)]
* ld-undefined/undefined.exp (i?86-*-freebsd*): Remove xfail.
* configure.host (*-*-freebsd*): Add known path for ld-elf.so.1 if not produced by gcc.

21 years ago(elf_gc_record_vtentry): Allocate an extra element in the vtable_entries_used
nickc [Tue, 17 Jun 2003 09:57:18 +0000 (09:57 +0000)]
(elf_gc_record_vtentry): Allocate an extra element in the vtable_entries_used
array to allow for the accessing the largest element.

21 years ago * elf64-ppc.c (struct ppc_link_hash_table): Remove top_index. Modify
amodra [Tue, 17 Jun 2003 09:10:41 +0000 (09:10 +0000)]
* elf64-ppc.c (struct ppc_link_hash_table): Remove top_index.  Modify
input_list.
(ppc64_elf_link_hash_table_create): Init input_list here.
(ppc64_elf_setup_section_lists): Remove code setting up input lists
per output section.  Set toc_off for abs and other standard sections.
(ppc64_elf_reinit_toc): Don't set elf_gp on input bfds lacking a toc.
(ppc64_elf_next_input_section): Adjust for single input section list.
Don't set toc_curr from input bfds that haven't set elf_gp.
(group_sections): Adjust for single input section list.

21 years ago* avr-tdep.c (avr_extract_return_value): New function.
troth [Tue, 17 Jun 2003 04:44:18 +0000 (04:44 +0000)]
* avr-tdep.c (avr_extract_return_value): New function.
(avr_gdbarch_init): Set extract_return_value method.

21 years ago * elf64-ppc.c (ppc64_elf_relocate_section): Correct pcrel section zero.
amodra [Tue, 17 Jun 2003 00:25:44 +0000 (00:25 +0000)]
* elf64-ppc.c (ppc64_elf_relocate_section): Correct pcrel section zero.

21 years ago * config/tc-ppc.c (md_apply_fix3): Allow BRTAKEN, BRNTAKEN relocs.
amodra [Tue, 17 Jun 2003 00:14:23 +0000 (00:14 +0000)]
* config/tc-ppc.c (md_apply_fix3): Allow BRTAKEN, BRNTAKEN relocs.

21 years ago*** empty log message ***
gdbadmin [Tue, 17 Jun 2003 00:00:32 +0000 (00:00 +0000)]
*** empty log message ***

21 years agodaily update
amodra [Tue, 17 Jun 2003 00:00:04 +0000 (00:00 +0000)]
daily update

21 years ago2003-06-16 Andrew Cagney <cagney@redhat.com>
cagney [Mon, 16 Jun 2003 20:05:55 +0000 (20:05 +0000)]
2003-06-16  Andrew Cagney  <cagney@redhat.com>

* frame.h (deprecated_get_next_frame_hack): Declare.
* frame.c (legacy_saved_regs_prev_register): Only require
DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed.  Assert that
there are always saved regs.
(deprecated_generic_get_saved_register): Do not require
DEPRECATED_FRAME_INIT_SAVED_REGS.
(legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
use frame ID unwind instead.
(deprecated_get_next_frame_hack): New function.

21 years ago * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
corinna [Mon, 16 Jun 2003 19:40:50 +0000 (19:40 +0000)]
* h8300-tdep.c (h8300_push_arguments): Remove.  Substitute by...
(h8300_push_dummy_call): ...this function.  Some minor optimization.
(h8300_push_return_address): Remove.
(h8300_gdbarch_init): Remove calls to
set_gdbarch_deprecated_dummy_write_sp,
set_gdbarch_deprecated_push_arguments and
set_gdbarch_deprecated_push_return_address.
Add call to set_gdbarch_push_dummy_call.

21 years ago * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
corinna [Mon, 16 Jun 2003 17:13:01 +0000 (17:13 +0000)]
* h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
(E_PSEUDO_EXR_REGNUM): Ditto.
(h8300_is_argument_spill): Check for instructions moving argument
registers into safe registers.
(h8300_skip_prologue): Check for stm instruction to push registers
used for register variables onto stack.
(gdb_print_insn_h8300): Remove.
(h8300_examine_prologue): Add a comment.
(h8300_register_name): Take pseudo registers into account.
(h8300s_register_name): Ditto.
(h8300sx_register_name): Ditto.
(h8300_print_register): Ditto.
(h8300_print_registers_info): Define "nice" printing order.
(h8300_saved_pc_after_call): Take pseudo registers into account.
(h8300_register_type): Ditto.  Return type used for remote connection
when requesting real CCR or EXR register, return actual type when
requesting pseudo CCR or EXR.
(h8300_pseudo_register_read): New function.
(h8300_pseudo_register_write): Ditto.
(h8300_dbg_reg_to_regnum): Ditto.
(h8300s_dbg_reg_to_regnum): Ditto.
(h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
set_gdbarch_print_insn architecture dependent.
Call set_gdbarch_pseudo_register_read and
set_gdbarch_pseudo_register_write.
(_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.

21 years agoRevert previous change. Wait for approval.
cagney [Mon, 16 Jun 2003 16:52:24 +0000 (16:52 +0000)]
Revert previous change.  Wait for approval.

21 years ago2003-06-16 Andrew Cagney <cagney@redhat.com>
cagney [Mon, 16 Jun 2003 16:47:39 +0000 (16:47 +0000)]
2003-06-16  Andrew Cagney  <cagney@redhat.com>

* gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
* gdbarch.h, gdbarch.c: Re-generate.
* xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
* s390-tdep.c (s390_gdbarch_init): Update.
* rs6000-tdep.c (rs6000_gdbarch_init): Update.
* mn10300-tdep.c (mn10300_gdbarch_init): Update.
* mips-tdep.c (mips_gdbarch_init): Update.
* mcore-tdep.c (mcore_gdbarch_init): Update.
* cris-tdep.c (cris_gdbarch_init): Update.
* infcall.c (call_function_by_hand): Update.
* ia64-tdep.c (ia64_push_arguments): Update comment.
* frame.c (legacy_get_prev_frame): Do not assume
SAVE_DUMMY_FRAME_TOS_P.
* dummy-frame.c (find_dummy_frame): Update comment.

21 years ago2003-06-16 Andrew Cagney <cagney@redhat.com>
cagney [Mon, 16 Jun 2003 13:19:35 +0000 (13:19 +0000)]
2003-06-16  Andrew Cagney  <cagney@redhat.com>

* regcache.c (do_cooked_read): Do not use register_valid_p.

21 years ago * config/tc-mips.c (ADDRESS_ADD_INSN,ADDRESS_ADDI_INSN,
ths [Mon, 16 Jun 2003 12:13:09 +0000 (12:13 +0000)]
* config/tc-mips.c (ADDRESS_ADD_INSN,ADDRESS_ADDI_INSN,
ADDRESS_LOAD_INSN,ADDRESS_STORE_INSN): New macros.
(macro_build_ldst_constoffset,load_address,macro,s_cpsetup,
s_cprestore,s_cpadd): Use them.

21 years ago * ld-powerpc/tlsexetoc.d: Update.
amodra [Mon, 16 Jun 2003 10:51:06 +0000 (10:51 +0000)]
* ld-powerpc/tlsexetoc.d: Update.
* ld-powerpc/tlsso.d: Update.
* ld-powerpc/tlstoc.d: Update.
* ld-powerpc/tlstocso.d: Update.
* ld-powerpc/tlstocso.r: Update.

21 years ago * elf64-ppc.c (ppc64_elf_relocate_section): When optimizing toctprel
amodra [Mon, 16 Jun 2003 10:50:21 +0000 (10:50 +0000)]
* elf64-ppc.c (ppc64_elf_relocate_section): When optimizing toctprel
tls, check that a TOC16_DS or TOC16_LO_DS reloc isn't pointing to a
dtprel entry.  Ensure TLS_LD DTPMOD reloc has a zero addend.  Write
got section for RELATIVE relocs.  Fix wrong comment.  Change condition
under which dynamic relocs update the section contents.

21 years ago* avr-tdep.c (avr_register_type): Remove a blank line.
troth [Mon, 16 Jun 2003 05:50:15 +0000 (05:50 +0000)]
* avr-tdep.c (avr_register_type): Remove a blank line.
(avr_scan_prologue): Correct some comments.

21 years agoThroughout, remove "include <errno.h>" from files which already include
cgf [Mon, 16 Jun 2003 03:24:09 +0000 (03:24 +0000)]
Throughout, remove "include <errno.h>" from files which already include
cygerrno.h.
* include/cygwin/config.h (__DYNAMIC_REENT__): Define.
* include/cygwin/version.h: Bump API minor version.
* cygwin.din: Export __getreent
* cygerrno.h: Include errno.h.  Fix places where _impure_ptr is used directly
to store the errno value.
* debug.cc (__set_errno): Ditto.
* errno.cc: Remove _RRENT_ONLY define to get errno.cc compiled.
* signal.cc: Rename _reent_clib to _REENT throughout.
* thread.h (reent_clib): Remove prototype.
* thread.cc (reent_clib): Rename reent_clib to __getreent.  Return _impure_ptr
until MTinterface is initialized.
(reent_winsup): Fix a possible SEGV when _r == NULL.  Return NULL instead.
* MTinterface::fixup_after_fork: Switch reent back to _impure_ptr to keep
signal handling running when fork is called from a thread other than the
mainthread.

21 years ago * configure.in: Add specific case for cris-*-linux-gnu* with
hp [Mon, 16 Jun 2003 00:38:57 +0000 (00:38 +0000)]
* configure.in: Add specific case for cris-*-linux-gnu* with
em=linux.
* configure: Regenerate.
* config/tc-cris.c (DEFAULT_CRIS_AXIS_LINUX_GNU): New macro, TRUE
if TE_LINUX defined, else FALSE.
(bfd_boolean demand_register_prefix): Set default from
DEFAULT_CRIS_AXIS_LINUX_GNU.
(symbols_have_leading_underscore): Similar.
* config/tc-cris.h (LOCAL_LABELS_DOLLAR): Define to 1.

21 years ago* avr-tdep.c (avr_scan_prologue): Update comment describing the various
troth [Mon, 16 Jun 2003 00:36:59 +0000 (00:36 +0000)]
* avr-tdep.c (avr_scan_prologue): Update comment describing the various
prologue types.
Properly scan prologues generated by gcc with the -mcall-prologues option.
Add code to scan -mcall-prologues for mega devices.

21 years ago * configure.tgt: Add specific case for cris-*-linux-gnu*
hp [Mon, 16 Jun 2003 00:03:48 +0000 (00:03 +0000)]
* configure.tgt: Add specific case for cris-*-linux-gnu*
with crislinux emulation only.

21 years ago * ld-cris/ldsym1.d: Restrict to cris-*-*elf* and cris-*-*aout*.
hp [Mon, 16 Jun 2003 00:02:36 +0000 (00:02 +0000)]
* ld-cris/ldsym1.d: Restrict to cris-*-*elf* and cris-*-*aout*.
* ld-cris/noglob1.d: Ditto.
* ld-cris/badgotr1.d: Pass --underscore to gas.

21 years ago * ld-cris/ldsym1.d: Restrict to cris-*-*elf* and cris-*-*aout*.
hp [Mon, 16 Jun 2003 00:02:20 +0000 (00:02 +0000)]
* ld-cris/ldsym1.d: Restrict to cris-*-*elf* and cris-*-*aout*.
* ld-cris/noglob1.d: Ditto.
* ld-cris/badgotr1.d: Pass --underscore to gas.

21 years agodaily update
amodra [Mon, 16 Jun 2003 00:00:05 +0000 (00:00 +0000)]
daily update

21 years ago*** empty log message ***
gdbadmin [Mon, 16 Jun 2003 00:00:01 +0000 (00:00 +0000)]
*** empty log message ***

21 years ago * gas/cris: Match output having $ register prefix. Deal with
hp [Sun, 15 Jun 2003 23:46:37 +0000 (23:46 +0000)]
* gas/cris: Match output having $ register prefix.  Deal with
target variants default requiring register prefix on input.

21 years ago* avr-tdep.c (avr_register_byte): Delete function.
troth [Sun, 15 Jun 2003 22:01:05 +0000 (22:01 +0000)]
* avr-tdep.c (avr_register_byte): Delete function.
(avr_register_raw_size): Delete function.
(avr_register_virtual_size): Delete function.
(avr_register_virtual_type): Delete function.
(avr_register_type): New function.
(avr_address_to_pointer): Remove unused code.
(avr_read_fp): Need to read FP as two separate bytes due to change to
avr_register_type() usage.
(avr_gdbarch_init): Don't set deprecated_register_size.
Don't set deprecated_register_bytes.
Don't set deprecated_register_byte.
Don't set deprecated_register_raw_size.
Don't set deprecated_max_register_raw_size.
Don't set deprecated_register_virtual_size.
Don't set deprecated_max_register_virtual_size.
Don't set deprecated_register_virtual_type.
Set register_type method.

21 years ago * Makefile.in (linux-nat.o): Add rule.
drow [Sun, 15 Jun 2003 20:56:46 +0000 (20:56 +0000)]
* Makefile.in (linux-nat.o): Add rule.
* linux-nat.c: New file.
* config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
(CHILD_INSERT_VFORK_CATCHPOINT): Define.
(CHILD_INSERT_EXEC_CATCHPOINT): Define.
* config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
* config/arm/linux.mh (NATDEPFILES): Likewise.
* config/i386/linux.mh (NATDEPFILES): Likewise.
* config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
* config/ia64/linux.mh (NATDEPFILES): Likewise.
* config/m68k/linux.mh (NATDEPFILES): Likewise.
* config/mips/linux.mh (NATDEPFILES): Likewise.
* config/powerpc/linux.mh (NATDEPFILES): Likewise.
* config/s390/s390.mh (NATDEPFILES): Likewise.
* config/sparc/linux.mh (NATDEPFILES): Likewise.

21 years ago* gdb.base/attach.exp: Use -1 for the ID of a nonexistent process
kettenis [Sun, 15 Jun 2003 13:10:37 +0000 (13:10 +0000)]
* gdb.base/attach.exp: Use -1 for the ID of a nonexistent process
on *-*-*bsd* instead of *-*-freebsd*.

21 years ago* i387-tdep.c: Reorder includes, fix some whitespace issues and
kettenis [Sun, 15 Jun 2003 12:45:22 +0000 (12:45 +0000)]
* i387-tdep.c: Reorder includes, fix some whitespace issues and
replace out-of-date comment.

21 years ago2003-06-15 Andrew Cagney <cagney@redhat.com>
cagney [Sun, 15 Jun 2003 12:30:55 +0000 (12:30 +0000)]
2003-06-15  Andrew Cagney  <cagney@redhat.com>

* rdi-share/host.h (Fail): Change to a varargs function.
* remote-rdi.c (Fail): Update.

21 years ago* i386-tdep.c (i386_next_regnum): Fix bounds checking.
kettenis [Sun, 15 Jun 2003 11:40:46 +0000 (11:40 +0000)]
* i386-tdep.c (i386_next_regnum): Fix bounds checking.
(i386_convert_register_p, i386_register_to_value,
i386_register_from_value): Handle types longer than 8 bytes.

21 years ago* i386-tdep.c (i386_register_to_value, i386_value_to_register):
kettenis [Sun, 15 Jun 2003 11:01:44 +0000 (11:01 +0000)]
* i386-tdep.c (i386_register_to_value, i386_value_to_register):
Move floating-point code to new function in i387-tdep.c.
* i387-tdep.c (i387_register_to_value, i387_value_to_register):
New functions containing code moved here from i386-tdep.c.
* i387-tdep.h: Add opaque declaration for `struct type'.
(i387_register_to_value, i387_value_to_register): New prototypes.
* x86-64-tdep.c (x86_64_convert_register_p): New function.
(x86_64_init_abi): Set convert_register_p, register_to_value and
value_to_register here.