Tom Tromey [Wed, 25 Mar 1998 22:05:40 +0000 (22:05 +0000)]
* configure.in, configure, acconfig.h, aclocal.m4: New files.
* Makefile.in (OBJECTS): Depend on config.h, not ../config.h.
(Makefile): Rebuild Makefile here, not in `..'.
Doug Evans [Wed, 25 Mar 1998 22:03:19 +0000 (22:03 +0000)]
* expr.h (expr_build_uconstant): Add prototype.
(expr_build_unary,expr_build_binary): Add prototypes.
* expr.c (expr_build_uconstant): New function.
(expr_build_unary,expr_build_binary): New functions.
Ian Carmichael [Wed, 25 Mar 1998 21:54:06 +0000 (21:54 +0000)]
* Added HAVE_FPU_CONTROL_H and HAVE___SETFPUCW to fix non-linux builds.
Doug Evans [Wed, 25 Mar 1998 21:43:02 +0000 (21:43 +0000)]
* dvp-dis.c (print_insn): Print unpack address in hex.
* dvp-opc.c (parse_vif_mpgloc): Renamed from parse_vif_mpgloc_star.
Don't skip over '*', just record it.
(insert_vif_mpgloc): Don't update state_vif_mpgloc if '*' value.
(parse_vif_unpackloc): Renamed from parse_vif_unpackloc_star.
Don't skip over '*', just record it.
(insert_vif_unpackloc): Don't update state_vif_unpackloc if '*' value.
(vif_operands): Delete VIF_MPGLOC_STAR,VIF_UNPACKLOC_STAR entries.
(vif_opcodes): Likewise.
(state_vif_{mpg,unpack}loc_star_p): New static locals.
(vif_macros,vif_macro_count): New globals.
(vif_unpack_len_value): New arguments wl,cl. All callers updated.
(vif_set_{mpg,unpack}loc): Delete. All callers updated.
(vif_get_wl_cl): New function.
(dvp_opcode_init_parse): Init mpgloc,unpackloc state.
Doug Evans [Wed, 25 Mar 1998 21:26:38 +0000 (21:26 +0000)]
* dvp.h (DVP_OPERAND_UNPACK_ADDRESS): New macro.
(vif_unpack_len_value): Update prototype.
(vif_get_var_data,vif_get_wl_cl): Add prototypes.
Ian Lance Taylor [Wed, 25 Mar 1998 20:41:31 +0000 (20:41 +0000)]
Wed Mar 25 14:32:48 1998 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
* m68k-dis.c (print_insn_m68k): Use info->mach to select the
default m68k variant to recognize.
Ian Lance Taylor [Wed, 25 Mar 1998 20:21:20 +0000 (20:21 +0000)]
* aoutf1.h (sunos_set_arch_mach): Use bfd_mach_m68* rather than
plain numbers.
(sunos_write_object_contents): Likewise.
* aoutx.h (NAME(aout,machine_type)): Likewise.
* coffcode.h (coff_set_arch_mach_hook): Likewise.
Tom Tromey [Wed, 25 Mar 1998 20:15:06 +0000 (20:15 +0000)]
This commit was generated by cvs2svn to track changes on a CVS vendor
branch.
Tom Tromey [Wed, 25 Mar 1998 20:15:06 +0000 (20:15 +0000)]
Imported intl subdir from GNU gettext 0.10.32
Tom Tromey [Wed, 25 Mar 1998 20:15:05 +0000 (20:15 +0000)]
Initial revision
Ian Lance Taylor [Wed, 25 Mar 1998 20:12:49 +0000 (20:12 +0000)]
Wed Mar 25 13:59:24 1998 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
* archures.c (bfd_mach_m68*): Add definitions for various m68k
variants.
(bfd_default_scan): Remove m68k special cases.
* bfd-in2.h: Rebuild.
* mipsbsd.c (MY(write_object_contents)): Use bfd_mach_m680*
instead of plain numbers.
* sparclynx.c (NAME(lynx,set_arch_mach)): Likewise.
* cpu-m68k.c (arch_info_struct): Likewise. Add entry for
m68k:68000.
(bfd_m68k_arch): Set mach field to zero to signal no explicit
selection, change printable_name to just "m68k" and make that the
default instead of m68k:68020.
Jason Molenda [Wed, 25 Mar 1998 19:52:20 +0000 (19:52 +0000)]
My mistake, add libg++ and librx to lose_these_too so that Sanitize knows
what to do with them if it sees them.
Ian Lance Taylor [Wed, 25 Mar 1998 19:49:40 +0000 (19:49 +0000)]
Wed Mar 25 13:59:24 1998 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
* aout-tic30.c (NAME): Define this to avoid multiple definitions
from aoutx.h.
(MY_get_section_contents): Define as aout_32_get_section_contents
rather than NAME(aout,get_section_contents).
* elf-m10300.c (elf32_mn10300_link_hash_table_create): Fix cast.
Wed Mar 25 11:19:28 1998 Ian Lance Taylor <ian@cygnus.com>
* elf-m10300.c (elf32_mn10300_finish_hash_table_entry): Change
byte_count to unsigned int.
(mn10300_elf_relax_section): Initialize internal_relocs. Remove
unused local variables.
Ian Lance Taylor [Wed, 25 Mar 1998 19:36:04 +0000 (19:36 +0000)]
Wed Mar 25 14:32:48 1998 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
* i960-dis.c (pinsn): Change type of first argument to bfd_vma.
(ctrl, cobr, mem, ea): Likewise.
(print_addr): Likewise. Remove cast.
(ea): Cast argument of print_addr to bfd_vma.
* cgen-asm.c (cgen_parse_signed_integer): Fix type of local
variable value.
(cgen_parse_unsigned_integer): Likewise.
(cgen_parse_address): Likewise.
Wed Mar 25 14:31:31 1998 Ian Lance Taylor <ian@cygnus.com>
* i960-dis.c (ctrl): Add full braces to structure initialization.
(cobr, mem, reg): Likewise.
(ea): Correct parenthesization in expression.
* cgen-asm.c: Include <ctype.h>.
(build_asm_hash_table): Remove unused local variable i.
(cgen_parse_keyword): Add casts to avoid warnings.
* arm-dis.c (print_insn_big_arm): Only call coffsymbol for a COFF
symbol. Fix indentation.
(print_insn_little_arm): Likewise.
Nick Clifton [Wed, 25 Mar 1998 19:17:43 +0000 (19:17 +0000)]
Remove CYGNUS LOCAL markers for Thumb port.
Elena Zannoni [Wed, 25 Mar 1998 19:12:09 +0000 (19:12 +0000)]
Wed Mar 25 14:08:51 1998 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
* gdbtk.c (gdbtk_pre_add_symbol): Use Tcl_merge to form Tcl commands.
Ian Lance Taylor [Wed, 25 Mar 1998 19:00:21 +0000 (19:00 +0000)]
Wed Mar 25 13:59:24 1998 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
* evax-alpha.c (evax_set_arch_mach): Only accept bfd_arch_alpha
and call bfd_default_set_arch_mach to do the real work.
Wed Mar 25 13:59:05 1998 Ian Lance Taylor <ian@cygnus.com>
* evax-alpha.c (evax_close_and_cleanup): Remove unused local
variables er and er1.
Ian Lance Taylor [Wed, 25 Mar 1998 18:56:03 +0000 (18:56 +0000)]
* cpu-v850.c: Include <ctype.h>.
(scan): Case isdigit argument to unsigned char.
Also fix v850e/v850ea sanitization.
Richard Henderson [Wed, 25 Mar 1998 18:42:26 +0000 (18:42 +0000)]
* bout.c (BALX): Include return register g14 as part of the insn.
(BALX_MASK): New.
(calljx_callback): Use it.
PR 15310
Ian Lance Taylor [Wed, 25 Mar 1998 18:12:52 +0000 (18:12 +0000)]
Wed Mar 25 13:10:42 1998 Bruno Haible <bruno@linuix.mathematik.uni-karlsruhe.de>
* gasp.c (IS*): Cast argument to unsigned char, not unsigned int.
* macro.c (macro_expand_body): Increase buffer size.
* messages.c (as_warn): Likewise.
(as_warn_where, as_bad, as_bad_where): Likewise.
Ian Lance Taylor [Wed, 25 Mar 1998 18:06:21 +0000 (18:06 +0000)]
Based on patch from H.J. Lu <hjl@gnu.org>:
* Makefile.am (DISTSTUFF): New variable.
(diststuff): New target.
(DISTCLEANFILES): New variable.
* Makefile.in: Rebuild.
Ian Lance Taylor [Wed, 25 Mar 1998 18:00:09 +0000 (18:00 +0000)]
Based on patch from H.J. Lu <hjl@gnu.org>:
* Makefile.am (DISTSTUFF): New variable.
(diststuff): New target.
* Makefile.in: Rebuild.
Ian Lance Taylor [Wed, 25 Mar 1998 17:48:56 +0000 (17:48 +0000)]
Based on patch from H.J. Lu <hjl@gnu.org>:
* Makefile.am (LDDISTSTUFF): New variable.
(diststuff): New target.
* Makefile.in: Rebuild.
Joyce Janczyn [Wed, 25 Mar 1998 17:10:01 +0000 (17:10 +0000)]
* simops.c (OP_F0FD): Initialise variable 'sp' for rti instruction.
Frank Ch. Eigler [Wed, 25 Mar 1998 16:48:04 +0000 (16:48 +0000)]
* As suggested by crash, made --with-sim-gpu2 option active only on -sky- target.
Ian Lance Taylor [Wed, 25 Mar 1998 16:35:13 +0000 (16:35 +0000)]
* scripttempl/pe.sc: Only include .idata\$[0-7] in .idata when
relocating.
Ian Lance Taylor [Wed, 25 Mar 1998 16:21:24 +0000 (16:21 +0000)]
From Yan Meroth <YAN.MEROTH@st.com>:
* ihex.c (ihex_scan): Add extbase variable so that getting an
extended linear address record does not ignore any previous
extended address.
(ihex_write_object_contents): When writing out an extended linear
address record, zero out any previous extended address.
Andrew Cagney [Wed, 25 Mar 1998 14:52:44 +0000 (14:52 +0000)]
* dv-mn103int.c (decode_group): A group register every 4 bytes not 8.
(write_icr): Rewrite equation updating request field.
(read_iagr): Fix check that interrupt is still pending.
Andrew Cagney [Wed, 25 Mar 1998 05:37:42 +0000 (05:37 +0000)]
* interp.c (sim_open): Tidy up device creation.
* dv-mn103int.c (mn103int_port_event): Drive NMI with non-zero value.
(mn103int_io_read_buffer): Convert absolute address to register block offsets.
(read_icr, write_icr): Convert block offset into group offset.
Andrew Cagney [Wed, 25 Mar 1998 04:15:38 +0000 (04:15 +0000)]
* interp.c (sim_open): Create second 1mb memory region at 0x40000000.
(sim_open): Create a device tree.
(sim-hw.h): Include.
(do_interrupt): Delete, needs to use dv-mn103cpu.c
* dv-mn103int.c, dv-mn103cpu.c: New files.
Andrew Cagney [Wed, 25 Mar 1998 04:07:31 +0000 (04:07 +0000)]
* mn10300_sim.h (EXTRACT_PSW_LM, INSERT_PSW_LM, PSW_IE, PSW_LM): Define.
(SP): Define.
Andrew Cagney [Wed, 25 Mar 1998 03:44:37 +0000 (03:44 +0000)]
* dv-pal.c (hw_pal_countdown, hw_pal_countdown_value,
hw_pal_timer, hw_pal_timer_value): Define.
(hw_pal_io_read_buffer, hw_pal_io_write_buffer): Add timer support
(do_counter_event, do_counter_read, do_counter_value,
do_counter_write): new functions.
* hw-tree.c (hw_printf): Send tree dump to stderr, same as other
trace output.
* hw-base.c (hw_create): Stop searching for a device when one is
found.
Andrew Cagney [Wed, 25 Mar 1998 01:41:33 +0000 (01:41 +0000)]
Re-do --enable-sim-hardware so that each simulator can specify the devices
it wants built.
Generate hw-config.h.
Jeff Law [Wed, 25 Mar 1998 01:17:32 +0000 (01:17 +0000)]
* gas/mips/vu0.s: Add tests for "bc2f", "bc2fl", "bc2t", "bc2tl",
"cfc.i", "cfc.ni", "ctc.i", and "ctc.ni".
* gas/mips/vu0.d: Corresponding changes.
Jeff Law [Wed, 25 Mar 1998 01:09:09 +0000 (01:09 +0000)]
* vu0.h (cfc2, ctc2): Add variants with ".i" and ".ni"
opcode extensions.
Jason Molenda [Wed, 25 Mar 1998 01:02:09 +0000 (01:02 +0000)]
Start deleting libg++ and librx--they are no longer shipped to customers.
Jason Molenda [Wed, 25 Mar 1998 01:00:18 +0000 (01:00 +0000)]
Tue Mar 24 16:58:29 1998 Jason Molenda (crash@bugshack.cygnus.com)
* Makefile.in (TARGET_CONFIGDIRS, ALL_TARGET_MODULES,
CONFIGURE_TARGET_MODULES, CHECK_TARGET_MODULES,
INSTALL_TARGET_MODULES, CLEAN_TARGET_MODULES, all-target-winsup):
Remove references to librx and libg++.
Bye bye.
Nick Clifton [Wed, 25 Mar 1998 00:54:54 +0000 (00:54 +0000)]
Fix PR15434 by emitting a nop if a section ends with a 16 bit instruction.
Ian Lance Taylor [Wed, 25 Mar 1998 00:48:51 +0000 (00:48 +0000)]
* config/obj-coff.c (obj_coff_bss): Compile unconditionally. Call
s_lcomm rather than obj_coff_lcomm.
(obj_pseudo_table): Compile .bss pseudo-op unconditionally.
Ian Lance Taylor [Wed, 25 Mar 1998 00:33:29 +0000 (00:33 +0000)]
* rclex.l: Accept { and } as synonyms for BEGIN and END.
Andrew Cagney [Wed, 25 Mar 1998 00:08:52 +0000 (00:08 +0000)]
Pacify GCC.
Ian Lance Taylor [Wed, 25 Mar 1998 00:06:23 +0000 (00:06 +0000)]
Add --demangle and --no-demangle options:
* gprof.h (demangle): Declare.
* gprof.c (demangle): New global variable.
(OPTION_DEMANGLE, OPTION_NO_DEMANGLE): Define.
(long_options): Add "demangle" and "no-demangle".
(usage): Mention --demangle and --no-demangle.
(main): Handle OPTION_DEMANGLE and OPTION_NO_DEMANGLE.
* utils.c (print_name_only): Only demangle symbol name if demangle
is true.
* gprof.texi (Output Options): Document new options.
Ian Lance Taylor [Tue, 24 Mar 1998 23:34:58 +0000 (23:34 +0000)]
Tue Mar 24 18:32:47 1998 H.J. Lu <hjl@gnu.org>
* i386.h: Set LinearAddress for lidt and lgdt.
Ian Lance Taylor [Tue, 24 Mar 1998 23:34:45 +0000 (23:34 +0000)]
Tue Mar 24 18:30:58 1998 H.J. Lu <hjl@gnu.org>
* config/tc-i386.h (LinearAddress): Define.
* config/tc-i386.c (md_assemble): If LinearAddress is set for the
instruction, don't use a default segment.
Eric Mumpower [Tue, 24 Mar 1998 23:30:35 +0000 (23:30 +0000)]
* Makefile.in (BASE_FLAGS_TO_PASS): Pass $(lispdir) down to
recursive makes
Andrew Cagney [Tue, 24 Mar 1998 23:16:57 +0000 (23:16 +0000)]
* interp.c (Max, Min): Comment out functions. Not yet used.
* vr4320.igen (DCLZ): Pacify GCC, 64 bit arg, int format.
Ian Carmichael [Tue, 24 Mar 1998 22:23:33 +0000 (22:23 +0000)]
* Several fixes and performance enhancements from my 2 weeks working in Japan.
Andrew Cagney [Tue, 24 Mar 1998 21:30:00 +0000 (21:30 +0000)]
* gen-engine.c (print_run_body): Re-extract the CIA after
processing any events. Events may not restart the simulator.
Joyce Janczyn [Tue, 24 Mar 1998 21:23:29 +0000 (21:23 +0000)]
Add new files: mn10300.igen, mn10300.dc, sim-main.h, op_utils.c
Ian Lance Taylor [Tue, 24 Mar 1998 21:10:44 +0000 (21:10 +0000)]
Tue Mar 24 16:09:43 1998 Manfred Hollstein <manfred@s-direktnet.de>
* ieee.c (do_one): Check section before dereferencing it.
(ieee_canonicalize_reloc): Likewise with src->relent.sym_ptr_ptr.
(ieee_generic_stat_arch_elt): Likewise with abfd->my_archive.
Joyce Janczyn [Tue, 24 Mar 1998 20:30:03 +0000 (20:30 +0000)]
Port mn10300 simulator to build with the common simulator framework
under the configure option --enable-sim-common.
Joyce Janczyn [Tue, 24 Mar 1998 20:26:06 +0000 (20:26 +0000)]
Add code to support building mn10300 simulator with the common simulator
framework.
Joyce Janczyn [Tue, 24 Mar 1998 20:19:55 +0000 (20:19 +0000)]
Add support for building simulator based on common simulator framework.
Separate out files which get compiled depending on --enable-sim-common
configuration.
Joyce Janczyn [Tue, 24 Mar 1998 20:16:25 +0000 (20:16 +0000)]
Add ability to configure mn10300 built with common simulator code base.
Use --enable-sim-common to build this way; default configure has not
changed.
Joyce Janczyn [Tue, 24 Mar 1998 20:11:44 +0000 (20:11 +0000)]
New {load/store}_{byte/half/word} macros for simulator built with
common framework.
Joyce Janczyn [Tue, 24 Mar 1998 20:08:00 +0000 (20:08 +0000)]
Header file required by igen generated files.
Joyce Janczyn [Tue, 24 Mar 1998 20:07:22 +0000 (20:07 +0000)]
IGEN input files for mn10300 simulator.
Stu Grossman [Tue, 24 Mar 1998 17:50:09 +0000 (17:50 +0000)]
* Makefile.in: Get SHELL from configure.
* configure: Regenerate with autoconf 2.12.1 to fix shell issues for
NT native builds.
Stu Grossman [Tue, 24 Mar 1998 17:48:58 +0000 (17:48 +0000)]
* Make-common.in: Get SHELL from configure.
* (stamp-tvals sim-inline.c): Use $(SHELL) when invoking
move-if-change. Fixes NT native build problem.
* Makefile.in (nltvals.def): Use $(SHELL) when invoking
move-if-change. Fixes NT native build problem.
* configure: Regenerate with autoconf 2.12.1 to fix shell issues for
NT native builds.
Stu Grossman [Tue, 24 Mar 1998 16:44:10 +0000 (16:44 +0000)]
* Makefile.in: Derive SHELL from configure.
* config/d10v/d10v.mt config/d30v/d30v.mt config/m32r/m32r.mt
config/mn10200/mn10200.mt config/mn10300/mn10300.mt : Remove -lm
from SIM. This prevents dependency checking of -lm (under NT
native builds). (It is automatically added by configure if it
exists.)
* doc/configure mswin/configure nlm/configure
testsuite/gdb.base/configure testsuite/gdb.c++/configure
testsuite/gdb.chill/configure testsuite/gdb.disasm/configure
testsuite/gdb.stabs/configure testsuite/gdb.threads/configure:
Regenerate with autoconf 2.12.1 to fix shell issues for NT native
builds.
Ian Lance Taylor [Tue, 24 Mar 1998 16:39:03 +0000 (16:39 +0000)]
* Makefile.in (CC_FOR_TARGET): Use $(TARGET_SUBDIR) when passing -B
for newlib directory.
(CXX_FOR_TARGET): Likewise.
Joyce Janczyn [Tue, 24 Mar 1998 16:18:58 +0000 (16:18 +0000)]
Build IGEN with the mn10300 simulator.
Jason Molenda [Tue, 24 Mar 1998 02:12:22 +0000 (02:12 +0000)]
Mon Mar 23 18:10:57 1998 Ulrich Drepper (drepper@cygnus.com)
* solib.c (solib_create_inferior_hook): Rewrite previous
change to check the type of file via BFD.
Ian Lance Taylor [Mon, 23 Mar 1998 23:56:06 +0000 (23:56 +0000)]
Mon Mar 23 18:54:15 1998 Joel Sherrill <joel@OARcorp.com>
* configure.tgt: (sh*-*-rtems*): Switched from ELF to COFF.
Ian Lance Taylor [Mon, 23 Mar 1998 23:54:49 +0000 (23:54 +0000)]
Mon Mar 23 18:53:40 1998 Joel Sherrill <joel@OARcorp.com>
* configure.in: (sh*-*-rtems*): Switched from ELF to COFF.
* configure: Rebuild.
Ian Lance Taylor [Mon, 23 Mar 1998 23:52:58 +0000 (23:52 +0000)]
Mon Mar 23 18:51:47 1998 Joel Sherrill <joel@OARcorp.com>
* config.bfd: (sh*-*-rtems*): Switched from ELF to COFF.
Angela Marie Thomas [Mon, 23 Mar 1998 23:30:33 +0000 (23:30 +0000)]
fix random sanitization errors
Nick Clifton [Mon, 23 Mar 1998 22:24:37 +0000 (22:24 +0000)]
Add interworking support (untested) to pe backends.
Jason Molenda [Mon, 23 Mar 1998 21:58:12 +0000 (21:58 +0000)]
Mon Mar 23 13:52:28 1998 Ulrich Drepper (drepper@cygnus.com)
* breakpoint.c (breakpoint_re_set_one): Treat bp_shlib_events
like bp_breakpoints.
* solib.c (solib_create_inferior_hook): Relocate section addresses
if the alleged start address doesn't agree with the PC.
Doug Evans [Mon, 23 Mar 1998 21:31:08 +0000 (21:31 +0000)]
* gas/dvp/mpg-1.[sd]: New files.
* gas/dvp/mpg-1vu.s: New file.
* gas/dvp/dvp.exp: Run new test mpg-1.s.
Doug Evans [Mon, 23 Mar 1998 21:19:04 +0000 (21:19 +0000)]
* config/tc-dvp.c (insert_mpg_marker): Update mpgloc.
Nick Clifton [Mon, 23 Mar 1998 19:36:21 +0000 (19:36 +0000)]
add sanitization marker
Nick Clifton [Mon, 23 Mar 1998 19:35:49 +0000 (19:35 +0000)]
Fix SATH bit pattern
Nick Clifton [Mon, 23 Mar 1998 19:33:35 +0000 (19:33 +0000)]
Fix SATH bit pattern (PR15418)
Elena Zannoni [Mon, 23 Mar 1998 18:43:42 +0000 (18:43 +0000)]
Mon Mar 23 13:41:39 1998 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
* gdbtk.c (gdb_get_mem): Rewrite to fetch entire contents
of the memory window at once.
Frank Ch. Eigler [Mon, 23 Mar 1998 18:36:35 +0000 (18:36 +0000)]
* Oops, added note re. regeneration of "configure" script.
Frank Ch. Eigler [Mon, 23 Mar 1998 18:34:28 +0000 (18:34 +0000)]
* Added sky-sanitized --with-sim-gpu2 option to match the one given to
stand-alone sky simulator, last week.
start-sanitize-sky
Mon Mar 23 13:07:22 1998 Frank Ch. Eigler <fche@cygnus.com>
* configure.in (sim-gpu2): Added --with-sim-gpu2 as configure
option, to allow gdb+sim linking with sky GPU2 library.
end-sanitize-sky
Jeff Law [Mon, 23 Mar 1998 18:30:16 +0000 (18:30 +0000)]
* ltconfig: Update after libtool/ltconfig.in change for
hpux11.
Doug Evans [Mon, 23 Mar 1998 18:03:15 +0000 (18:03 +0000)]
* dvp.h (vif_operand_datalen_special): Declare.
Doug Evans [Mon, 23 Mar 1998 18:01:04 +0000 (18:01 +0000)]
* dvp-opc.c (vif_operand_datalen_special): New global.
Frank Ch. Eigler [Mon, 23 Mar 1998 16:04:22 +0000 (16:04 +0000)]
* Backing out non-dvp changes from 1998-03-20; ".section text" is not
understood to be the same as ".text" on all ports. The DVP assembler
will resume failing these two tests.
Jeff Law [Mon, 23 Mar 1998 07:46:11 +0000 (07:46 +0000)]
* config/tc-mips.c (validate_mips_insn): Handle r5900 operands.
Elena Zannoni [Sun, 22 Mar 1998 23:02:10 +0000 (23:02 +0000)]
Sat Mar 21 19:34:49 1998 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
merged changes from Foundry (list follows by file/author):
- Tom Tromey <tromey@cygnus.com>
* Makefile.in (gdbres.o): New target.
(WINDRES): New define.
* configure: Rebuilt.
* configure.in (WINDRES): Define.
(CONFIG_OBS): Include gdbres.o on Windows.
* gdbtool.ico: New file.
* gdb.rc: New file.
* ser-unix.c
- Keith Seitz <keiths@onions.cygnus.com>
(wait_for): Don't reset the timeout_remaining for CYGWIN32,
since we now effectively poll the serial port.
Don't reset the current_timeout, either, since this member is used
by hardwire_readchar to track the timeout and call the ui_loop_hook.
(hardwire_readchar): Poll the serial port for Cygwin32. We timeout every
second, update the UI, and loop around doing this until we have hit the real
timeout or we get data or an error. This will allow the UI to stay active
while gdb is "blocked" talking to the target.
- Martin M. Hunt <hunt@cygnus.com>
(wait_for): Do reset current_timeout
because it is only used to keep track of what the
current timeout for the scb is.
* top.c
- Martin M. Hunt <hunt@cygnus.com>
(quit_confirm): Change exit message again
for GUI.
(pc_changed_hook): Add prototype.
- Tom Tromey <tromey@cygnus.com>
(quit_confirm): Added missing `else'.
(quit_confirm): Special-case message if init_ui_hook is
set.
* symtab.c
- Martin M. Hunt <hunt@cygnus.com>
(find_pc_sect_line): If no symbol information
is found, return correct pc anyway.
(find_methods): Comment out an apparently
bogus error message because it messes up Foundry.
* serial.c
- Martin M. Hunt <hunt@cygnus.com>
(_initialize_serial): Add a description of
"set remotelogbase".
* findvar.c
- Martin M. Hunt <hunt@cygnus.com>
(write_register_gen): Add call to
pc_changed_hook if the PC is being changed.
* defs.h
- Martin M. Hunt <hunt@cygnus.com>
(pc_changed_hook): Define.
* command.c
- Martin M. Hunt <hunt@cygnus.com>
(do_setshow_command): If no arguments are supplied,
don't dump core, instead print out an error message.
* breakpoint.c
- Martin M. Hunt <hunt@cygnus.com>
Make set_raw_breakpoint, set_breakpoint_count,
and breakpoint_count non-static so they are accessible from
gdbtk.c.
(enable_breakpoint): Enable breakpoint
with same disposition instead of changing all breakpoints
to donttouch.
* annotate.h
- Keith Seitz <keiths@onions.cygnus.com>
Add declarations for annotation hooks.
* annotate.c
- Keith Seitz <keiths@onions.cygnus.com>
Add hooks: annotate_starting_hook, annotate_stopped_hook,
annotate_signalled_hook, annotate_exited_hook.
(annotate_starting): If hook exists, call it instead.
(annotate_stopped): If hook exists, call it instead.
(annotate_exited): If hook exists, call it instead.
(annotate_signalled): If hook exists, call it instead.
Sat Mar 21 19:34:49 1998 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
Merged changes from Foundry: list follows by author:
- Tom Tromey <tromey@cygnus.com>
* Makefile.in (gdbres.o): New target.
(WINDRES): New define.
* configure: Rebuilt.
* configure.in (WINDRES): Define.
(CONFIG_OBS): Include gdbres.o on Windows.
* gdbtool.ico: New file.
* gdb.rc: New file.
* gdbtk.c (gdbtk_init): Call ide_create_messagebox_command.
(gdbtk_cleanup): Call ide_interface_deregister_all.
(gdbtk_init): Pass event handle to cleanup.
(TclDebug): Use Tcl_Merge to construct command.
(gdbtk_init): Call ide_create_cygwin_path_command.
- Martin M. Hunt <hunt@cygnus.com>
* gdbtk.c (gdb_set_bp): Set addr_string for bp.
(gdb_get_breakpoint_info): Demangle function
names in breakpoint info.
Include "demangle.h".
(gdb_loc, gdb_listfuncs): Demangle C++
function names.
(gdb_set_bp): Properly quote filename to fix
problems with spaces. Send pc back as a hex string.
(gdb_listfuncs): Remove debugging line.
Turn off some debugging lines.
(breakpoint_notify): Return correct line number.
(gdb_get_breakpoint_info): Return correct line number.
(gdb_set_bp): New function to provide a better way to
set breakpoints.
(gdbtk_readline, gdbtk_readline_begin): Memory
allocated by tcl needs to be freed by Tcl_Free().
(find_file_in_dir): Deleted.
(gdb_find_file_command): Call full_lookup_symtab().
(gdb_listfuncs): Call full_lookup_symtab().
(full_lookup_symtab): New function. Like lookup_symtab
except handles multiple files with the same basename,
full pathnames, and always sets symtab->fullname.
(gdb_loadfile): Call full_lookup_symtab(). Clear
realloc'd memory.
(gdb_loadfile): Don't tag lines without source.
Tag source lines with source_tag.
(gdb_find_file_command, find_file_in_dir):
Rewrite. Now searches symtabs and psymtabs for a match
on the partial or full filename. Returns the full pathname.
(gdb_loadfile): Realloc additional memory
if someone loads in a file with more than 160,000
lines. I don't know if this really works because
I don't have enough memory to test it.
(gdb_sourcelines): Deleted.
(gdb_loadfile): New function. Takes a text widget
and loads it with the contents of a file. Marks
and tags source lines.
(pc_changed): New function.
(get_pc_register): Returns the value of
the PC to GDB.
(gdb_loc): If looking on the stack, return
real pc along with calling source line.
(gdb_loc): Return "" instead of "N/A" if
filename is not found.
(gdb_get_breakpoint_info): Same.
(get_register): For Natural mode, set format to 0.
Minor bugfixes from keiths.
(TclDebug): New function for debugging use.
(gdb_loc): Return correct PC for frames
that are not the innermost frame.
(gdb_listfiles): Rewritten to use object
API. Now takes an optional dirname which will cause
only files in that directory or its subdirectories
to be returned. Now returns basenames instead of
full pathnames.
(gdb_cmd): Set/reset load_in_progress flag.
(call_wrapper): Don't pop up dialog for errors in
downloads; just abort download.
(gdbtk_load_hash): Set return value correctly.
- Keith Seitz <keiths@onions.cygnus.com>
* gdbtk.c (gdbtk_init): Define the ui_loop_hook so that it can be
called by routines which might block, allowing us to update the GUI.
(gdbtk_wait): Move timer calls to annotation hooks.
(gdbtk_init): Define the annotation hooks.
(gdbtk_annotate_starting): New function for cygwin32 hosts.
(gdbtk_annotate_stopped): New function for cygwin32 hosts.
(gdbtk_annotate_exited): New function for cygwin32 hosts.
(gdbtk_annotate_signalled): New function. for cygwin32 hosts.
(gdbtk_init): Use gdbtk_print_frame_info hook.
(gdbtk_print_frame_info): New function which sets current_source_symtab
based on the given symtab and line info.
(gdb_immediate_command): New function which does
not buffer any
output. (Contrast to gdb_cmd.)
(gdb_prompt_command): New function to return gdb's prompt.
(find_file_in_dir): New functon which searches source paths
for a given filename.
(gdb_find_file): New function which returns path to given file -- uses
find_file_in_dir.
(gdbtk_init): Install "gdb_immediate", "gdb_find_file", and
"gdb_prompt"
commands into interpreter.
- Ian Lance Taylor <ian@cygnus.com>
* gdbtk.c (gdbtk_timer_going): If __CYGWIN32__, new static
variable.
(gdb_cmd): If __CYGWIN32__, if executing the load command, call
gdbtk_start_timer and gdbtk_stop_timer.
(call_wrapper): If __CYGWIN32__, if the timer is going, turn it
off. Clear load_in_progress.
(x_event): If load_in_progress, quit if download_cancel_ok.
(gdbtk_start_timer): Set gdbtk_timer_going.
(gdbtk_stop_timer): Clear gdbtk_timer_going.
(gdbtk_wait): Call x_event.
(gdbtk_init): Call ide_create_win_grab_command if
__CYGIN32__.
(gdb_clear_file): Clear stop_pc.
Andrew Cagney [Sun, 22 Mar 1998 22:33:34 +0000 (22:33 +0000)]
New function hw_strdup() - use memory tied to hw device.
Tidy up hw-properties error messages.
New device dv-glue.c (copied from ../ppc/hw_glue.)
Only attach a port after a devices initialization has finished.
Jeff Law [Sun, 22 Mar 1998 20:17:34 +0000 (20:17 +0000)]
* config/tc-mips.c (append_insn): Handle BFD_RELOC_MIPS16_S3.
(mips_ip): Handle 'O' operand.
(md_apply_fix): Handle BFD_RELOC_MIPS16_S3.
Jeff Law [Sun, 22 Mar 1998 20:01:56 +0000 (20:01 +0000)]
* elf32-mips.c (R_MIPS15_S3): New relocation type.
(elf_mips_howto_table): Add R_MIPS15_S3.
(mips_reloc_map): Map BFD_RELOC_MIPS15_S3 to R_MIPS15_S3.
* reloc.c (BFD_RELOC_MIPS15_S3): New relocation type.
* bfd-in2.h, libbfd.h: Rebuilt.
Jeff Law [Sun, 22 Mar 1998 19:56:37 +0000 (19:56 +0000)]
* vu0.h (vcallms): Use 'O' for call target operand.
* mips-dis.c (print_insn_arg): Handle 'O'.
Andrew Cagney [Sun, 22 Mar 1998 05:51:57 +0000 (05:51 +0000)]
Fix typos: Setting trace in wrong function, ME vs HW.
Andrew Cagney [Sun, 22 Mar 1998 05:49:30 +0000 (05:49 +0000)]
Copy function ../ppc/device_table.c:generic_device_init_address() to
hw-base.c:do_hw_attach_regs(). Use in dv-pal.
Add hw_tree_delete to hw-tree.c.
Andrew Cagney [Sun, 22 Mar 1998 05:33:41 +0000 (05:33 +0000)]
Add function hw_trace() and macro HW_TRACE - provides trace support
for HW devices.
Andrew Cagney [Sun, 22 Mar 1998 05:06:27 +0000 (05:06 +0000)]
Add hw_{malloc,zalloc,free} functions to hw_device. Any memory
allocated using these functions is reclaimed when the corresponding
device is deleted.
Andrew Cagney [Sun, 22 Mar 1998 04:18:52 +0000 (04:18 +0000)]
Replace *attach_address() arguments SPACEMASK:ADDR with SPACE:ADDR.
Add notes to hw-device.h that discuss the interpretation of SPACE:ADDR
on a BUS.
Frank Ch. Eigler [Sat, 21 Mar 1998 00:29:55 +0000 (00:29 +0000)]
* Updated DVP test case to match new alignment code that was checked in two
nights ago. Patched other two test cases to explicitly specify the ".text"
segment for tests since the DVP assembler defaults to ".vutext".
Ian Lance Taylor [Sat, 21 Mar 1998 00:27:12 +0000 (00:27 +0000)]
* Makefile.in: Rebuild with automake 1.2e.
* aclocal.m4, configure: Rebuild with libtool 1.2.
Ian Lance Taylor [Sat, 21 Mar 1998 00:16:42 +0000 (00:16 +0000)]
* aclocal.m4, configure: Rebuild with libtool 1.2.
Ian Lance Taylor [Fri, 20 Mar 1998 23:55:49 +0000 (23:55 +0000)]
* configure.in: Use AM_DISABLE_SHARED.
* aclocal.m4, configure: Rebuild with libtool 1.2.
Ian Lance Taylor [Fri, 20 Mar 1998 23:48:23 +0000 (23:48 +0000)]
* configure.in: Use AM_DISABLE_SHARED.
* aclocal.m4, configure: Rebuild with libtool 1.2.
Michael Snyder [Fri, 20 Mar 1998 23:33:28 +0000 (23:33 +0000)]
Fri Mar 20 14:45:36 1998 Michael Snyder <msnyder@cleaver.cygnus.com>
* gdbserver/Makefile.in: add dependency on XM_CLIBS.
* gdbserver/low-sim.c (registers) force into alignment.
(create_inferior): Fix typo on new_argv; add abfd arg to
sim_open, sim_create_inferior. Add reg_size arg to
sim_fetch_register, sim_store_register. Make simulator
take a single-step to get into a known running state.
* gdbserver/gdbreplay.c: include fcntl.h for def'n of F_SETFL.
* gdbserver/server.c: Add remote_debug variable to control
debug output.
* gdbserver/server.h: Add prototypes for enable/disable_async_io.
* gdbserver/remote-utils.c: add verbose debugging output controlled
by "remote_debug" variable. Add call to "disable_async_io()"
to avoid being killed by async SIGIO signals.
* config/m32r/m32r.mt: define GDBSERVER_(LIBS and DEPFILES),
so that gdbserver can be built with the m32r simulator.
Jeff Law [Fri, 20 Mar 1998 22:56:01 +0000 (22:56 +0000)]
Sanitize away vu0 stuff unless --keep-r5900.
James Lemke [Fri, 20 Mar 1998 22:51:39 +0000 (22:51 +0000)]
Added DMAC unit test cases.