Commit Graph

7095 Commits

Author SHA1 Message Date
Jason Molenda 6cc922a988 Sun Mar 2 15:16:13 1998 Richard Henderson <rth@cygnus.com>
* configure.host, configure.tgt: Add sparc-linux.
        * sparc-nat.c: Include <asm/reg.h> not <machine/reg.h> for Linux.
        * config/sparc/*linux*: New files.
1998-03-02 23:17:31 +00:00
Jason Molenda 4321ed5304 Mon Mar 2 12:12:41 1998 Anthony Thompson (athompso@cambridge.arm.com)
* arm-tdep.c (gdb_print_insn_arm): Call print_insn_big_arm
        if we're big endian; else call print_insn_little_arm.


Patch contributed in PR 15182.
1998-03-02 20:14:53 +00:00
Jason Molenda 9a760d248f Change from rth.
* Makefile.in (BISON): Don't even pretend to use yacc.
        (c-exp.tab.o): Use bison -o to use a unique intermediate file.
        (jv-exp.tab.o, f-exp.tab.o, m2-exp.tab.o): Likewise.
1998-02-24 19:25:44 +00:00
Mark Alexander be61d73cf3 * config/mn10300-eval.exp: New file to support MN10300 eval board. 1998-02-23 17:01:02 +00:00
Andrew Cagney 5af9fc5f50 Specify correct values for REGISTER_RAW_SIZE.
If a SIM/GDB register size botch, warn the user once.
1998-02-23 16:40:34 +00:00
John Metzler c3cf44c448 remove long long printf crash 1998-02-20 00:52:37 +00:00
Frank Ch. Eigler f8611801b1 * remote-mips.c (mips_request): Use unsigned long during parsing
returned value from monitor, to prevent accidental sign extension.
1998-02-17 23:14:57 +00:00
Jason Molenda dd60073596 Tue Feb 17 14:28:33 1998 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
* acconfig.h: FORCE_MMCHECK changed to MMCHECK_FORCE.
        * configure.in: Ditto.
        * configure: Regenerated.

Tue Feb 17 14:07:34 1998  Peter Schauer <pes@regent.e-technik.tu-muenchen.de>

        * gdbtypes.c (check_typedef): Do not try to resolve the length of
        a type which has TYPE_FLAG_TARGET_STUB set, if the target type has
        set TYPE_FLAG_TARGET_STUB as well.



Patches from Peter.
1998-02-17 22:42:02 +00:00
Andrew Cagney bccb2e7f89 Pass REGISTER_RAW_SIZE to sim_{fetch,store}_register. Verify returned
register size.
1998-02-17 04:28:00 +00:00
Andrew Cagney 6c3beaaf21 Make ``target d10v'' and ``target remote'' equivalent.
Hack remote.c so that xfer_memory calls a memory translate function.
1998-02-16 09:17:07 +00:00
Ron Unrau 678fa7ffe3 parse.c (write_dollar_variable): call new function target_map_name_to_register
so that targets can define their own register name aliases.
infcmd.c (registers_info): call target_map_name_to_register so that
	"print $reg" and "info reg $reg" share the same register alias set.
mips-tdep.c: separate MIPS_R5900_REGS from NUM_REGS so that sky registers
	can be printed separately.
txvu-tdep.c: print registers according to current CPU context.
tm-txvu.h: define SKY registers and conditionalize register interpretation
	macros.
txvu.mt: Don't bother building remote-mips.o for sky target.
1998-02-15 21:30:02 +00:00
Stan Shebs 8970f2fd36 * config/i386/i386mk.mt (OBJFORMATS): Delete, no longer used.
* config/i386/xm-i386mk.h: Fix an include.
	* config/pyr/tm-pyr.h (PC_INNER_THAN): Remove, never used.
1998-02-14 00:49:47 +00:00
Stan Shebs 67d8c3aa30 micro-cleanup 1998-02-14 00:38:57 +00:00
Frank Ch. Eigler a469b84c3b * Changed MIPS monitor interface code to be tolerant of slightly
different IDT/sim 6.0 behavior.  Extra time and laxness is alloted
  for monitor entry and exit.
1998-02-12 21:28:52 +00:00
Andrew Cagney 9df3ba709f * d10v-tdep.c (show_regs): Avoid use of %llx when printing 8 byte
accumulators.
1998-02-12 07:32:58 +00:00
Andrew Cagney 9308792034 For d10v, do not sign-extend pointers. 1998-02-12 06:21:12 +00:00
Andrew Cagney dd0ce8f668 Add a new target specific protocol `target d10v' implemented in
remote-d10v.c.  It has an xfer_mem function that can translate a d10v
GDB address into a d10v monitor address.
1998-02-12 05:48:23 +00:00
Andrew Cagney b6b48d0313 * gdb.base/d10vovly.c (D10VTranslate): Map IMAP0 to low 128k of
on-chip insn memory and IMAP1 to upper 128k.
        (D10VCopy): Handle memory regions crossing 16k boundaries.
        (D10VCopy): Transfer data in 32 bit chunks.
1998-02-12 05:09:25 +00:00
Andrew Cagney 0c3ab0a169 Remote protocol for d10v. Mainly responsible for translating GDB d10v
addresses into those expected by the remote d10v monitor.
1998-02-12 04:20:07 +00:00
Andrew Cagney 6bcc5ba37a Enable remote-tcp on a FreeBSD host. 1998-02-11 11:01:30 +00:00
Keith Seitz a5f4fbff1d * tracepoint.c (tracepoint_operation): Call the modify_tracepoint_hook
if it exists.
        Remove static declaration of free_actions.

        * tracepoint.h: Add declaration of free_actions.

        * gdbtk.c (gdbtk_modify_tracepoint): Define new tracepoint modification
hook.
        (gdbtk_print_frame_info): Define this hook so that current_source_symtab
        is set properly.
        (gdb_actions_command): Use free_actions () from tracepoint.c/h.
1998-02-11 02:33:22 +00:00
Jason Molenda 75a1d67abb Mon Feb 10 12:37:47 1998 Philippe De Muyter <phdm@macqel.be>
* m68k/tm-delta68.h (EXTRACT_RETURN_VALUE): Type argument for
        `REGISTER_CONVERT_TO_VIRTUAL is `TYPE', not
        `REGISTER_VIRTUAL_TYPE (FP0_REGNUM)';
        (STORE_RETURN_VALUE): Ditto, and offset for `write_register_bytes'
        is `REGISTER_BYTE (FP0_REGNUM)', not `FP0_REGNUM'.
        (FRAME_NUM_ARGS): New macro.
        * m68k/tm-news.h (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE): Ditto.
        * delta68-nat.c (clear_insn_cache): New function, forgotten in previous
        patch.
1998-02-10 20:14:43 +00:00
Andrew Cagney f6826586c5 D10V memory map changed. Update.
Replace all references to [ID]MEM_ADDR with conversion macros.
1998-02-10 07:05:32 +00:00
Doug Evans 79f15b12ba * symtab.c (fixup_psymbol_section): Move forward declaration to
top of file with other such decls.  Make it a static function.
	* symtab.h: Minor formatting tweaks.
Via Fred, from m32r branch.
1998-02-09 23:25:39 +00:00
Doug Evans 9c01dbfbdb * symtab.c (fixup_psymbol_section): Move forward declaration to
top of file with other such decls.  Make it a static function.
	* symtab.h: Minor formatting tweaks.
Via Fred, from m32r branch.
1998-02-09 23:20:13 +00:00
Stan Shebs cb5cd5b464 * config/a29k-udi.mt, config/i960/vxworks960.mt (REMOTE_OBS):
Remove redefinition.
	* config/i960/tm-i960.h (BREAKPOINT): Define.
Fix build failures due to tracepoint.c addition
1998-02-09 21:25:02 +00:00
Ian Lance Taylor 89f2ecdbb1 * Makefile.in (init.c): Ignore errors when making init.c. Seems
necessary to work around bug in Solaris make.
1998-02-09 20:39:14 +00:00
Jason Molenda 4434e2dc4e Sun Jul 6 02:44:28 1997 Philippe De Muyter <phdm@macqel.be>
* m68k/tm-delta68.h (CPLUS_MARKER): Macro deleted.
        (EXTRACT_STRUCT_VALUE_ADDRESS): Macro defined.
        (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE): Macros modified
        because floating-point values return via %fp0.
        (CLEAR_INSN_CACHE): New macro.
        * m68k/tm-m68k.h (REGISTER_CONVERT_TO_VIRTUAL): Macro fixed
        to use DOUBLEST.
        (REGISTER_CONVERT_TO_RAW): Ditto.
        * infptrace.c (child_xfer_memory): If CLEAR_INSN_CACHE is defined,
        call it after having written in child process's memory.
        * inflow.c (PROCESS_GROUP_TYPE): Macro defined if HAVE_TERMIO.
        (gdb_has_a_terminal, terminal_ours_1): Functions fixed for HAVE_TERMIO.
1998-02-06 23:27:06 +00:00
Jeff Law 4cb366740e * config/mips/tm-mips64.h (TARGET_LONG_BIT): Allow final target to
override.
        (TARGET_LONG_LONG_BIT): Likewise.
        (TARGET_PTR_BIT): Likewise.
start-sanitize-r5900
        * config/mips/tm-r5900.h (TARGET_PTR_BIT): Define to 32 bits.
end-sanitize-r5900
1998-02-06 23:18:29 +00:00
Doug Evans 5f3ba16b71 * configure.tgt (mips64r5900*-sky-elf*): Replaces txvu-elf.
* config/mips/txvu.mt (SIM): txvu -> mips.
1998-02-06 22:39:18 +00:00
Andrew Cagney 608addd440 * config/d10v/tm-d10v.h (D10V_CONVERT_IADDR_TO_RAW,
D10V_CONVERT_DADDR_TO_RAW): Define.
	* d10v-tdep.c (d10v_push_arguments): Re-write.  Pass arguments in
 	registers, regardless of their size, when they fit.
1998-02-06 07:26:11 +00:00
Andrew Cagney 9961ca7ab5 o Update GDB to match changes to d10v abi (ARG1 in r0 instead of r2).
o Fix code assuming that host/target were both bigendian.
o Replace d10v push dummy frame code with version using new common
  generic generic version.
o Find/fix more cases where a value needs to be translated to/from
  instruction (IMAP) or data (DMAP) spaces.
1998-02-06 04:09:35 +00:00
Andrew Cagney 44d33d559e New function, generic_pop_current_frame(), targets point POP_FRAME at
this.
1998-02-06 03:35:00 +00:00
Andrew Cagney 93854f7c7c Get overlay testsuite to work on m32r when image is being built with a
small data section (.sdata): Force _novrly variable into .data; stop
test variables being put into .sdata.
1998-02-06 03:26:11 +00:00
Andrew Cagney 1931ea8d43 When starting a new simulator run, ensure proceed status is cleared. 1998-02-06 03:09:59 +00:00
Jason Molenda 8d743926f4 * top.c (do_nothing): Remove signal handler after signal is caught.
Helpful for SYSV systems where two ^-\s will cause problems.  Should have
no effect on BSD systems.
1998-02-06 01:22:01 +00:00
Jason Molenda df419eec9c * top.c (do_nothing): Remove signal handler after signal is caught.
Helpful for SYSV systems where two ^-\s will cause problems.  Should have
no effect on BSD systems.
1998-02-06 01:16:56 +00:00
Michael Snyder d9ba1c3faf Thu Feb 5 11:57:06 1998 Michael Snyder (msnyder@cleaver.cygnus.com)
* tracepoint.c (tracepoint_operation): call free_actions instead
        of free.  (free_actions): eliminate some memory leaks for actions.
        (validate_actionline): pass string arg by reference, so we can
        change the pointer.  Change all memrange collection arguments to
        canonical form (literal address and size), to enforce early
        evaluation.  Accept UNOP_MEMVAL (assembly variables) for
        trace collection.  (parse_and_eval_memrange): accept expressions
        for the address and size fields of a memrange (and evaluate
        them immediately).  (several places): use -1 instead of zero
        to distinguish an absolute memrange from a register-relative one.
        (encode_actions): add handling for UNOP_MEMVAL (assembly variable).
1998-02-05 20:13:58 +00:00
Jason Molenda c7bb1531b8 * Makefile.in (SFILES): add tracepoint.c.
(LINTFILES): add @CONFIG_SRCS@.
        (SOURCES): Ditto.
        * configure.in (CONFIG_SRCS): Mirror use of CONFIG_OBS.
        * configure: Regenerated.
1998-02-05 01:47:26 +00:00
Jason Molenda 70b3329c0c * infptrace.c (child_resume): Don't try to step if
NO_SINGLE_STEP is defined.

Date: Tue, 3 Feb 1998 16:28:11 -0500
From: "Gordon W. Ross" <gwr@mc.com>
To: bug-gdb@prep.ai.mit.edu
Subject: gdb/infptrace.c
1998-02-04 00:19:05 +00:00
Jason Molenda c09eab0044 * Makefile.in (VERSION): Bump to 4.16.2.
as per HOW_TO_RELEASE
1998-02-03 03:09:27 +00:00
Stan Shebs dd597db0ed * gdbint.texinfo: Remove obsolete mentions of pinsn.c and opcode.h
files, finish sorting of host vs target vs native macros, describe
 	some more of them.
1998-02-03 01:21:29 +00:00
Richard Henderson ffa1f5b9c3 * alpha-nat.c (fetch_aout_core_registers): Rename from
fetch_core_registers.
(fetch_elf_core_registers): New function.
(supply_gregset): Use ALPHA_REGSET_BASE.
(supply_fpregset): Likewise.
(fill_fpregset): Likewise.
(alpha_aout_core_fns): Rename from alpha_core_fns.
(alpha_elf_core_fns): New.
* config/alpha/alpha-linux.mh (NATDEPFILES): solib.o not osfsolib.o.
Disable MMALLOC.
* config/alpha/nm-linux.h (SVR4_SHARED_LIBS): Define if ELF.
(TARGET_ELF64): Likewise.
(ALPHA_REGSET_BASE): New.
* config/alpha/nm-osf.h (ALPHA_REGSET_BASE): New.
* config/alpha/tm-alphalinux.h: Include tm-sysv4.h.

* solib.c (elf_locate_base): Add TARGET_ELF64 support.
(info_sharedlibary_command): Likewise.

* configure.host: Match alpha*.
* configure.tgt: Likewise.
1998-02-03 01:20:27 +00:00
Jason Molenda 1eaf1cef93 Remove unsanitized mention of v850e. 1998-02-03 01:10:35 +00:00
David Taylor 6981a588db changelog entries for gdb/13521. 1998-01-30 21:11:53 +00:00
David Taylor 7d0a3fc844 Changes by Peter.Schauer to fix gdb/13521 -- gdb step command fails to step
from a function in one dynamically linked library into a function in another
dynamically linked library.
1998-01-30 20:33:43 +00:00
Stan Shebs 3e269acb3e * coffread.c (coff_symtab_read) [SEM]: Remove code, macro can
never be defined.
	* dbxread.c (process_one_symbol) [BLOCK_ADDRESS_ABSOLUTE]:
	Remove, no longer needed.
	* hppa-tdep.c (N_SET_MAGIC): Remove, no longer used.
	* config/pa/xm-hppab.h (SEEK_SET, SEEK_CUR, SEEK_END): Ditto.
	* config/mips/tm-mipsm3.h (NUMERIC_REG_NAMES): Ditto.
	* config/mips/mipsm3.mt (TDEPFILES): Remove mipsread.o.
Cruft discovered while working on GDB internals manual
1998-01-30 03:54:54 +00:00
Stan Shebs 7074cd4e8a Suggested by Chris Walter <walter@budoe.bu.edu>:
* dwarfread.c (set_cu_language): Recognize Fortran.
	* dwarf2read.c (set_cu_language): Ditto.
	(read_array_type): Fix language test.
1998-01-28 23:02:03 +00:00
Michael Snyder 2a913d7135 Wed Jan 28 12:51:08 1998 Michael Snyder (msnyder@cleaver.cygnus.com)
* blockframe.c (generic_frame_chain_valid): A frame pointer may
        be valid if it is equal to the frame pointer of its caller (ie.
        not necessarily strictly INNER_THAN).  Allows frameless functions.
1998-01-28 21:06:54 +00:00
Mark Alexander 29df6f4b7e * monitor.c (monitor_vsprintf): New function to handle
printing of large addresses using %A format specifier.
	(monitor_printf_noecho, monitor_printf): Use monitor_vsprintf
	instead of vsprintf.
	* dve3900-rom.c (_initialize_r3900_rom): Use %A instead of %Lx
	to print addresses.
1998-01-28 19:52:06 +00:00