Commit Graph

7212 Commits

Author SHA1 Message Date
Stan Shebs e3147bf286 Humoring RMS by saying "GNU/Linux" instead of just "Linux" 1998-04-22 01:44:38 +00:00
Stan Shebs b90b2ac2ee * gdb.texinfo (EDITION, DATE): Update and change to use ordinals
for the edition instead of confusing GDB-version-like numbers.
1998-04-22 01:14:08 +00:00
James Lemke 3e5fbf91b5 Add configure option --with-sim-funit for sim & gdb. 1998-04-21 21:14:09 +00:00
Jason Molenda 84b5277c27 Add a "keep-vr4320" section so that tm-vr4320.h and vr4320.mt are
removed by default.
1998-04-21 19:23:31 +00:00
Jason Molenda 5c17c67d06 Add ns32knbsd-nat.c to things-to-keep. 1998-04-21 17:08:22 +00:00
Jason Molenda 92aadf4623 Add branches.c. 1998-04-21 16:52:56 +00:00
Jason Molenda 93d03334ed Keep cygmon.exp. 1998-04-21 16:52:05 +00:00
Jason Molenda 5cf178d819 add i386sco5.mt, nm-i386sol2.h, tm-i386sco5.h, tm-i386sol2.h 1998-04-21 16:51:20 +00:00
Frank Ch. Eigler 88ff9e0600 * MIPS CPU-specific dissasembly extensions. Now TM_PRINT_INSN_MACH from tm.h
sets a default mach for disassembly, just like sparc port.  c.f. PR 15371.


Tue Apr 21 11:20:54 1998  Frank Ch. Eigler  <fche@cygnus.com>

	* mips-tdep.c (gdb_print_insn_mips): Disassemble MIPS instructions
 	with subtarget-specific `mach', rather than fixed default.
	* config/mips/tm-mips.h (TM_PRINT_INSN_MACH): New macro, default
	disassembly `mach'.
start-sanitize-r5900
	* config/mips/tm-r5900.h (TM_PRINT_INSN_MACH): Override.
end-sanitize-r5900
start-sanitize-sky
	* config/mips/tm-txvu.h (TM_PRINT_INSN_MACH): Override.
end-sanitize-sky
1998-04-21 15:38:13 +00:00
Jason Molenda fa89ee43a5 Mon Apr 20 15:35:03 1998 Philippe De Muyter <phdm@macqel.be>
* coffread.c (decode_base_type): Treat a long field with size greater
        than TARGET_LONG_BIT as long long.
        * values.c (value_from_longest): Print code value in error message.
1998-04-20 22:36:00 +00:00
Jason Molenda a38cd80ae7 Mon Apr 20 15:32:21 1998 Mark Kettenis <kettenis@phys.uva.nl>
* gdb/gdb_string.h (strdup): Declare only if not defined as a
        macro.

Mark glibc development versions are defining strdup as a macro and the
prototype hosees it.  Either way, this patch shouldn't cause problems.
1998-04-20 22:33:52 +00:00
Jason Molenda 1e50f1b441 Mon Apr 20 14:18:45 1998 J. Kean Johnston <jkj@sco.com>
* procfs.c: Added replacement macros for LWP stuff.  Fixed support
        for UnixWare / SVR4.2MP targets and any targets which use
        multi-file /proc entries.  Fixed support for hardware watchpoints.
        * solib.c: SCO needs some of the same code as SunOS. Change
        preprocessor conditionals.

        * config/i386/i386sco5.mt: New file.
        * config/i386/tm-i386sco5.h: New file.
        * config/i386/i386sco5.mh (NATDEPFILES): add i386v-nat.o.
        * config/i386/nm-i386v42mp.h
        (TARGET_HAS_HARDWARE_WATCHPOINTS): define.
        Add other macros for hardware assisted watchpoints.
        * config/i386/nm-i386sco5.h: Correct attributions.
        (TARGET_HAS_HARDWARE_WATCHPOINTS): define.
        * config/i386/nm-linux.h (target_remote_watchpoint): Pass
        'type' through to i386_insert_watchpoint.

Mon Apr 20 14:12:30 1998 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)

        * infrun.c (wait_for_inferior): Don't add signalled processes
        as new threads.
        * procfs.c (wait_fd): Note if LWP has exited.
        (procfs_wait): use GETPID to get process ID.


NOTE:  I didn't commit Kean's changes to configure.host/configure.tgt
yet because they are kind of bogus and I'm punting back to him to let
him figure out what he's trying to do.  So configuring for UnixWare
may not work just yet.
1998-04-20 21:25:40 +00:00
Stan Cox 7c0892b3c3 Added sparc86x support. 1998-04-18 22:45:37 +00:00
Jason Molenda a17aca4705 Thu Apr 16 13:13:24 1998 Jason Molenda (crash@bugshack.cygnus.com)
* rdi-share/etherdrv.c (EthernetWrite): Use strerror to get
        error string if in an ANSI C-ish environment.
1998-04-16 20:14:51 +00:00
John Metzler ea8122af14 Thu Apr 16 10:52:34 1998 John Metzler <jmetzler@cygnus.com>
* gdb.base/branches.c: Code with lots of loops and
 	subroutines. Used to test gdbs ability to single step through PC
 	changes, especially to test mips-tdep.c:mips_next_pc
1998-04-16 17:56:11 +00:00
Mark Alexander 4a3f4c4ca0 * sparc-tdep.c (SPARC_HAS_FPU): Define.
(sparc_extract_return_value): New function, required to handle
	machines without floating point.
	(sparc_store_return_value): Ditto.
	* config/sparc/tm-sparc.h (EXTRACT_RETURN_VALUE): Call
	sparc_extract_return_value instead of using inline code.
	(sparc_extract_return_value): Declare.
	(STORE_RETURN_VALUE): Call sparc_store_return_value instead
	of using inline code.
	(sparc_store_return_value): Declare.
1998-04-16 02:10:26 +00:00
Martin Hunt 65c0c9787f Wed Apr 15 12:19:42 1998 Martin M. Hunt <hunt@cygnus.com>
* solib.c (enable_break): Only call warning once
	instead of three times.
1998-04-15 19:18:41 +00:00
Stan Shebs a4a3b11af0 Reflect departures of old gdbtk versions 1998-04-15 19:15:57 +00:00
Stan Shebs 3c59320fa9 End of another (shorter :-) ) era. Now only gdbtcl2 has a gdbtk interface. 1998-04-15 19:14:15 +00:00
Mark Alexander e50f526e68 * sparc-tdep.c (sparc_extract_struct_value_address): Make it
work correctly on little-endian hosts.
	(sparc_push_arguments): New function.
	(gdb_print_insn_sparc): New function.
	(_initialize_sparc_tdep): Make gdb_print_insn_sparc the default
	disassembler, so that SPARClite-specific instructions will
	be recognized.
	* sparcl-tdep.c (readchar): Print debugging information.
	(debug_serial_write): New function, a replacement for SERIAL_WRITE
	that prints debugging information.
	* config/sparc/tm-sparc.h (PUSH_ARGUMENTS): Define.
	(sparc_push_arguments): Declare.
1998-04-15 00:25:58 +00:00
John Metzler 7431731060 * gdbcfgxref (xref_menu): Call new regex and wild card searches
Now you can type in a specific triple like mips64-vr4320-elf or
	somthing like mips*.h
	(triple_search) wildcardsearch): The new functions
1998-04-14 23:16:48 +00:00
John Metzler a47fe057fd Tue Apr 14 15:43:49 1998 John Metzler <jmetzler@cygnus.com>
* configure.tgt: Switch over to use tm-4320.h. Since I switched to
 	MIPS EABI the fixes are no longer backward compatible with 4300.
	* tm-vr4320.h: Added
	* vr4320.mt:   Added
1998-04-14 23:09:06 +00:00
Frank Ch. Eigler 937ac38a3b * Changed one line in one C++ test case to hopefully
zap one group of persistent gdb testomat failures.

Mon Apr 13 22:32:51 1998 Frank Ch. Eigler <fche@cygnus.com>

	* gdb.c++/virtfunc.cc: Make extern "C" printf declaration pass
	more rigorous EGCS C++ error checking.
1998-04-14 02:39:44 +00:00
Martin Hunt d2a3ee23fb Mon Apr 13 16:17:52 1998 Martin M. Hunt <hunt@cygnus.com>
* gdbtk.c (gdb_loadfile): Change fstat() call to stat().
	Needed because you can't convert a FILE* to an fd.
1998-04-13 23:18:21 +00:00
Elena Zannoni e6e9507d63 Mon Apr 13 16:28:07 1998 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
* utils.c: (warning) added call to warning_hook

        * source.c: (find_source_lines) modified to call warning in case
        of source vs. executable time stamp mismatch. Simplified object
        file check. Initialized mtime to 0.

        * defs.h: added warning_hook prototype

        * top.c: added warning_hook prototype.

        * gdbtk.c: (perror_with_name_wrapper) new function to call
        perror_with_name safely.
        (gdb_loadfile) added source vs. executable time stamp check.
        (gdbtk_warning) new function to pass a warning message to the gui.
        (gdbtk_ignorable_warning) new function to pass a warning
        to the gui. Used only for the src. vs. exec check.
        (gdbtk_init) added warning_hook
        added include <sys/stat.h>
1998-04-13 21:54:22 +00:00
Fred Fish 8387d6dfd3 > * gdb.texinfo (hbreak, watch): Fix typo, "date" -> "data". 1998-04-13 21:47:38 +00:00
Keith Seitz 7234efcb53 * gdbtk.c (gdbtk_start_timer): Include on all platforms. Decrease
timer interval a little.
        (gdbtk_stop_timer): Include on all platforms.
        (gdbtk_wait): No more signals! Use a timer on all platforms to keep the
        GUI alive.
        (gdbtk_init): Remove FIOASYNC and all x_fd references. Now using timers
        on all platforms.
1998-04-13 20:05:15 +00:00
Keith Seitz 29d867f881 * config/sparc/tm-sun4os4.h (IS_STATIC_TRANSFORM_NAME): Add missing
definition.
1998-04-13 16:55:05 +00:00
Jason Molenda f0fce3b80b Fri Apr 10 22:36:28 1998 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
Update support for x86 Solaris 2.
        * config/i386/tm-i386sol2.h, nm-i386sol2.h:  New configuration
        files for x86 Solaris 2.
        * config/i386/i386sol2.mt, i386sol2.mh:  Use them.
        * config/sparc/tm-sun4sol2.h (PROCFS_GET_CARRY):  New macro, extract
        carry flag from a given regset.
        (IS_STATIC_TRANSFORM_NAME):  New macro, check if a symbol name
        is a SunPro transformed name.
        * i386-tdep.c (sunpro_static_transform_name):  New function to
        extract the source name from a SunPro transformed name.
        * inferior.h (procfs_first_available, procfs_get_pid_fd):
        Add prototypes.
        * infrun.c (wait_for_inferior):  Handle breakpoint hit in
        signal handler without intervening stop in sigtramp.
        * procfs.c (procfs_lwp_creation_handler):  Use PROCFS_GET_CARRY
        instead of direct access to the status register.
        (procfs_get_pid_fd):  New function, returns procfs fd for a given pid.
        * sol-thread.c (ps_lgetLDT):  New function, returns LDT for a given
        lwpid.
        (sol_find_new_threads):  Handle failed libthread_db initialization
        gracefully.
        * stabsread.c (define_symbol):  Use IS_STATIC_TRANSFORM_NAME
        to check for a SunPro transformed symbol name.
1998-04-11 05:43:33 +00:00
Jason Molenda baee3bc6e9 Fri Apr 10 22:38:12 1998 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
* gdb.base/help.exp:  Clean up `help set args' and `help show args'
        tests.
        * gdb.base/interrupt.exp:  Add "i*86-*-solaris2*" xfail for calling
        function when asleep.
        * gdb.base/signals.exp:  Add "i*86-*-solaris2*" xfails. Add comment
        for i*86 Linux and SVR4 signal handling problems.
        Remove linux xfail for `next to handler in signals_tests_1', fixed
        by recent infrun.c change.
        Limit backtrace to 10 frames to avoid timeout problems with infinite
        stack backtraces.
        Adjust expect pattern in `handle all print' test to match Apr 28 1997
        target.[ch] change.
1998-04-11 05:42:30 +00:00
Jason Molenda 6da4c15f22 Fri Apr 10 15:48:10 1998 Jason Molenda (crash@bugshack.cygnus.com)
* gdbtk.c (gdb_listfiles): Allocate space for 'files' dynamically.


Harumph, my change got lost in the foundry->devo merge.
1998-04-10 22:49:13 +00:00
John Metzler c66e3d6479 * utils.c (fmthex): A formatting function for hexdumps 1998-04-10 17:59:12 +00:00
John Metzler 6aeec893aa Fri Apr 10 10:35:35 1998 John Metzler <jmetzler@cygnus.com>
*  mips-tdep.c (unpack_mips16): Fixed instruction decoding, lots of
 	bit pattern interpretations. mips_fetch_instruction does not work
 	for 16 bit instructions. Some confusion remains about sign
 	extension in backward branches.
	(mips32_relative_offset): Sign extension
	(mips32_next_pc): Major debugging, bit pattern interpretation
	(print_unpack): debugging printf
	(fetch_mips_16): new funtion, key on PC low bit, not symbol table
	(mips16_next_16): Initial major debugging of this function. Lots
 	of bit pattern mistakes.
	(mips_next_pc): key on low bit of PC, not symbol table.
	* symfile.c(generic_load) : Added a download verification which
 	reads back the loade code. Download chunk size is now a defined
 	macro. Fixed a bug in which downloading slips into loading one
 	byte at a time. Lower level functions in monitor.c can load long
 	sequences of bytes and make use of these fixups.  Referencing
 	bfd-start_address directly was incorrectly getting zero for start.
1998-04-10 17:42:12 +00:00
Ian Lance Taylor cf93a3aa81 * mips-tdep.c (do_fp_register_row): Use alloca rather than arrays
with dynamic size.
1998-04-09 23:21:14 +00:00
Martin Hunt 1a509d60c2 Thu Apr 9 14:20:59 1998 Martin M. Hunt <hunt@cygnus.com>
* gdbtk.c (gdbtk_init): Remove redundant variable "IDE".
1998-04-09 22:03:19 +00:00
Jason Molenda bf9084c0a5 Wed Apr 8 19:21:42 1998 Jason Molenda (crash@bugshack.cygnus.com)
* top.c (print_gdb_version): Print 1998 now.
1998-04-09 02:22:27 +00:00
John Metzler a4a9241f7c Wed Apr 8 19:14:11 1998 John Metzler <jmetzler@cygnus.com>
* .Sanitize (Things-to-lose): gdbcfgxref
	* gdbcfgxref: Corelates target triples, mk, mt files, target dependent headers
	and sources.
1998-04-09 02:15:55 +00:00
Jason Molenda 87318fc9f4 Ack, forgot to update copyright to 1998. 1998-04-08 23:58:35 +00:00
Jason Molenda 6760a872ff Wed Apr 8 16:57:22 1998 Philippe De Muyter <phdm@macqel.be>
* source.c: Remove obsolete decl of strstr().
1998-04-08 23:58:10 +00:00
Jason Molenda 5b944218be Wed Apr 8 16:47:33 1998 Jason Molenda (crash@bugshack.cygnus.com)
* solib.c (solib_create_inferior_hook): Remove Ulrich Drepper's
        patch of March 23 1998.
        * breakpoint.c (breakpoint_re_set_one): Remove Ulrich Drepper's
        patch of March 23 1998.
1998-04-08 23:49:14 +00:00
Stan Shebs c3292c179f end of an era 1998-04-07 22:17:30 +00:00
Dawn Perchik af473842b9 * mdebugread.c (parse_partial_symbols): If this is an .mdebug
section in an ELF file, override a symbol's ECOFF section with its
        ELF section.  Also, fix stabs continuation where a stabs string
        continues for more than one continuation.
1998-04-07 21:12:23 +00:00
Keith Seitz 4350602ff5 * gdbtk.c (gdb_cmd): NEVER call the busy, update, and idle hooks. 1998-04-07 20:05:02 +00:00
Andrew Cagney 912e805f74 Declare array using MAX_REGISTER_RAW_SIZE, not REGISTER_RAW_SIZE(X) 1998-04-05 23:57:44 +00:00
Dawn Perchik 24a385253d * infrun.c: Fix prototype of signals_info to match static funtion. 1998-04-04 18:06:55 +00:00
Jason Molenda b443327946 Thu Apr 2 16:52:44 1998 Jason Molenda (crash@bugshack.cygnus.com)
* LRS: Reformat a bit to keep text under 80 columns.
1998-04-03 00:58:29 +00:00
Stan Shebs d390cad1dd * gdb.texinfo: Add some credits, mention bug monitor.
* remote.texi: Mention mips monitor targets.
	* gdbint.texinfo: Describe SP_REGNUM, STEP_SKIPS_DELAY.
1998-04-03 00:21:17 +00:00
Frank Ch. Eigler 7cdd6cac82 * Fixes for PR 14571.
Thu Apr  2 12:47:41 1998  Frank Ch. Eigler  <fche@cygnus.com>

	* sol-thread.c (sol_thread_store_registers): Save & restore new
 	value of single updated register to prevent accidental clobbering.
1998-04-02 18:54:04 +00:00
Mark Alexander c8b7788793 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE): Define.
* config/sparc/sparclite.mt: Link in the erc32 simulator.
1998-04-02 06:04:17 +00:00
Jason Molenda 3dcac15f1f Wed Apr 1 16:30:49 1998 Ian Dall <Ian.Dall@dsto.defence.gov.au>
* ns32k-tdep.c (flip_bytes, ns32k_localcount,
        ns32k_get_enter_addr, sign_extend): Restore functions mysteriously
        deleted.

        * ns32knbsd-nat.c: New (?) file to support fetching and storing
        registers on NetBSD hosts.

        * nbsd.mh (NATDEPFILES): put ns32knbsd-nat.o instead of
        ns32k-nat.o

        * ns32km3-nat.c (reg_offset): Get order of floating point
        registers correct. Add extra 32382 register offsets.
        (REG_ADDRESS): define to point at correct part of thread
        state. Use calls to "warning" instead of "message".

        * tm-nbsd.h, tm-ns32km3.h (REGISTER_NAMES, NUM_REGS,
        REGISTER_BYTES, REGISTER_BYTE): redefine allowing for 32382
        fpu registers.
1998-04-02 01:01:35 +00:00